elenapan/bin/performance_mode
elenapan db310f8e49 New theme: ephemeral, anti-aliased corners, app drawer, lock screen,
evil daemon system, dependency list update, README improvements.
2019-08-01 02:17:59 +03:00

12 lines
309 B
Bash
Executable file

#!/usr/bin/env bash
# Toggle compton
# Requires that you have allowed cpufreq-set to run without password.
if pgrep compton; then
pkill compton
sudo cpufreq-set -g performance
echo "ON"
else
compton --config ~/.config/compton/compton.conf &
sudo cpufreq-set -g powersave
echo "OFF"
fi