Cloudef / bemenu

Dynamic menu library and client program inspired by dmenu
GNU General Public License v3.0
1.24k stars 96 forks source link

I'm having issues setting colors #393

Closed tristengrant closed 8 months ago

tristengrant commented 8 months ago

I saw a previous issue where someone had problems setting colors. I followed what fixed it for them, for example: --fb="#ff0000" but that doesn't seem to work for me, on Hyprland.

Everything else seems to work, so I assume its something I'm doing wrong. If I do use the same example as before, if I have the # in the hex code, bemenu doesn't run at all. If I don't put the #, the colour still doesn't change from its default. Same thing if I try an rgb value.

Is there a config file somewhere we can change?

The exact settings I'm using in my hyprland config for bemenu

bemenu-run --fn='JetBrains Mono Bold 11.5' --fb='#ff0000' --ch='21' --cw='2.5' --hp='10' --auto-select --wrap --fixed-height --accept-single --single-instance --prompt 'RUN:' --fixed-height --line-height '30'

Cloudef commented 8 months ago

bemenu colors require 4 components, for example #121212FF

edit: Actually seems like 3 components should work as well. I tested and the color seems to work here. Could it be that if you are calling this from hyprland config it treats # as comment?

tristengrant commented 8 months ago

Hmm, yeah its probably because of the config. Do you know of a different way to run it?

Cloudef commented 8 months ago

You can either set BEMENU_OPTS (you need to pass long args without '=') env variable, or creating wrapper script. Apparently ## should also escape # in hyprland config https://wiki.hyprland.org/Configuring/Configuring-Hyprland/#comments

tristengrant commented 8 months ago

Ah, perfect. Thank you! I write a simple script but the double # works as well. Thanks again!