mirror of
https://codeberg.org/gigirassy/niri-dotfiles
synced 2026-08-30 15:19:32 +00:00
Add non-rice/sv/fanboost/run
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
# tiny microdaemon to keep fans cool
|
||||
exec 2>&1
|
||||
|
||||
while true; do
|
||||
temp=$(cat /sys/class/thermal/thermal_zone*/temp | sort -nr | head -1)
|
||||
|
||||
if [ "$temp" -ge 55000 ]; then
|
||||
echo 1 > /sys/class/thermal/cooling_device*/cur_state
|
||||
else
|
||||
echo 0 > /sys/class/thermal/cooling_device*/cur_state
|
||||
fi
|
||||
|
||||
sleep 5
|
||||
done
|
||||
Reference in New Issue
Block a user