Add a dynamic menu to your desktop using dmenu

  Last modified on Tuesday 15 April 2014

Dmenu is a cool application for generating a dynamic menu on your desktop that can be activated using a hot-key combination.

A user begins typing the name of the application they wish to run and dmenu narrows down the list of possible matches as each letter is entered. When the desired choice is revealed it is highlighted and pressing ENTER launches the application.

I use Openbox as my window manager and completely ignore the built-in menu for launching applications ... relying instead on the combination of dmenu + hot-key codes for activating a few favourites.

On Debian dmenu is a part of the suckless-tools package ...

$ sudo apt-get install suckless-tools

Create a bash script named and place in $HOME/bin ...

# Generate a dynamic applications menu
# Source: bitmap fonts <>

dmenu_run -b -i -fn '10x20' \
    -nb '#000000' -nf '#ffffff' -sb '#d64937' -sf '#000000'

This will use dmenu to generate a horizontal menu of applications running across the bottom of the desktop (this can be tricky to get right... thanks Giles for the hint). Create a hot-key combination to activate on your desktop.

Source: homebin/

More • shellprogrammingopenboxdebianlinux