Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
emacsomancer opened this issue Dec 15, 2019 · 2 comments
Open

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

emacsomancer opened this issue Dec 15, 2019 · 2 comments

Comments

@emacsomancer
Copy link

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

@mindrunner
Copy link

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

@wavexx
Copy link

wavexx commented Mar 9, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants