You are not logged in.

#1 2010-04-29 07:49:52

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

difference dmenu and dmenu-xft

Hello guys,

the default dmenu highlights the selected entry with a brighter text color where dmenu-xft displays selected entries with the same color than the others.

All I changed in dwm is

static const char *dmenucmd[]  = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };

to

static const char *dmenucmd[]  = { "dmenu_run", "-fa", "Inconsolata-9", "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };

Why does it make a difference?

orschiro

Offline

#2 2010-04-30 09:20:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: difference dmenu and dmenu-xft

orschiro wrote:

static const char *dmenucmd[]  = { "dmenu_run", "-fa", "Inconsolata-9", "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };

Shouldn't that be "-fn"?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2010-04-30 10:57:23

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: difference dmenu and dmenu-xft

I had the same problem when I tried dmenu-xft, which is why I still use regular dmenu.

Offline

#4 2010-04-30 12:31:34

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: difference dmenu and dmenu-xft

Hello Jason,

as per man page the "-fn" variable should be the right one for xft fonts.

@Johannes,

any idea who has written the patch? Perhaps he could enhance it in this way to enable the highlighting.

Regards

Offline

#5 2010-04-30 19:49:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: difference dmenu and dmenu-xft

orschiro wrote:

as per man page the "-fn" variable should be the right one for xft fonts.

Agreed. It's just not what you have in your config.h (according to what you posted above - as per my highlighted quote)...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2010-04-30 19:59:35

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: difference dmenu and dmenu-xft

Ah sorry my fault. I transposed them.

Here an excerpt of the man page.

       -fa <font>
              defines the xft font.

Offline

Board footer

Powered by FluxBB