.dotfiles/configs/waybar/powermode.sh

4 lines
161 B
Bash
Raw Normal View History

2022-01-17 14:48:30 +01:00
MAX_FREQ=$(lscpu | grep "CPU max MHz" | sed --expression "s/CPU max MHz:[[:space:]]*//g" | xargs printf "%.*f\n" 0)
CURRENT_MAX_FREG=$(cpufreq-info | grep "c")