hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.85k stars 909 forks source link

Use touchscreen press as a mouse click similar to mouse:272 for key binds #3096

Open digitalsignalperson opened 1 year ago

digitalsignalperson commented 1 year ago

Description

It would be sweet to use touch for similar things as Super+LMB for moving windows or Super+RMB (or SUPER_CTRL + LMB) for resizing.

Someone wrote a python script here to hack around the lack of this: https://www.reddit.com/r/hyprland/comments/11v51kj/how_is_touch_screen_support/

For reference, wev output for a LMB press:

[13:      wl_pointer] button: serial: 9821; time: 2758388; button: 272 (left), state: 1 (pressed)
[13:      wl_pointer] frame
[13:      wl_pointer] button: serial: 9822; time: 2758737; button: 272 (left), state: 0 (released)
[13:      wl_pointer] frame

we have button 272 and can use mouse:272

wev output for a touchscreen press:

[15:        wl_touch] down: serial: 9823; time: 2760169; surface: 3; id: 0; x, y: 566.644531, 173.187500
[15:        wl_touch] frame
[15:        wl_touch] up: serial: 9824; time: 2760455; id: 0
[15:        wl_touch] frame
crispy-caesus commented 1 week ago

is there anything like this implemented yet?