diff --git a/bin/ex b/bin/ex old mode 100644 new mode 100755 diff --git a/bin/npm-install-globals b/bin/npm-install-globals old mode 100644 new mode 100755 diff --git a/config/hypr/bat.sh b/config/hypr/bat.sh index df000b9..c7769f9 100755 --- a/config/hypr/bat.sh +++ b/config/hypr/bat.sh @@ -3,11 +3,10 @@ # the purpose of the script is to notify when battery percentage is low while true; do - lvl=$(cat /sys/class/power_supply/BAT0/capacity) - if [ "$lbl" -le 30 ]; then - notify-send --urgency=CRITICAL "Battery Low" "Consider plugging cable in" - sleep 1200 - else - sleep 120 - fi + if [[ "$(cat /sys/class/power_supply/BAT0/capacity)" -le 30 ]]; then + notify-send --urgency=CRITICAL "Battery Low" "Consider plugging cable in" + sleep 1200 + else + sleep 120 + fi done