Use $XDG_CONFIG_HOME

This commit is contained in:
Shy 2017-04-17 22:20:45 +02:00
parent 0e73ef772f
commit f475e6c3a3
6 changed files with 16 additions and 16 deletions

View file

@ -41,8 +41,8 @@ case "$state" in
_values Presets 'off' 'random'
ret=$?
fi
if [[ "$XDG_CONFIG_DIR" ]]; then
c4ctrl_cfg_dir="$XDG_CONFIG_DIR/c4ctrl"
if [[ "$XDG_CONFIG_HOME" ]]; then
c4ctrl_cfg_dir="$XDG_CONFIG_HOME/c4ctrl"
else
c4ctrl_cfg_dir="$HOME/.config/c4ctrl"
fi