Apologies if this has already been discussed but is there a preferred way of persistently passing options to dmenu?
Previously I was overriding the dmenu bin with a script of the same name with some options, e.g.: $ cat ~/bin/dmenu /usr/bin/dmenu -i -nb #101010 In dmenu-tools[1] (a collection of scripts powered by dmenu), I source a config file in XDG_CONFIG_HOME/dmenu (if it exists), containing something like: $ cat ~/.config/dmenu/dmenu.conf DMENU_OPTS='-i -nb #101010' ... which is passed to dmenu like so: dmenu $DMENU_OPTS "$@" This approach seems to work fine, although I have to patch dmenu_run (see the attached) for it to also respect options. Another approach is to read the options from a specific environment variable (if set) at run time. In dmenu-tools, the config path can be overridden like so: CONFIG="/tmp/dmenu.config" dmenu_mpc ... although this could be easily changed to actual options. Any feedback on how best to achieve this would be appreciated. [1]: https://github.com/tlvince/dmenu-tools
config.patch
Description: Binary data