commit 5a17be1d7141e1d23911cbd8435757ef3e514123
parent 63c2829159e255c1a82d55c6cce961ef0b25be32
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date: Fri, 8 Apr 2022 16:46:15 +0200
Merge branch 'master' of tronto.net:scripts
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/battery-checknow b/battery-checknow
@@ -3,7 +3,7 @@
# Check battery state, save result to a file. Pop up notification if changed.
# Requires: battery-status, notify-battery
-file="$XDG_DATA_HOME/batterystatus"
+file="${XDG_DATA_HOME:-$HOME/.local/share}/batterystatus"
low=20
crit=15