juice: fix messed up notify logic - scripts - various script and utils
HTML git clone git://z3bra.org/scripts
DIR Log
DIR Files
DIR Refs
---
DIR commit 095ac794b2667e58e166c724173fc0861c11253c
DIR parent c0adf9741b590e88402d276d532fd670d26046d5
HTML Author: Willy Goiffon <dev@z3bra.org>
Date: Thu, 20 Aug 2026 21:16:24 +0000
juice: fix messed up notify logic
Diffstat:
M juice | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/juice b/juice
@@ -21,7 +21,7 @@ while getopts "hcstn" OPT; do
s) fmt='%s\n'; v=$s ;; # charging status
t) test "$s" = "Charging" -o "$c" -lt "$treshold"; exit $? ;;
n) [ "$s" != "Charging" -a "$c" -lt "$treshold" ] \
- || notify-send -u critical "🪫 low battery ($c%)"
+ && notify-send -u critical "🪫 low battery ($c%)"
exit ;;
h) usage; exit 0 ;;
*) usage; exit 1 ;;