This commit is contained in:
Sakooooo 2023-08-05 00:27:32 +03:00
parent 3a379c6211
commit a2e0513b2d
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -24,13 +24,8 @@ battery() {
Charging) printf "^c$blue^ 󰂄 $get_capacity" ;; Charging) printf "^c$blue^ 󰂄 $get_capacity" ;;
Discharging) if (( $get_capacity <= 20)); then Discharging) if (( $get_capacity <= 20)); then
printf "^c$lightred^ 󰂃 $get_capacity" printf "^c$lightred^ 󰂃 $get_capacity"
if [ "$sent_notification" = false ]; then
notify-send -u critical "test"
sent_notification=true
fi
else else
printf "^c$blue^ 󰁹 $get_capacity" printf "^c$blue^ 󰁹 $get_capacity"
sent_notification=false
fi ;; fi ;;
esac esac
#printf "^c$blue^  $get_capacity" #printf "^c$blue^  $get_capacity"