diff --git a/.config/conky/gen.sh b/.config/conky/gen.sh index 47e7bab0..ff00aec2 100755 --- a/.config/conky/gen.sh +++ b/.config/conky/gen.sh @@ -17,7 +17,7 @@ set -e # Read-only set-once variables declare -r _name="$(basename -- "$0")" # Options -declare _optout="./conky.conf" +declare _optout="${XDG_CONFIG_HOME:-$HOME/.config}/conky/conky.conf" declare -i _opthelp declare -i _optverbose # Working variables @@ -76,7 +76,8 @@ printhelp() { Usage: $_name [OPTION]... Generate a conky.conf configuration file in the current directory - -o Specify output file. Defaults to ./conky.conf + -o Specify output file. Defaults to + ~/.config/conky/conky.conf -h Print this help text -v Print more status messages. Stacks