File: README.md

package info (click to toggle)
keyman 18.0.246-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,316 kB
  • sloc: python: 52,784; cpp: 21,289; sh: 7,633; ansic: 4,823; xml: 3,617; perl: 959; makefile: 139; javascript: 138
file content (28 lines) | stat: -rw-r--r-- 880 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# keyman-system-service

A DBus system service that allows to access `/dev/input/*` devices
to toggle capslock and perform other keyboard related actions. This is
required when running under Wayland, but also used with X11.

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](https://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html)
  which allows to add a rule with an action that checks for the program.

- to see the log file

  ```bash
  journalctl -f -u systemd-keyman
  ```

- to monitor method calls

  ```bash
  sudo busctl monitor com.keyman.SystemService1
  ```