Conky: Actually generate the config in the right place

This commit is contained in:
Salt 2020-06-05 05:49:19 -05:00
parent 78bf8c25e0
commit f5f62c9c53

View File

@ -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