Closed root2185 closed 2 years ago
j4-dmenu-desktop uses dmenu internally, so if your dmenu uses your desired fontsize by default, j4-dmenu-desktop will too. If you want to override dmenu defaults, you can do:
j4-dmenu-desktop --dmenu "dmenu -fn <font description>"
The <font description>
can be any font name accepted by fontconfig (i.e. the thing you put here). You can find more info on how to specify font name in https://www.freedesktop.org/software/fontconfig/fontconfig-user.html (specifically in sections Font Names and Font Properties). You should also read https://wiki.archlinux.org/title/Font_configuration.
I changed dwm top bar not dmenu, right.
I can change dmenu
font with: dmenu_run -fn "FuraMono Nerd Font:size=11.5"
.
But it doesn't work for j4-dmenu-desktop
.
It is always the same, e.g. with j4-dmenu-desktop --dmenu "dmenu -fn "FuraMono Nerd Font:size=46""
.
This isn't a problem with j4-dmenu-desktop. Your command is incorrectly quoted. When you have text enclosed in quotation marks which is also enclosed in quotation marks, you have to distinguish the inner and outer "
s.
Your quoted string are this
"dmenu -fn "
and this
""
which presumably isn't what You intended.
You can use
j4-dmenu-desktop --dmenu 'dmenu -fn "FuraMono Nerd Font:size=46"'
or
j4-dmenu-desktop --dmenu "dmenu -fn \"FuraMono Nerd Font:size=46\""
to distinguish the quotation marks. There are many ways to do this, look up your shell's documentation for more information (this technique is called shell quoting).
I also use dmenu and I'd like to have both the same size.