Monday, May 04, 2009

HotKey toggle to Open/Close AWN

I like Avant-Window-Navigator a lot and use it in every distro where it's available. This includes Ubuntu Jaunty on the EeePC 901.
Problem here, however, is that at times, because of the small screen, I need to close AWN to access buttons or other at the bottom of some web pages.
This involves quite a few clicks.
However, I found this thread that offers a very simple HotKey solution to closing/restarting AWN.
I had just a little problem implementing this (as pointed out in the thread) but now it works fine.
Installation is as follows (for Ubuntu Jaunty that already includes /usr/include/X11/Xlib.h and /usr/include/glib-2.0/glib.h).

1. sudo apt-get install libxmu-dev (see here)
2. Download xtoggle-0.1.2.tar.gz from here to your home directory (or wherever else you want)
3. CD to your home directory
4. tar -zxvf xtoggle-0.1.2.tar.gz
5. cd xtoggle
6. sudo make xtoggle install
7. Create the HotKey by
-- opening Compizconfig-settings-manager
-- activate Commands in the General section
-- under Commands, create a new command with "xtoggle --lookup_class Awn" and whatever Key Binding you want (I used Alt-h).

Now to close AWN I just have to HotKey with Alt-h. Excellent.

No comments:

Post a Comment