dotfiles/.config/scripts/toggle_performance.sh

7 lines
186 B
Bash
Raw Normal View History

2023-05-21 18:57:39 +02:00
governor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
if [[ $governor == "powersave" ]]; then
sudo /opt/power/performance.sh
else
sudo /opt/power/powersave.sh
fi