11 lines
265 B
Text
11 lines
265 B
Text
|
#!/bin/bash
|
||
|
currntpwr=$(powerprofilesctl get)
|
||
|
if [ "${currntpwr}" = "performance" ]; then
|
||
|
pwr=" Performance"
|
||
|
elif [ "${currntpwr}" = "balanced" ]; then
|
||
|
pwr=" Balanced"
|
||
|
elif [ "${currntpwr}" = "power-saver" ]; then
|
||
|
pwr=" PowerSaver"
|
||
|
fi
|
||
|
echo "$pwr"
|