Closed sigzegv closed 6 years ago
To add some precision, when invoking the command from bash term, the focus behavior is ok, but when using keybind from shxkd as example (super + Escape in my case) dzen focus is lost
Edit: I found the issue, sxhkd bind with dzen must be called with release event only (@ char in front of keybind)
I'm making a system menu with dzen for bspwm. I directly use onstart=grabbeys event to receive kb events and then dispatch them (with kb_XX events after that) and manage the output in the bash script.
SEL=$(echo " [l]ock e[x]it re[b]oot [p]oweroff " | dzen2 -p $TIMEOUT -w 400 -h 28 -x 100 -e "onstart=grabkeys;key_Escape=exit;key_l=print:l,exit;key_x=print:x,exit;key_b=print:b,exit;key_p=print:p,exit;")
But bspwm doesn't seem to let dzen keep the keyboard focus. On other WM/DM dzen keeps keyboard focus, with bspwm it doesn't. Is there a workaround ?