file get_updated

This commit is contained in:
2026-06-12 08:05:48 +02:00
parent 84f901a083
commit 71b8cf5ceb
66 changed files with 2916 additions and 0 deletions
+12
View File
@@ -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