2023-02-25 16:12:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
currntpwr=$(powerprofilesctl get)
|
|
|
|
if [ "${currntpwr}" = "performance" ]; then
|
2023-04-01 05:00:52 +00:00
|
|
|
pwr="Performance "
|
2023-02-25 16:12:09 +00:00
|
|
|
elif [ "${currntpwr}" = "balanced" ]; then
|
2023-04-01 05:00:52 +00:00
|
|
|
pwr="Balanced "
|
2023-02-25 16:12:09 +00:00
|
|
|
elif [ "${currntpwr}" = "power-saver" ]; then
|
2023-04-01 05:00:52 +00:00
|
|
|
pwr="PowerSaver "
|
2023-02-25 16:12:09 +00:00
|
|
|
fi
|
|
|
|
echo "$pwr"
|