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

application-mapper: should lock screen count as unfocusing #936

Open
derelbenkoenig opened this issue Feb 17, 2025 · 2 comments
Open

application-mapper: should lock screen count as unfocusing #936

derelbenkoenig opened this issue Feb 17, 2025 · 2 comments

Comments

@derelbenkoenig
Copy link
Contributor

derelbenkoenig commented Feb 17, 2025

If a window is currently focused, for which keyd-application-mapper has set some binds, and then my screen locks (due to idle, or me manually locking it), then the lock screen (where I have to type my password!) still has the modified bindings of that focused window. Is there a way to make the mapper detect screen lock and interpret that as an unfocusing of the window? Fortunately my application-specific bindings don't take away any characters I need to type my password, but it's very possible that it could have

@rvaiya
Copy link
Owner

rvaiya commented Feb 21, 2025

I've done a bit of research, and as far as I can tell, there is no way to detect the lock screen on wayland. Your best bet is probably to bind whatever your lock key is to keyd reset; swaylock.

If someone is aware of a method to perform lock screen detection, please correct me.

@derelbenkoenig
Copy link
Contributor Author

Thanks for checking. I can probably incorporate that into the swayidle command for the case where the window locks automatically due to idle time, and if I'm gonna manually lock it just remember to focus a different window first.

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

No branches or pull requests

2 participants