Quote:
Originally Posted by frankbell
You can use xev to see the raw keycodes. Xev generates a mass of data to wade through, but it might help.
By the way, it's a small thing, but you have to restart Fluxbox for a modification to the keys file to take effect. You can use the "restart" item on the Fluxbox menu to do so without closing any applications.
|
Haha xev did the job. Here is how I went about solving this. I like describing the process, rather than giving out just the answer. If you want to skip the reading, the answer was to add this Super_L : RootMenu to your .fluxbox/keys file. I hope it helps someone else.
I ran xev like you suggested. It outputs all the x events in the console. Here is what I got for the super key:
KeyRelease event, serial 31, synthetic NO, window 0xa00001,
root 0x69, subw 0x0, time 6359893, (170,-9), root

1067,313),
state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
Notice this part:
root

1067,313),
state 0x40, keycode 133 (keysym 0xffeb, Super_L),
The Super_L is the name of the windows key.
I then ran xmodmap as suggested here:
http://fluxbox-wiki.org/index.php?ti...ing_up_Super_L
and surprisingly mod4 was mapped correctly:
alagenchev@tangra:~$ xmodmap -pm
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
However, my mod4 entry in the keys file didn't work correctly, so I looked at my keys file closer:
I had the following:
Mod4 : ExecCommand RootMenu
Super_L : ExecCommand RootMenu
Control Escape : RootMenu
Contorl + Escape worked, but not the others, so I removed the ExecCommand to result in this:
Mod4 : RootMenu
Super_L : RootMenu
That worked, but only because of the Super_L line. I don't know why but Mod4 : RootMenu doesn't do anything for me even though xmodmap has it mapped correctly.
Regardless, I am happy because I got it working and Super_L : RootMenu was the solution