file get_updated
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
state=`cat /sys/class/power_supply/AC/online`
|
||||
|
||||
if [ $state == "1" ]
|
||||
then
|
||||
threshold=`system76-power charge-thresholds | awk '/Profile/{print $NF}'`
|
||||
echo $threshold
|
||||
else
|
||||
profile=`system76-power profile | awk '/Profile/{print $NF}'`
|
||||
echo \($profile\)
|
||||
fi
|
||||
Reference in New Issue
Block a user