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

feature: stop the timer when computer goes to sleep #28

Open
cip123 opened this issue Feb 1, 2023 · 1 comment
Open

feature: stop the timer when computer goes to sleep #28

cip123 opened this issue Feb 1, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@cip123
Copy link

cip123 commented Feb 1, 2023

As the title says, it would be nice if this plugin could detect when the computer is going to sleep and stop the timer.

Users can then stop the timer just by locking their computers.

@LorenDB
Copy link
Contributor

LorenDB commented Feb 1, 2023

Hmm, I like the idea, but I think that some people (like myself) are going to want the timer to keep running when the computer is locked. This would have to become a configurable option before I would accept it.

Also, this might be easy to do on Windows or macOS, since there would just be a single API to use, but it might end up being a nightmare trying to support all of the different screen locking options for Linux, since I was not able to find a D-Bus API for this right off the bat. In your case, since you said you are using GNOME, you might be best off to use https://github.com/lucassabreu/clockify-cli in a script that you hook up to run whenever the screen is locked. I don't know how you would end up doing that though.

@LorenDB LorenDB added the enhancement New feature or request label Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants