Discussion:
[Fluxbox-users] key bindings working strange
Frank Lienhard
2016-10-14 15:51:25 UTC
Permalink
Hi List,

here is what I did:
use xev to find key names (for left/right wndows ky and the menu key on
the thinkpad):
KeyRelease event, serial 36, synthetic NO, window 0xe00001,
root 0x94, subw 0xe00002, time 22603863, (35,40), root:(522,62),
state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

MappingNotify event, serial 36, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 36, synthetic NO, window 0xe00001,
root 0x94, subw 0xe00002, time 22606728, (35,40), root:(522,62),
state 0x0, keycode 135 (keysym 0xff67, Menu), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0xe00001,
root 0x94, subw 0xe00002, time 22606832, (35,40), root:(522,62),
state 0x0, keycode 135 (keysym 0xff67, Menu), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

then I edited ~ /.fluxbox/keys:

# user defined (
Super_R s :Exec /home/frank/scripts/screen_home.sh
Menu s :Exec /home/frank/scripts/screen_home.sh
Super_R l :Exec xtrlock
Menu l :Exec xtrlock
Super_L s :Exec sudo shutdown
Super_L r :Exec sudo reboot
Super_L b :Exec x-terminal-emulator

Strange thin is that you then need to press the win-key release it an
then press the letter to make it work. If you press and hold the win-key
and press the letter additionally it won't work.

Any hints?
Thomas Lübking
2016-10-14 16:23:18 UTC
Permalink
Try "Mod4" instead of "Super_L" - Latter is a key, not a modifier (so
you're building an Emacs-Style shortcut chain)

No idea which modifier is triggered by Super_R (Mod5 or just Mod4 as
well?)

Cheers,
Thomas
Post by Frank Lienhard
Hi List,
use xev to find key names (for left/right wndows ky and the menu key on
KeyRelease event, serial 36, synthetic NO, window 0xe00001,
root 0x94, subw 0xe00002, time 22603863, (35,40), root:(522,62),
state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XFilterEvent returns: False
MappingNotify event, serial 36, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248
KeyPress event, serial 36, synthetic NO, window 0xe00001,
root 0x94, subw 0xe00002, time 22606728, (35,40), root:(522,62),
state 0x0, keycode 135 (keysym 0xff67, Menu), same_screen YES,
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0xe00001,
root 0x94, subw 0xe00002, time 22606832, (35,40), root:(522,62),
state 0x0, keycode 135 (keysym 0xff67, Menu), same_screen YES,
XFilterEvent returns: False
# user defined (
Super_R s :Exec /home/frank/scripts/screen_home.sh
Menu s :Exec /home/frank/scripts/screen_home.sh
Super_R l :Exec xtrlock
Menu l :Exec xtrlock
Super_L s :Exec sudo shutdown
Super_L r :Exec sudo reboot
Super_L b :Exec x-terminal-emulator
Strange thin is that you then need to press the win-key release it an
then press the letter to make it work. If you press and hold the win-key
and press the letter additionally it won't work.
Any hints?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
Loading...