sway icon indicating copy to clipboard operation
sway copied to clipboard

Weird behaviour with seat and cursor

Open Adriankhl opened this issue 2 years ago • 1 comments

Sway version: 1.7

I was trying to set keyboard shortcut to emulate left click. For reference, this is my reddit post: https://www.reddit.com/r/swaywm/comments/xc8b28/press_cursor_button_by_keyboard/

My test:

Doesn't work: bindsym $mod+n exec swaymsg 'seat "seat0" cursor press button1'

Doesn't work: bindsym Ctrl+n seat "seat0" cursor release button1

Work: bindsym Ctrl+n exec swaymsg 'seat "seat0" cursor press button1'

Work: bindsym Ctrl+n exec swaymsg 'seat - cursor press button1'

I believe they are all supposed to work?

Adriankhl avatar Sep 12 '22 20:09 Adriankhl

I think I understand part of the problem. It is not possible to left click while holding the meta key in sway, so bindsym $mod+n exec swaymsg 'seat "seat0" cursor press button1' doesn't work. Is this intentional?

Adriankhl avatar Sep 20 '22 16:09 Adriankhl