From 17df35dc088c9b1b159c2b78d8330fa9cc9a672a Mon Sep 17 00:00:00 2001 From: filip <“filip.rabiega@gmail.com”> Date: Wed, 21 Jan 2026 23:42:15 +0100 Subject: reformat most scripts --- batterylow | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'batterylow') diff --git a/batterylow b/batterylow index 0f2ebd4..85cdf5d 100755 --- a/batterylow +++ b/batterylow @@ -5,18 +5,18 @@ battery=$(upower -e | grep BAT | head -n 1) percentage=$(upower -i "$battery" | - awk '/percentage/ {gsub(/%/, "", $2); print $2}') + awk '/percentage/ {gsub(/%/, "", $2); print $2}') state=$(upower -i "$battery" | - awk '/state/ {print $2}') + awk '/state/ {print $2}') # Only notify if the battery is discharging if [ "$state" != "discharging" ]; then - exit 0 + exit 0 fi if [ "$percentage" -le 5 ]; then - notify-send "Battery very low." + notify-send "Battery very low." elif [ "$percentage" -le 15 ]; then - notify-send "Battery low." + notify-send "Battery low." fi -- cgit v1.2.3