mirror of
https://github.com/Phantop/dotfiles
synced 2024-12-12 08:25:20 +00:00
11 lines
483 B
Fish
Executable file
11 lines
483 B
Fish
Executable file
# Defined in /tmp/fish.mndBU3/cpugov.fish @ line 2
|
|
function cpugov
|
|
echo -e "The current state is "(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
|
|
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)
|
|
end
|