jD91mZM2/xidlehook

flag for --not-on-ac-power ?

Opened this issue · 2 comments

It would be nice to have an option only execute when on battery.

grep 0 /sys/class/power_supply/AC/online > /dev/null && /bin/suspend-then-hibernate

On debian, the powermgmt-base package provides 'on_ac_power' which essentially does this.