You are not logged in.

#1 2010-12-24 15:32:27

Fleet
Member
Registered: 2008-07-09
Posts: 33

[SOLVED] Can't launch apps with dmenu

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

#2 2010-12-24 16:09:04

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: [SOLVED] Can't launch apps with dmenu

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

Board footer

Powered by FluxBB