philipl/evdevremapkeys

Add DBUS / logind hook to note when current X/Wayland seat/session is locked/inactive

Closed this issue · 2 comments

This needs to be done so that input mappings are 'shut down' so that if someone else uses the computer, they don't see / experience the effect of the mappings.

Since we are mapping events outside of X/Wayland, then if the software is left running and the current user locks the screen, and another user starts a new session, that user will be affected by the remappings set up by the first user.

It looks like dbus support is in a state of flux on python, in terms of support and quality of implementations. There are command line utilities that could be run to check the seat status.

loginctl provides the needed info.

This is not needed if one uses the uaccess/udev rules in my branches RUNNING.md. UACCESS takes care of this automatically.