Added option to change cpu governor

This commit is contained in:
madmaurice 2015-09-02 15:11:49 +02:00
parent f7aa1054f0
commit 5d4dd1b565

View file

@ -23,10 +23,17 @@ require-service() {
systemctl is-active --quiet $service || sysctl start $service
}
case "$(menu timer screenshot wallpaper wicd ncmpcpp ssh zomnet power)" in
case "$(menu timer cpu screenshot wallpaper wicd ncmpcpp ssh zomnet power)" in
timer)
exec urxvt -geometry 50x3 -e ~/.config/scripts/teatimer.sh
;;
cpu)
choice=$(menu performance powersave)
case $choice in
performance|powersave)
exec gksu -S -m "Setting cpu to $choice" "cpupower frequency-set -g $choice"
esac
;;
screenshot)
case "$(menu all selective)" in
all)