dotfiles

Configuration for the software I use.
git clone https://git.sr.ht/~jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit 32b025afd0e18944ca35925e9c18216d565c3bb6
parent df275eda9853d0ca5fc4a694c0665a5cb81c1114
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Thu, 18 Jun 2020 14:19:12 -0400

Update battery-notify script

Diffstat:
Mscripts/sh/battery-notify.sh | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/scripts/sh/battery-notify.sh b/scripts/sh/battery-notify.sh @@ -5,17 +5,17 @@ get_percentage_BAT0() acpi | head -1 | cut -d' ' -f4 | tr -d '%,' } -get_percentage_BAT1() -{ - acpi | tail -1 | cut -d' ' -f4 | tr -d '%,' -} +# get_percentage_BAT1() +# { +# acpi | tail -1 | cut -d' ' -f4 | tr -d '%,' +# } pcent=$(get_percentage_BAT0) [ "$pcent" -eq 10 ]; notify-send -u critical -i battery-caution-symbolic \ "Battery Low" "Please plug in charger" -[ "$pcent" -eq 5 ]; notify-send -u critical -i battery-empty-symbolic \ +[ "$pcent" -lt 5 ]; notify-send -u critical -i battery-empty-symbolic \ "Battery Critically Low" "Save all work or plug in charger now" -pcent=$(get_percentage_BAT1) -[ "$pcent" -eq 10 ]; notify-send -u critical -i battery-low-symbolic \ - "External Battery Low" "Switching to internal battery soon" +# pcent=$(get_percentage_BAT1) +# [ "$pcent" -eq 10 ]; notify-send -u critical -i battery-low-symbolic \ +# "External Battery Low" "Switching to internal battery soon"