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)