Issue in GTK apps on Wayland
Hey,
Below are my config files. These mappings are not working* in GTK apps (Evolution, Firefox, Gnome Terminal, etc..) But there is no error in Chrome / Electron-based apps (VSCode, Spotify, Google Chrome).
- Actually it is somehow working: To print a
(
when pressed the left shift key, first, I have to keep pressingright shift
and while pressing it if I pressleft shift
there I have a(
on the screen. And vice versa to print a)
. **
Do you have any idea why is that?
Distro: Fedora 33
Graphics: Wayland
Kernel: 5.9.13-200.fc33.x86_64
/etc/udevmon.yaml
:
- JOB: "intercept -g $DEVNODE | dual-function-keys -c /home/ali/.dual-function-keys.yaml | uinput -d $DEVNODE"
DEVICE:
EVENTS:
EV_KEY: [KEY_LEFTSHIFT, KEY_RIGHTSHIFT, KEY_CAPSLOCK]
~/.dual-function-keys.yml
:
TIMING:
TAP_MILLISEC: 200
DOUBLE_TAP_MILLISEC: 0
MAPPINGS:
- KEY: KEY_LEFTSHIFT
TAP: [KEY_LEFTSHIFT, KEY_9]
HOLD: KEY_LEFTSHIFT
- KEY: KEY_RIGHTSHIFT
TAP: [KEY_RIGHTSHIFT, KEY_0]
HOLD: KEY_RIGHTSHIFT
- KEY: KEY_CAPSLOCK
TAP: KEY_CAPSLOCK
HOLD: KEY_LEFTCTRL
Thanks!
UPDATE: Btw, the above setup is working without any problem when I switched to Xorg.
UPDATE 2: I added NAME
as AT Translated Set 2 keyboard
to the /etc/udevmon.yaml
file just in case. No luck.
Edited by Ali Oğuzhan Yıldız