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

Pause on Battery #221

Open
FlorianWendelborn opened this issue Aug 1, 2017 · 1 comment
Open

Pause on Battery #221

FlorianWendelborn opened this issue Aug 1, 2017 · 1 comment

Comments

@FlorianWendelborn
Copy link

Is there any way to currently do this? If not, can we support this feature?

Specifically, I'm talking about the macOS version, but I suppose users of other operating systems would appreciate this too.

@Konfekt
Copy link

Konfekt commented Aug 16, 2018

On Linux, you can add the udev-rule (for example, in /etc/udev/rules.d/) that reads

SUBSYSTEM=="power_supply", ATTR{online}=="0", RUN+="/usr/bin/pkill --exact -STOP qsyncthingtray"
SUBSYSTEM=="power_supply", ATTR{online}=="1", RUN+="/usr/bin/pkill --exact -CONT qsyncthingtray"

and perhaps alike for syncthing itself.

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

2 participants