From 5d4dd1b56521cc2f20044dcbca71f3ef13534bb6 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Wed, 2 Sep 2015 15:11:49 +0200 Subject: [PATCH] Added option to change cpu governor --- scripts/cmenu.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/cmenu.sh b/scripts/cmenu.sh index e79e8bf..6d69fed 100755 --- a/scripts/cmenu.sh +++ b/scripts/cmenu.sh @@ -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)