improving ppd-status

This commit is contained in:
ecabigting
2022-05-16 10:27:51 +04:00
parent dfbddd5959
commit eafd05f069
+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