You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
184 B

#!/bin/bash
while (true); do
percentage=acpi | awk '{split($4,a,"%"); print a[1]}'
if [ $percentage > 6 ]; then
swaynag -m "Battery is almost empty" -e bottom
break
fi
sleep 30
done