Created
April 13, 2017 17:59
-
-
Save mikebarkmin/ce08c59ac0c7cdf932f44d3119dd3bb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case "$1" in | |
powersave) | |
sudo pstate-frequency -S -p powersave && xbacklight -set 15 | |
;; | |
balanced) | |
sudo pstate-frequency -S -p balanced && xbacklight -set 50 | |
;; | |
performance) | |
sudo pstate-frequency -S -p performance && xbacklight -set 100 | |
;; | |
*) | |
echo "Usage: $0 {powersave|balanced|performance}" | |
exit 2 | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment