Files
Dotfiles/.config/hypr/scripts/battery_check.sh
Keule0010 c53268e307 AGS, Hyprland, BTop, Fish, Alacritty, Yazi
Removed eww and added simple ags config
Removed kitty and added alacritty
Removed ranger  and added yazi
Added btop
Edited packages
Edited other configs
Removed waybar
2024-03-26 01:28:40 +01:00

20 lines
313 B
Bash
Executable File

#!/bin/bash
bat=$(upower -e | grep BAT)
if [ -z $bat ]; then
echo "No battery available!"
exit 1
fi
while true; do
per=$(upower -i $bat | grep percentage | awk '{print $2}')
per="${per%\%}"
if "$per" -lt 15 #&& ! is_charging
eww open battery_warning
fi
sleep 120
done