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 request: Don't logoff for specific running apps or CPU usage threshold #63

Open
scottcopus opened this issue Oct 18, 2024 · 3 comments
Assignees
Labels

Comments

@scottcopus
Copy link

What's your thoughts on adding a condition for avoiding logoff when there's specific apps running, or window with specific titles open, or average CPU usage above a certain threshold? The use case is when you might have important long-running software processing/jobs that you don't want to lose.

example UI settings:

[ X ] Don't logoff when these apps/processes are open (use commas for multiple entries):
[ Adobe Premiere Pro.exe, Excel.exe ]

[ X ] Don't logoff when windows are open containing this text in their titles (use commas for multiple entries):
[ Encoding, Processing, Saving ]

[ X ] Don't logoff for CPU usage above [ 50% ], checking CPU every [ 5 ] second(s), averaging over the last [ 1 ] minute(s)

Thoughts?
cheers,
Scott

@ryannewington ryannewington self-assigned this Oct 29, 2024
@ryannewington
Copy link
Member

Hi Scott, these are some great ideas. The CPU one might be a but tricky, but the other two should be fairly straight forward to implement. Timing wise though, I'm not sure when I'd be able to implement specifically, but will add to the backlog

@scottcopus
Copy link
Author

Hopefully there’s already some example code on GitHub or MS to access Windows APIs for CPU load. If I come across such code, I’ll chime in here again. Cheers.

@Eskeu
Copy link

Eskeu commented Nov 5, 2024

Great idea. I like to keep a MySQL CLI window open to monitor SQL queries and this would be a great way to not have to reconnect to the DB session every time it logs me out.

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

No branches or pull requests

3 participants