From b00ddfa0e30f85390fe4f1de9942d81ed4ae5a5c Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Fri, 29 Jul 2022 21:51:03 -0500 Subject: [PATCH] Support $XDG_CONFIG_HOME --- brightness-by-daylight.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brightness-by-daylight.sh b/brightness-by-daylight.sh index f0389dc..781cf2f 100644 --- a/brightness-by-daylight.sh +++ b/brightness-by-daylight.sh @@ -20,7 +20,7 @@ # (sometimes I forget to turn on the monitor when I start my PC, so this is better than having a crontab) # location of the config file -confdir="/home/sintan/.config" +[ -z "$XDG_CONFIG_HOME" ] && confdir="/home/sintan/.config" || confdir="$XDG_CONFIG_HOME" # read from the config file if test -f $confdir/latlong.toml ; then