Open liumingedwin opened 1 month ago
just in case you are wondering if there is alternatives, you could use IPC https://github.com/killown/waypy
for example if you want to trigger a shortcut ALT+E sock.press_key("A-KEY_E")
Wtype uses different key codes with a custom mapping. By default bindings in Wayfire are based on hardware keycodes so that's where the confusion comes from.
As a workaround, you can try using the xkb-shortcuts plugin available in the latest git version. With it, I think that shortcuts ought to work with wtype (you'll have to update the config file though to use keysyms for bindings). Related: #1601 , #2247
Describe the bug Usually, wtype uses some Wayland keyboard protocol to emulate the Key down actions. However, it didn't work in wayfire but it's okay to type texts.
To Reproduce Steps to reproduce the behavior:
Expected behavior Shortcut triggered.
Wayfire version 0.8.1, Debian Trixie