nyrna icon indicating copy to clipboard operation
nyrna copied to clipboard

[Feature request] Auto-resume at timed interval, or window focus/click

Open geotro opened this issue 1 year ago • 1 comments

Nyrna is really cool! thanks for working on it.

I would like to request two features.

  1. Timed unsuspend (and for how long) then suspend again any given app. This can be useful to apps like mail clients by allowing them to wake up and poll for mail, for example.

  2. Click an suspended app, or bring it to focus to unsuspend it. It can be an immensely useful if implemented.

To implement this feature one might look into https://stackoverflow.com/questions/1014822/how-to-know-which-window-has-focus-and-how-to-change-it or on how xdotool / xprop do this and mimick it: https://superuser.com/questions/382616/detecting-currently-active-window

Both of these features would make Nyrna immensely useful to me as a daily driver and probably to many laptop users too for optimizing battery run time.

geotro avatar Oct 01 '24 10:10 geotro

Thanks for the suggestions!

Both of these would add some decent complexity, and number 2 isn't doable on Wayland at all at the moment. I will give them some thought.

Merrit avatar Oct 02 '24 16:10 Merrit