Hypridle should support different actions based on power source. On battery, screensavers drain power unnecessarily. Just turning off the display would be better. When plugged in, screensavers are fine.
Example:
listener {
timeout = 150 # 2.5min
on-timeout = sh -c 'if cat /sys/class/power_supply/BAT*/status 2>/dev/null | grep -q "Discharging"; then hyprctl dispatch dpms off; else pidof hyprlock || omarchy-launch-screensaver; fi'
on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected
}
Hypridle should support different actions based on power source. On battery, screensavers drain power unnecessarily. Just turning off the display would be better. When plugged in, screensavers are fine.
Example: