Add music to status bar

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2018-12-25 17:25:23 +01:00
parent 474a3d4f30
commit ef20a492de
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
5 changed files with 69 additions and 4 deletions

View file

@ -14,10 +14,12 @@
TEXT="Choose action"
WIDTH=400
HEIGHT=200
HEIGHT=300
ACTIONS=(
"Reboot"
"Shutdown"
"Performance Mode"
"Powersave Mode"
)
action=$(zenity --list --width="${WIDTH}" --height="${HEIGHT}" --text="${TEXT}" --column="Action" "${ACTIONS[@]}")
@ -29,5 +31,11 @@ then
elif [ "${action}" == "Shutdown" ]
then
systemctl poweroff
elif [ "${action}" == "Performance Mode" ]
then
gksudo "cpupower frequency-set -g performance"
elif [ "${action}" == "Powersave Mode" ]
then
gksudo "cpupower frequency-set -g powersave"
fi