You are not logged in.
Pages: 1
Hello,
I run dwm (stock conf) and invoke dmenu with alt+p but when I hit enter I am unable to launch a program/command. I have read the man page at suckless.org. It didn't help. What am I doing wrong?
Sincerely, Fleet
Last edited by Fleet (2010-12-25 22:32:47)
Offline
In the dwm configuration alt+p is probably associated to a dmenucmd with a line like this:
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
The dmenucmd is defined in config.h with a line like this (this is mine, yours could be different):
static const char *dmenucmd[] = { "dmenu_myrun", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
dmenu_myrun is the following script (in my PATH, so that dwm can find it):
#! /bin/zsh
exe=`lsx $path | sort -df | dmenu ${1+"$@"}` && exec $exe
I am not sure at the moment if it really needs zsh, but in any case it shouldn't be difficult to write a bash equivalent.
You can find the lsx utility in the AUR.
Last edited by patroclo7 (2010-12-24 16:10:51)
Mortuus in anima, curam gero cutis
Offline
Pages: 1