Increase font size of dmenu / j4-dmenu
Hi,
I can't find a way to increase the font size of the application launcher menu (dmenu / j4-dmenu).
Is there way to do that?
Cheers, Alex
Hi,
I can't find a way to increase the font size of the application launcher menu (dmenu / j4-dmenu).
Is there way to do that?
Cheers, Alex
I'm not familiar with j4-dmenu, but the font size of dmenu itself is dictated by the '-fn' flag used when it's launched. i3-dmenu-desktop is a nice convenience, but that's really all it is---the only thing that makes it different from plain old dmenu is that it specifically searches for *.desktop files rather than all executable files in $PATH. You simply need to edit the part of i3-dmenu-desktop/j4-dmenu that calls dmenu and add the '-fn' flag to your taste. Personally, I've just tied dmenu_run to a keybinding in my config:
bindsym $mod+space exec dmenu_run -i -b -p 'Arch Linux' -fn 'Ubuntu Mono:bold:pixelsize=15' -nb '#fdf6e3' -nf '#586c75' -sf '#fdf6e3' -sb '#b58900'
The dmenu man page has all the information on what those flags do. I'd rather have complete control over how dmenu looks and behaves than a pre-made script that tells me what I want. I'll tell you what I want, dmenu, thank you very much. ;)
Also, note that you'd need to build dmenu yourself with the Xft patch to use TTF fonts; otherwise you'd need to use xfont-style notation to declare the font.
Thanks for this. I was finally able to tune dmenu to my likings. I don't use dmenu very often, but when I do, I do it big :-) bindsym $mod+d exec dmenu_run -i -l 23 -p 'gogo Gadget' -fn 'Source Code Pro for Powerline:bold:pixelsize=32' -nb '#222222' -nf '#ceecee' -sb '#f8f893' -sf '#222222'
Use the "-fn" option for setting the font, for example:
dmenu_run -fn '--fixed-bold-r-normal--15-----*-iso10646-1'
great works with j4-dmenu
Asked: 2014-07-13 12:01:36 +0000
Seen: 3,440 times
Last updated: May 01