1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-12 00:15:17 +00:00
dotfiles/.config/fish/functions/cpugov.fish

10 lines
426 B
Fish
Raw Normal View History

2018-11-15 01:01:37 +00:00
function cpugov
echo -e "The current state is "(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
2019-04-08 03:03:58 +00:00
if [ (cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) != "performance" ]
s -i cpupower frequency-set -g performance >/dev/null
else
s cpupower frequency-set -g powersave >/dev/null
end
echo -e "The current state is "(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
2018-11-15 01:01:37 +00:00
end