Hyprland
Hyprland copied to clipboard
Hyprland ignores modifier keys from wtype
I'm trying to use wtype to emulate key presses. But Hyprland seems to completely ignore MOD keys like CTRL, META, etc.
Steps to reproduce
In Hyprland session execute from terminal something like: wtype -M logo -k return -m logo
Expected outcome
Equal to actually pressing Logo + enter (open terminal in my case)
Noted outcome
Escape sequence just typed in the terminal ([27;9;13~)
Terminal though opens just fine if I bind only Enter for this action (without Logo) in the Hyprland config and execute wtype -k return
This works as expected in Sway session, so I suppose it is Hyprland-related problem. Also tried to press PrintScreen through wtype to take a screenshot, which was ignored as well, and some other stuff. All works in Sway, but, sadly, doesn't work in Hyprland.
Please help. Am I doing something wrong?
P.S. Hyprland version v0.26.0 from the official Arch repo
Edit: fixed a typo
Same issue.
is this still a thing?
Yes, it still doesn't work on v0.40.0.
I've just tried wtype -M logo -k return -m logo once again and got the same result - [27;9;13~.
XF86* keys like XF86MonBrightnessUp or xf86audiomute don't work. PrintScreen also has no effect (wtype -k Print). I tried wtype -k xf86audiomute and wtype -k XF86MonBrightnessUp. Wtype reports no errors so key names should be fine.
same here, on latest hyprland and wtype:
wtype -M alt -P right -m alt
returns [1;11C
and wtype -M alt -P left -m alt
returns [1;12D
I meant git
I'm sorry, I should have tested on the most recent version.
I've just built a git version (commit e419ef1873de01b0762f7f1a411994170a4d8cab and v0.40.0-117-ge419ef18 as reported by hyprctl version) and the result is unchanged. It's still an escape sequence in a terminal