Update: Added listeners, and more shortcuts to i3 config.

This commit is contained in:
Keyitdev
2025-07-24 20:41:55 +02:00
parent 7e2ab9aac4
commit 17c8a55bbb
6 changed files with 119 additions and 9 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
# 0 Performance
# 1 Turbo
# 2 Silent
fan_boost_mode_file="/sys/devices/platform/asus-nb-wmi/throttle_thermal_policy"
current_mode=$(cat "$fan_boost_mode_file")
if [ "$current_mode" -eq 0 ]; then
echo 1 | pkexec tee /sys/devices/platform/asus-nb-wmi/throttle_thermal_policy
elif [ "$current_mode" -eq 1 ]; then
echo 2 | pkexec tee /sys/devices/platform/asus-nb-wmi/throttle_thermal_policy
elif [ "$current_mode" -eq 2 ]; then
echo 0 | pkexec tee /sys/devices/platform/asus-nb-wmi/throttle_thermal_policy
else
echo 0 | pkexec tee /sys/devices/platform/asus-nb-wmi/throttle_thermal_policy
fi