Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration file #15

Closed
Cloudef opened this issue Jan 20, 2015 · 10 comments
Closed

Configuration file #15

Cloudef opened this issue Jan 20, 2015 · 10 comments
Labels

Comments

@Cloudef
Copy link
Owner

Cloudef commented Jan 20, 2015

Add configuration file and move colors to there from the command line. Maybe some other options too that make sense. Add command line option for choosing different configuration file than default.

@Cloudef
Copy link
Owner Author

Cloudef commented Aug 10, 2015

Maybe good reason to migrate inihck to use ragel, and then use that.

@Cloudef
Copy link
Owner Author

Cloudef commented Aug 16, 2015

Main configuration files
/etc/bemenu/bemenu.ini, $XDG_CONFIG_HOME/bemenu/bemenu.ini

Program specific file
/etc/bemenu/bemenu-run.ini , $XDG_CONFIG_HOME/bemenu/bemenu-run.ini

Main configuration files are loaded first, then program specific file.
Global is loaded first, then local file.

Command line switches are applied last.
If --config switch is used, only that configuration file is loaded.

Add configuration key that can control the loading behaviour of program specific files.
never/local/default

@stacyharper
Copy link
Contributor

stacyharper commented Mar 19, 2019

This feature still is in the pipes ? I'd really like to have a configuration way. This is the really bad point of dmenu. Any news about this ?

@Cloudef
Copy link
Owner Author

Cloudef commented Mar 19, 2019

No timeline for this. I've personally felt like bemenu fits all my needs already.

@Cloudef
Copy link
Owner Author

Cloudef commented Feb 7, 2020

There is now configuration through BEMENU_OPTS env variable. It works similar to cli arguments.
E.g. BEMENU_OPTS='-p "foo bar" -fn Arial' bemenu-run

dac1ffd

@Cloudef Cloudef closed this as completed Feb 7, 2020
@meMuszr
Copy link

meMuszr commented Jul 26, 2020

Would you accept a PR for parsing configuration files?

@Cloudef
Copy link
Owner Author

Cloudef commented Jul 26, 2020

Is there a reason you'd prefer configuration file over the BEMENU_OPTS env variable?

@PRESFIL
Copy link

PRESFIL commented Jul 27, 2020

The reason may be this.
There is a solution proposed, but it is ugly and it does not always work to adapt. I wanted to make a general colors for i3-dmenu-desktop, dmenu_recency and dmenu with setting colors from the i3wm config, but nothing happened. This may be unnecessary, but with the configuration file everything would be easier. dmenu-derivatives do not have config files at all.

@Cloudef
Copy link
Owner Author

Cloudef commented Jul 27, 2020

I mean, unless you need "script specific" configuration, the BEMENU_OPTS is global if exported before launching i3wm.

ayushnix added a commit to ayushnix/tessen that referenced this issue Feb 19, 2022
I've dropped support for environment variables in favor of a config
file. This was motivated by

Cloudef/bemenu#15

From what I think of environment variables, they're meant to be used
when they won't change often, especially not during a live session while
you're working. I don't think that performing a relogin to change colors
in a dmenu program is a sensible thing. Sure, you can create wrapper
scripts and place them in your `$PATH` but that feels like an inferior
solution compared to config file kept in `$XDG_CONFIG_HOME`.
@octvs
Copy link

octvs commented Dec 14, 2022

Considering the clean structure under a dotfile repo, config file has a clear advantage compared to the clutter of the env variable on bashrc (or somewhere else). This might be the only tool I use in my wm, that requires non-dynamic configuration settings, at the same time not reading a config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants