conformal / spectrwm

A small dynamic tiling window manager for X11.
ISC License
1.33k stars 96 forks source link

Cannot use dmenu_run with flag -fn #375

Closed axelcalixte closed 4 years ago

axelcalixte commented 4 years ago

Hello, I'm having trouble with dmenu_run. I can't have it display a custom font in spectrwm. It works fine as a script on its own. But binding the script to something in spectrwm does absolutely nothing.

Here is my font config image

And here is the command in the terminal or script that works image

Thanks in advance :)

LordReg commented 4 years ago

Your example works for me.. did you set locale in the env where spectrwm is started? for example in ~/.xinitrc

export LANG=en_US.UTF-8
exec spectrwm
axelcalixte commented 4 years ago

I'm currently using lightdm and not xinitrc to log in. I made sure my LANG setting is set as fr_FR.UTF-8. It is.

Maybe I should try en_US.UTF-8... Oh and I have version 3.3.0-1.4 of spectrwm.

LordReg commented 4 years ago

dmenu_run is probably exiting with an error. Try capturing stderr to see what it might be, e.g.:

#!/bin/sh
/usr/bin/dmenu_run -fn "Iosevka Term:style=Semibold:size=12" -sb "#5e81ac" -sf "#eceff4" -nb "#2e3440" -nf "#e5e9f0" > ~/dmenu.log 2>&1
axelcalixte commented 4 years ago

Sorry for not answering fast. Your solution didn't bring anything sadly. Running the script alone works in a terminal. When putting it inside the config while replacing the color values and the font name with the variables, I still can't use dmenu with the -fn flag. I didn't try directlt embedding the script in the spectrwm config though.

Thanks again for your time and suggestions.

LordReg commented 4 years ago

Did you check ~/dmenu.log after adding > ~/dmenu.log 2>&1 to your script as in my example? If dmenu has issues loading a font, it will output errors.

marcopeereboom commented 4 years ago

@axelcalixte, has this been fixed?

axelcalixte commented 4 years ago

Sorry for not being active around here. I didn't find a fix for my problem, I'd say we can close this since I no longer really user spectrwm anyway on my machines. Maybe if I come back to it in the near future the issue won't be there waiting for me

Thanks for spectrwm I think it should be recommended more but I had some gripes with it still. And sorry I don't care that much talking about them