summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/swall4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/swall b/scripts/swall
index 6d3b854..fdb7f89 100755
--- a/scripts/swall
+++ b/scripts/swall
@@ -2,6 +2,7 @@
# TODO add the option error checking with optind
+
err() {
echo "${0}": "${1}"
exit 1
@@ -21,7 +22,8 @@ NOTE: default wallpaper directory is ~/.config/wallpapers
EOF
}
-waldir="${XDG_CONFIG_HOME:-$HOME}/.config/wallpapers"
+waldir="${HOME}"/.config/wallpapers
+# FIXME add xdg home variable
while getopts "hcd:" option; do
case "${option}" in