Hotkey Permissions on Linux
Add a udev rule on Linux, so the Spokenly dictation shortcut and text insertion work in every app on X11 and Wayland.
- Linux
- Not available on Mac
- Not available on iPhone
- Not available on Windows
- Not available on Android
Spokenly reads the dictation shortcut directly from the input devices, so it works in any app on X11 and Wayland. For this, Spokenly needs read access to /dev/input/event* and read and write access to /dev/uinput. Without this access on Wayland, Spokenly sees the shortcut only while a Spokenly window is active. To insert text without /dev/uinput, Spokenly needs wtype, dotool, ydotool or xdotool.
The deb and rpm packages install a udev rule that gives this access. The AppImage cannot install it, so add the rule yourself.
Add the udev rule
Create the rule file
Create /etc/udev/rules.d/70-spokenly.rules with these two lines:
SUBSYSTEM=="input", KERNEL=="event*", TAG+="uaccess"
KERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput"Apply the rule
You do not need to restart the computer:
sudo udevadm control --reload-rules && sudo modprobe uinput && sudo udevadm triggerRestart Spokenly
Quit Spokenly and start it again. The shortcut now works in every app.