Closed senorsmile closed 5 years ago
Why not just check it with dash as one of the timers? Such as:
--timer normal "on_ac_power && systemctl suspend" ""
Perfect! Didn't know on_ac_power
was even a thing.
For those on arch:
grep 0 /sys/class/power_supply/AC/online > /dev/null && systemctl suspend
Would it be possible using the existing version of xidlehook to detect when on AC power to disable one of the "stages" (i.e. still start screensaver but do not suspend)?