cdown / clipmenu

Clipboard management using dmenu
MIT License
1.14k stars 91 forks source link

Change font? #111

Closed wpcarro closed 5 years ago

wpcarro commented 5 years ago

Hi. I'd like to increase the font-size and change the font of clipmenu. I searched clipmenu --help and the docs here, but cannot seem to find an answer.

I would assume it'd use the same font as dmenu or dmenu_run, but both of these have different fonts from clipmenu. Any idea why there is a divergence between the fonts dmenu and dmenu_run are using and the font clipmenu is using?

kaihendry commented 5 years ago

clipmenu feeds its args to dmenu. e.g. clipmenu -fn courier

wpcarro commented 5 years ago

Thanks, @kaihendry.

I'm still confused about the font it's currently using. Any ideas why dmenu or dmenu_run should have different fonts than clipmenu?

cdown commented 5 years ago

Most likely you launch dmenu_run/dmenu with different arguments by default. For example in dwm, dwm's theme and font are automatically passed to dmenu, eg:

dwm % rg dmenu_run 
config.h
82:static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-i", "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };

If you look at tr '\0' ' ' < "/proc/$(pgrep -nx dmenu)/cmdline" while each is running, what appears?