Update: Added cava and fonts, updated configs, delted useless rofi configs.

This commit is contained in:
Keyitdev
2022-06-22 19:25:59 +02:00
parent b7c3fa05d1
commit 9ffd98738b
40 changed files with 253 additions and 118 deletions
+6 -6
View File
@@ -6,13 +6,13 @@ for pid in $(pidof -x battery); do
fi
done
DIR="/usr/local/bin/icons"
DIR_ICONS="/usr/local/bin/icons"
# Notify when below this percentage
warning_level=15
WARNING_LEVEL=15
# How often to check battery status, in minutes
check_interval=1
CHECK_INTERVAL=1
while true; do
battery_level=$(acpi -b \
@@ -21,15 +21,15 @@ while true; do
charging=$(acpi -b | grep -c "Charging")
# When battery is low, and not already charging
if [ $battery_level -lt $warning_level ] &&
if [ $battery_level -lt $WARNING_LEVEL ] &&
[ $charging -eq 0 ]
then
dunstify -a "Battery" \
"Low battery: ${battery_level}%" \
"Battery is running low" \
-r 100 \
-i $DIR/battery.svg
-i $DIR_ICONS/battery.svg
fi
sleep ${check_interval}m
sleep ${CHECK_INTERVAL}m
done