spiegel-keyman/linux/keyman-system-service
Eberhard Beilharz 5f5054b93c
chore(linux): Fix lintian warnings
- add rudimentary man page for keyman-system-service
- remove hashbang for bash completion files
- reword description for keyman-system-service

This fixes these lintian warnings:
keyman-system-service: description-is-pkg-name Keyman system service
keyman: bash-completion-with-hashbang /usr/bin/env bash
        [usr/share/bash-completion/completions/km-config:1]
keyman-system-service: no-manual-page
        [usr/libexec/keyman-system-service]
2023-06-05 17:18:55 +02:00
..
man chore(linux): Fix lintian warnings 2023-06-05 17:18:55 +02:00
resources feat(linux): Add system service to toggle capslock LED 2023-05-15 09:13:58 +02:00
src feat(linux): Refactor to benefit from C++ RAII 2023-05-22 19:51:45 +02:00
tests feat(linux): Refactor to benefit from C++ RAII 2023-05-22 19:51:45 +02:00
build.sh feat(linux): Refactor to benefit from C++ RAII 2023-05-22 19:51:45 +02:00
meson.build feat(linux): Add system service to toggle capslock LED 2023-05-15 09:13:58 +02:00
README.md feat(linux): Add system service to toggle capslock LED 2023-05-15 09:13:58 +02:00

keyman-system-service

A DBus system service that allows to access /dev/input/* devices to toggle capslock and perform other keyboard related actions when running under Wayland.

See https://0pointer.net/blog/the-new-sd-bus-api-of-systemd.html, https://stackoverflow.com/a/44281937, https://github.com/chiehmin/gdbus_test/blob/master/server.c, https://aleksander.es/data/GNOMEASIA2014%20-%20Introduction%20to%20DBus.pdf.

Notes

  • If we need to limit access to the interface to only Keyman, we can use polkit which allows to add a rule with an action that checks for the program.

  • to see the log file

    journalctl -f -u systemd-keyman
    
  • to monitor method calls

    sudo busctl monitor com.keyman.SystemService1