From f5f62c9c53ec3c140c47955bed02813d3dae6927 Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 5 Jun 2020 05:49:19 -0500 Subject: [PATCH] Conky: Actually generate the config in the right place --- .config/conky/gen.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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