| « Because, obviously, a new desktop means... | Finally! » |
Thu, Jun 25, 2009
![[Icon]](rsc/img/chain_link.gif)
When I use FVWM, I want my Windows key to bring up the main menu, just like it does in Windows.
(Except that the menu appears under the mouse, not always in the screen corner - much better!)
To do this, you have to configure the key to be recognizable to X and to your window manager. The process I used in Debian Lenny for this was:
Use xev to find the keycode, which was in this case the standard 115:
KeyRelease event, serial 35, synthetic NO, window 0x1000001,
root 0x69, subw 0x0, time 6401648, (171,171), root:(216,273),
state 0x40, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
Edit /usr/share/X11/XKeysymDB so it knows there's a new key for it to deal with on the keyboard:
Start :11000001
added to the end of the file
Create the file /etc/X11/Xmodmap to link the Start key to keycode 115:
keycode 115 = Start
To get xmodmap to actually load the file you just created, near the end of the file /etc/X11/Xsession add:
[ -f /etc/X11/Xmodmap ] && xmodmap /etc/X11/Xmodmap
That should set up the key properly (and for all users, which is why you don't use a ~/.Xmodmap file) Then it's just a matter of a line in FVWM's config:
Key Start A A Popup "MainMenu"
And that's it, all done. The windows key brings up my menu! And if I want to configure any of the other 'hotkeys' that usually don't actually do anything, it's the same process.
This is what I mean about GUIs getting in the way and being able to do more when you know what's really going on under the hood!
![[Links]](http://geekblog.oneandoneis2.org/skins/112/rsc/img/chain_link.gif)
Facebook Syndication Error
03/02/12
![]()
I last listened to:
Johann Pachelbel - Canon in D major
Most recent photo:
Submersible houseboat