| « 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!
Creative Hedgehog
11/03/10 - (almost!) fructose-free caramel slice
Hari's corner
How do you awaken a sleepy lawyer in the mornings?
07/03/10 - The Legalease - Episode 10
Place of Stuff
Genesis 19 is a fun little tale, full of reversals and surprises. It begins with two angels going to visit Lot in Sodom. Lot welcomes them in and offers a good foot washing and feeding session. As is polite and in custom with receiving visitors. Especially angels. Shortly after they arrive, the local men turn [...]
27/02/10 - The Bible ? Sod ?Em
Advice From a Single Girl
C-dawg and I have nicknamed a local bartender "Freckle Butt"We have nicknamed him this because we think that his butt probably has freckles on it.Because his cheeks do. The ones on his face, people, the ones on his face!C-dawg would also like me to tell you that she thinks Freckle Butt's behind would be a most excellent thing to bounce M&Ms off of.This thought makes us both smile dreamily.Not
31/12/69 - Nickname
Nation
 
This was possibly the most ridiculous show I have seen in a long time and I can get Sky 1 I know ridiculous. It could be summed up in three sentences Do you know what's in your cereal? Want to? Read the label. Instead it went on for a hour about how evil the cereal [...]
27/10/09 - Dispatches ? do you know what?s in your breakfast? (warning...
Blogroll generated by MagpieRSS
![[Links]](http://geekblog.oneandoneis2.org/skins/112/rsc/img/chain_link.gif)
Dominic can drive for another year! My little Fiesta survived its ordeal by MOT :).
05/03/10
![]()
I last listened to:
The Offspring - She's Got Issues
Most recent photo:
Submersible houseboat