Skip to content

Disable the global hook on Linux when the screen is locked #121

Description

@TolikPylypchuk

Having the global hook implemented through direct /dev/input integration means that it works even when the screen is locked which is not the case on Windows and macOS. Users do not expect this to work when they are entering their OS password, so Keyboard Switch should stop the global hook when the screen is locked.

There is no native way to listen to screen lock events either on X11 or on Wayland, so Keyboard Switch should listen to D-Bus events, and maybe some specific desktop environment stuff to determine whether the screen is locked.

Activity

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

Metadata

Metadata

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions