Sunday, November 15, 2009

argouml in xmonad

Recently a small window manager war broke out at the #archlinux irc channel. Not much to say about it because it's been done dozens of times already, but it did got me interested in trying out a tiling wm again. I've tried xmonad before and liked it quite a bit back then so I thought I'd give it another go. And sure enough I LOVE it.. :P Not having to touch the mouse (or the touchpad which is even worse) at all is a great feeling. You just want to go faster and faster. Then I fired up firefox and lo and behold, I have to use the mouse again. That's a cannot. So I installed the vimperator plugin. Now I can navigate and use firefox just like using my favourite editor.. :D

But of course that's just the beginning, I had to look for replacement for a lot of other software I normally use too. So now:
1. pidgin -> finch (ym client)
2. xchat-gnome -> weechat-curses (irc client)
3. evolution -> alpine (mail client)
4. exaile -> herrie (mp3 player)
5. nautilus -> mc (file manager)

Then I faced another problem. When I started out argouml all it showed was a grey window. Nothing, nada. No display whatsoever. I really thought I had to go back to gnome already. Then I did a bit of googling and finally found this at the awesome wm wiki (another tiling wm). Basically the problem is with jvm in a non-reparenting window manager. So to fix it, we can emulate another window manager which jvm thinks is a reparenting window manager. Just install 'wmname' (yes.. that is.. pacman -S wmname) and run:

$ wmname LG3D

And walah.. argouml running once again. Even though you close the terminal and start just argouml, it'll work. So far I'm loving this slimming down of my desktop, now if only I could start slimming down my own body.. :P

2 comments:

dmwit said...

Glad that's working for you. I should point out that the xmonad FAQ has also this section on Java, along with a cleaner fix if you happen to be using openjdk:

http://www.haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#Problems_with_Java_applications.2C_Applet_java_console

Cheers!

Abdullah Zainul Abidin said...

I didn't realize that. Thank you for the tip dmwit. :)

Haiya ala Solah