mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-12 17:58:50 +01:00
00_lowpower.sh
This commit is contained in:
parent
c0aab424a6
commit
70e72e7172
@ -4,11 +4,9 @@ BAT_PNT=`upower -i $(upower -e | grep 'battery') | grep -E "state|to\ full|perce
|
||||
|
||||
if [ "$BAT_PNT" -lt "20" ]; then
|
||||
|
||||
if [ "$BAT_PNT" -lt "10" ]; then
|
||||
echo '{"type":"once","content":"Low Battery: 10% of battery remaining"}'
|
||||
fi
|
||||
|
||||
if [ "$BAT_PNT" -lt "5" ]; then
|
||||
echo '{"type":"once","content":"Low Battery: 5% of battery remaining"}'
|
||||
elif [ "$BAT_PNT" -lt "10" ]; then
|
||||
echo '{"type":"once","content":"Low Battery: 10% of battery remaining"}'
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user