Sway: [feature proposal] Trackpad gestures to switch workspaces.

Created on 13 Dec 2017  路  8Comments  路  Source: swaywm/sway

Most helpful comment

Since libinput is the default input manager in wayland and it supports multitouch gestures I think that will be cool to define some gestures in the config file, for example 4 fingers swipe to change the workspace or 3 fingers up to reveal the scratchpad windows. It is only a idea and I can think if it is even possible.

All 8 comments

You need to put in a little more effort for big proposals like this 馃槃 .

okey, I will improve it tonigh 馃槃

I think a better request would just be trackpad gestures mapping to keybindings. Which could be possible, but I'm not sure how that would work from the libinput side.

Yes what I mean is that it will be cool if in the config file you can specify that 4 fingers swipe left is for go to the next workspace, or 3 fingers swipe up to move the focused cointainer to a superior container.

Since libinput is the default input manager in wayland and it supports multitouch gestures I think that will be cool to define some gestures in the config file, for example 4 fingers swipe to change the workspace or 3 fingers up to reveal the scratchpad windows. It is only a idea and I can think if it is even possible.

I'm not sure libinput supports that. To develop this I would need to have access to hardware with a multi-touch touchpad for testing and research, which I currently do not have.

If you'd like to work on this, start by learning how libinput works and how it interfaces with wlroots, then do some experimentation to find out how that takes shape with your hardware.

For anyone else who is looking for this, checkout libinput-gestures. It allows mapping swipe and pinch gestures to any command. Works perfectly with swaymsg commands.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Olie440 picture Olie440  路  4Comments

emersion picture emersion  路  4Comments

soymjolk picture soymjolk  路  3Comments

jakubn551 picture jakubn551  路  4Comments

Alphare picture Alphare  路  3Comments