| « 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
I played this game with a group of girls aged 12-14, and it was a real hit.
I got the idea from Group Games.com, but modified it a little to prevent cheating.
You need a group of people- I had 10, probably 15 and 5 are the upper and lower limits respectively. You [...]
03/02/10 - telephone charades
Hari's corner
The next episode of my comic
05/02/10 - The Legalease - Episode 6
Place of Stuff
But unto Cain and to his offering he had not respect. And Cain was very wroth, and his countenance fell.
In the first part, we saw how God placed temptation in the way of Adam and Eve, and then punished them when they fell for it. I think that this was the first "dick move” [...]
02/02/10 - The Bible ? What Adam Did Next
Advice From a Single Girl
The world I live in inside my head is pretty darn hilarious most of the time. And many of my closest friends appreciate my slightly silly sense of humour.I have to remind myself, however, that my "tee hee, that was funny" in my head doesn't always translate well out in the real world.A good example of this?I made a funny (to me) joke in the store the other day about some toasters I was looking
31/12/69 - Inside Thoughts
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 was watching "Temple of Doom" and was struck by the question: How would Kali, six-armed Goddess of death, do the macarena?
07/02/10
![]()
I last listened to:
The Offspring - She's Got Issues
Most recent photo:
Submersible houseboat