You are not logged in.

#1 2008-02-12 11:15:51

phisphere
Member
From: Tallinn, Estonia
Registered: 2007-03-05
Posts: 136
Website

How can i customize dmenu?

Hi.

I'm using awesome as my window manager with dmenu. But dmenu by default looks like dwm (font and colors).
So is there a way to customize dmenu's font and colors to match my awesome configuration?
I looked the dwm's config.h file and saw a dmenu entry line:

 { MODKEY,                       XK_p,           spawn,
                "exe=`dmenu_path | dmenu -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"'"
                " -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'` && exec $exe" },

So it seems that it's possible to configure dmenu through the menu entry, but my attempts failed. When I tried to replace FONT -nb with FONT -nu (with is a small font), awesome "crashed" (keybindings didn't work anymore).

So any help is welcome.

Verner

Offline

#2 2008-02-12 11:44:34

tami
Member
From: Norway, Oslo
Registered: 2007-11-10
Posts: 58
Website

Re: How can i customize dmenu?

Perhaps this will be of a help:

1. Entry from my .awesomerc:

key {
    modkey = {"Mod4"}
    key = "d"
    command = "spawn"
    arg = "exe=`dmenu_path | dmenu -nb '#000000' -nf '#ffffff' -fn 'terminus-8' -b` && exec $exe"
  }

2. Little script to bind dmenu to the keys in Pekwm:

#!/bin/bash
exe=`dmenu_path | dmenu -b -nb black -nf darkgrey  -sf black -sb darkgrey` && eval "exec $exe"

Kind regards,

tami


"Possession means worries and luggage bags one has to drag along." Little My wink

Offline

#3 2008-02-12 12:08:30

phisphere
Member
From: Tallinn, Estonia
Registered: 2007-03-05
Posts: 136
Website

Re: How can i customize dmenu?

thanks, with a little bit tweaking that worked.
only getting the right font is a little bit tricky but i'll figure it out somehow...

but great thanks.

Verner

Offline

#4 2008-02-12 14:51:28

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: How can i customize dmenu?

For font selection, you can use xfontsel.

Offline

Board footer

Powered by FluxBB