Merge pull request #49 from ecabigting/main

improving ppd-status  and go test -git package
This commit is contained in:
Johannes Kamprad
2022-05-20 14:12:55 +02:00
committed by GitHub
+10 -1
View File
@@ -4,4 +4,13 @@
#A script to show current power profile
current_profile=$(/usr/bin/powerprofilesctl get)
echo "$current_profile"
if [ "$current_profile" == "performance" ]
then
echo "<span font='FontAwesome' color='yellow'></span>"
elif [ "$current_profile" == "balanced" ]
then
echo "<span font='FontAwesome' color='white'></span>"
else
echo "<span font='FontAwesome' color='green'></span>"
fi