-
Notifications
You must be signed in to change notification settings - Fork 51
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
distinguish between "idle" reasons (keyboard, mouse, touchpad, ...) #42
Comments
Hi, The use case is: the system may become idle (after a timeout or when i force it with SIGUSR1) and set the dpms state to off. Then the system should stay idle even if the mouse moves, either because of unrelated perturbances (like somebody hits the table) or because i need the desktop space where the mouse is. Another possible way of doing this is setting a threshold: the cursor should move more than X pixels in one second to resume. |
@vicencb that's a very good point! I would definitely appreciate being able to resume only on keyboard events and ignore mouse events. |
@kittydoor This has been added in swaywm/sway#4805 |
Hi, i was trying to setup sway in order not to wake up on mouse move, but it does not work.
|
I start swayidle like this to not unlock on mouse movements, it works:
|
This worked for me to only inhibit idle on keyboard actions and ignore mouse movements:
This issue can thus be closed, no? |
well, i'd have to test it but at first glance it doesn't seem like it really solves my problem. the thing is i still want to make any keyboard or mouse event to be considered "activity" so the screen doesn't lock after a timeout... ...i just need a way to actively hook myself to a specific subset of inputs... |
this will probably be rejected right away but still... ;-)
i currently use swayidle to do the session locking, dpms, etc... one of the actions is:
timeout 5 "light -s sysfs/leds/asus::kbd_backlight -r -S 0" resume "light -s sysfs/leds/asus::kbd_backlight -r -S 1"
...this lights up the keyboard anytime i press a key and turns off the light after 5s - this increases battery life a lot! (while preserving "where's that obscure key" kind of comfort).
the only downside is that this also fires when i move the cursor (which i sometimes do to prevent screen lock in middle of reading an article). :-(
would it be possible to add something like "timeout-keyboard" etc.?
...or any other suggestions how to achieve such behaviour?
thanks!
The text was updated successfully, but these errors were encountered: