mirror of
https://github.com/clockworkpi/launcher_deot.git
synced 2026-04-28 04:49:27 +02:00
Update 00_lowpower.sh
Sync Ver.200626
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
BAT_PNT=`upower -i $(upower -e | grep 'battery') | grep -E "state|to\ full|percentage" | awk '/perc/{print $2}' | cut -d % -f1 `
|
BAT_PNT=$(upower -i "$(upower -e | grep 'battery')" | grep -E "state|to\ full|percentage" | awk '/perc/{print $2}' | cut -d % -f1 )
|
||||||
|
|
||||||
if [ "$BAT_PNT" -lt "20" ]; then
|
if [ "$BAT_PNT" -lt "20" ]; then
|
||||||
|
|
||||||
@@ -11,5 +11,5 @@ if [ "$BAT_PNT" -lt "20" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
echo $BAT_PNT
|
echo "$BAT_PNT"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user