Skip to content

Feature Request: Hypridle different timeout actions for battery vs AC power #1256

Description

@TomSchimana

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions