Use $XDG_CONFIG_HOME
This commit is contained in:
parent
0e73ef772f
commit
f475e6c3a3
6 changed files with 16 additions and 16 deletions
4
_c4ctrl
4
_c4ctrl
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue