Thursday, November 12, 2009

Dmenu in Gnome

Using Openbox I liked the Dmenu program very much.
You can also use in Gnome though.
First install dwm-tools via synaptic or with sudo apt-get install dwm-tools in terminal.
If you don't like the grey color change dmenu.sh in
/usr/bin (for instance via Nautilus as root gksudo nautilus) and put in the following script:
$(dmenu_path | dmenu -fn '-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*' -nb '#000000' -nf '#FFFFFF' -sb '#0066ff')

In newer versions dmenu_run is what was dmenu.sh before.

So in terninal do dmenu_run to activatie the program.
Of course that makes no sense; we have to make a keybinding.
Standard keybinding is alt+f4; if you want to change that:
we change a keybinding with metacity:

If it is a new command or you want to check the command number: Open GConf editor (Applications -> System Tools -> Configuration Editor), go to apps -> metacity -> keybinding_command; choose a command for instance command_2

Now go to Navigate to:
/apps/metacity/global_keybindings/
and change the keybinding of the dmenu command number by selecting it and typing the new value.
and give it this value: /usr/bin/dmenu.sh or /usr/bin/dmenu_run

No comments:

Blog Archive