Difference between revisions of "Dmenu"

From ArchWiki
Jump to: navigation, search
Line 19: Line 19:
 
Now, you will want to attach the {{Ic|dmenu_run}} command to a keystroke combination. This can be done either via your window manager or desktop environment configuration, or with a program like {{Pkg|xbindkeys}}. See the [[Hotkeys]] article for more information.
 
Now, you will want to attach the {{Ic|dmenu_run}} command to a keystroke combination. This can be done either via your window manager or desktop environment configuration, or with a program like {{Pkg|xbindkeys}}. See the [[Hotkeys]] article for more information.
 
And so, dmenu nice to be [[Prelink]]'ed.
 
And so, dmenu nice to be [[Prelink]]'ed.
 +
 +
== Strange segfaulting ==
 +
 +
If executing {{Ic|dmenu_run}} results in an error similar to this:
 +
$ dmenu_run
 +
/usr/bin/dmenu_run: line 15: 1879 Segmentation fault          dmenu "$@" < "$cache"
 +
 +
And running dmenu crashes like the following:
 +
$ echo "blahblahblah" | dmenu
 +
no locale support
 +
Segmentation fault
 +
 +
Make sure {{Ic|$LANG}} is set to something valid. For example, I was experiencing this problem because I had set {{Ic|$LANG}} to "en_US.UTF_8" in /etc/locale.conf. In my case it should have been "en_US.UTF-8".
 +
 +
Keep in mind that the value contained in {{Ic|$LANG}} must be uncommented in /etc/locale.gen as well.
  
 
== External Resources ==
 
== External Resources ==

Revision as of 13:40, 19 September 2012


Introduction

dmenu is a fast and lightweight dynamic menu for X. It reads arbitrary text from stdin, and creates a menu with one item for each line. The user can then select an item, through the arrow keys or typing a part of the name, and the line is printed to stdout. dmenu_run is a wrapper that ships with the dmenu distribution that allows its use as an application launcher.

Installation

Installing dmenu is simple:

# pacman -S dmenu

run it

$ dmenu_run

Configuration

Now, you will want to attach the dmenu_run command to a keystroke combination. This can be done either via your window manager or desktop environment configuration, or with a program like xbindkeys. See the Hotkeys article for more information. And so, dmenu nice to be Prelink'ed.

Strange segfaulting

If executing dmenu_run results in an error similar to this:

$ dmenu_run
/usr/bin/dmenu_run: line 15: 1879 Segmentation fault           dmenu "$@" < "$cache"

And running dmenu crashes like the following:

$ echo "blahblahblah" | dmenu
no locale support
Segmentation fault

Make sure $LANG is set to something valid. For example, I was experiencing this problem because I had set $LANG to "en_US.UTF_8" in /etc/locale.conf. In my case it should have been "en_US.UTF-8".

Keep in mind that the value contained in $LANG must be uncommented in /etc/locale.gen as well.

External Resources

  • dmenu – The official dmenu website
  • Yeganesh – a light wrapper that reorders commands based on popularity
  • dmenu-launch (AUR) – A simple Dmenu-based application launcher. Launches binaries and XDG shortcuts.
  • Dmenu Hacking thread – Dmenu hacking thread in arch linux forums.