battery
battery copied to clipboard
Support putting config dir in $XDG_CONFIG_HOME
Regarding #208
I just patched where ever $HOME/.battery is found in the code.
Basically it checks whether the env var XDG_CONFIG_HOME is set. If so, set the config dir to $XDG_CONFIG_HOME/battery, otherwise fallback to $HOME/.battery.
Tell me if I'm missing something :)
- Wouldn't you rather set the default location to $HOME/.config as stated in the specs at https://specifications.freedesktop.org/basedir-spec/latest/?
- XDG_CONFIG_HOME should be ignored in my opinion, if the script is used as setup for another user.