Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added LibInput listener to toggle CapsLock #23

Merged
merged 5 commits into from
Jul 11, 2023
Merged

Conversation

ErikReider
Copy link
Owner

@ErikReider ErikReider commented Jul 11, 2023

Adds a backend Dbus service which swayosd can optionally connect to which tells swayosd which special keys (capsLock, scrollLock, volume up, etc...) are being released + their LED state.

This fixes an issue that I've been annoyed with on Sway where pressing CapsLock + any other key wouldn't execute the CapsLock binding.

Todo:

  • Update README with Usage
  • Make sure that all of the services/rules work as expected

@ErikReider ErikReider added the enhancement New feature or request label Jul 11, 2023
@ErikReider ErikReider self-assigned this Jul 11, 2023
@ErikReider
Copy link
Owner Author

@jgmdev you might want to update the PKGBUILD to use meson

@ErikReider ErikReider merged commit 377496a into main Jul 11, 2023
@ErikReider ErikReider deleted the libinput-watcher branch July 11, 2023 22:25
@simonvanderveldt
Copy link

@ErikReider Small question regarding this change, is there a way to disable trying to access the listener when using swayosd?
I don't have the listener running (I just want to use the keybindings in the config), but when I run any swayosd command it now hangs waiting for the listener

$ swayosd --brightness raise
SwayOSD LibInput Backend isn't available, waiting...

P.S. Brightness change works fine for me, can't reproduce the issue as described in #12

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants