flag for --not-on-ac-power ?
Opened this issue · 2 comments
emacsomancer commented
It would be nice to have an option only execute when on battery.
mindrunner commented
grep 0 /sys/class/power_supply/AC/online > /dev/null && /bin/suspend-then-hibernate
wavexx commented
On debian, the powermgmt-base package provides 'on_ac_power' which essentially does this.