Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Hyprland ignores modifier keys from wtype

Open izvyk opened this issue 2 years ago • 6 comments

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

izvyk avatar Jun 16 '23 13:06 izvyk

Same issue.

jheroy avatar Mar 10 '24 09:03 jheroy

is this still a thing?

vaxerski avatar May 15 '24 23:05 vaxerski

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.

izvyk avatar May 16 '24 08:05 izvyk

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

mecattaf avatar May 21 '24 13:05 mecattaf

I meant git

vaxerski avatar May 21 '24 16:05 vaxerski

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

izvyk avatar May 21 '24 18:05 izvyk