Thursday, July 21, 2005

Gkrellm and Xmodmap

Saw a really cool system monitor on many Fluxbox desktop screenshots. Took some time but in the end managed to find out that the system monitor is a programme with the name 'gkrellm'. Installed it. Choose a nice 'alien' skin and also inserted entries to mount my usb stick and usb hard drive. Entered 'gkrellm -w' so that it will start in a slit and then change the transparency of the slit to 0 and placed it at the centre right side of the screen. Very happy! Still don't quite understand what the slit is though...

I own a Microsoft keyboard and other than the windows key, there are some other keys with the symbols of envelope, music, computer, play, volume, home and so on at the top. Well, time to put those keys to good use!

1. Run 'xev' and find out the keycodes of those keys.
2. Map the keys. Opened a new file called '.Xmodmap' in home directory. Here are the entries:

keycode 162 = XF86Video
keycode 237 = XF86Music
keycode 235 = XF86Tools
keycode 161 = XF86News

## To view the names which those keys can be mapped to. do a 'cat /usr/X11R6/lib/X11/XKeysymDB'

3. Edit ~/.fluxbox/keys to add the shortcuts in. Here are my entries:

Mod1 Tab :NextWindow
Mod1 Shift Tab :PrevWindow
Mod1 F1 :Workspace 1
Mod1 F2 :Workspace 2
Mod1 F3 :Workspace 3
Mod1 F4 :Workspace 4
Mod1 F5 :Workspace 5
Mod1 F6 :Workspace 6
Mod1 F7 :Workspace 7
Mod1 F8 :Workspace 8
Mod1 F9 :Workspace 9
Mod1 F10 :Workspace 10
Mod1 F11 :ExecCommand firefox
Mod1 F12 :ExecCommand xterm -fn lucidasanstypewriter-14 -fg white -bg black

Mod1 w :Close
Mod1 m :Minimize
Mod1 Shift m :Maximize
None Super_L :RootMenu

## Multimedia

None XF86Video :ExecCommand gmplayer
None XF86Music :ExecCommand xmms
None XF86Tools :ExecCommand kdesu yast2
None XF86News :ExecCommand acroread

## They are by no means complete. But at least, now I can run some of the more frequently used programmes by just pressing a key or two.

4. Add this line to the startup.sh:
xmodmap /home/username/.Xmodmap

No comments: