feat: autofreeze script for swww when window is selected + a toggle;
refactor: cpufreq does not save notifications anymore; feat: 3GHz option for cpufreq; feat: Script for controlling power profile + bind; refactor: removed hyprpaper, replaced with swww; refactor: no longer affecting border radius in gamemode; fix: grayscale filter; feat: toggle automatic wallpaper switching;
This commit is contained in:
@@ -4,7 +4,7 @@ CURRENT=$(sudo cpupower frequency-info | grep 'current policy: frequency should
|
||||
|
||||
set_cmd() {
|
||||
sudo cpupower frequency-set --max $1MHz
|
||||
notify-send -t 800 "$1MHz CPU Power"
|
||||
notify-send --hint int:transient:1 -t 800 "$1MHz CPU Power"
|
||||
}
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
@@ -24,6 +24,11 @@ if [ -z "$1" ]; then
|
||||
fi
|
||||
|
||||
if [ $CURRENT = "2.00GHz" ]; then
|
||||
set_cmd 3000
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ $CURRENT = "3.00GHz" ]; then
|
||||
set_cmd 4200
|
||||
exit 0
|
||||
fi
|
||||
@@ -39,7 +44,8 @@ else
|
||||
"600.00MHz") echo 2 ;;
|
||||
"1000.00MHz") echo 3 ;;
|
||||
"2.00GHz") echo 4 ;;
|
||||
"4.20GHz") echo 5 ;;
|
||||
"3.00GHz") echo 5 ;;
|
||||
"4.20GHz") echo 6 ;;
|
||||
*) echo "Unknown frequency" ;;
|
||||
esac
|
||||
exit 0
|
||||
@@ -49,10 +55,11 @@ else
|
||||
2) set_cmd 600 ;;
|
||||
3) set_cmd 1000 ;;
|
||||
4) set_cmd 2000 ;;
|
||||
5) set_cmd 4200 ;;
|
||||
5) set_cmd 3000 ;;
|
||||
6) set_cmd 4200 ;;
|
||||
esac
|
||||
exit 0
|
||||
fi
|
||||
|
||||
notify-send CPU-Power Error: value is $CURRENT
|
||||
notify-send --hint int:transient:1 CPU-Power Error: value is $CURRENT
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user