Add three-finger swipe to switch workspaces

bindgesture swipe:3:left/right -> workspace next_on_output/prev_on_output,
keeping swipes confined to the current monitor's workspace block.
Verified against installed sway 1.12 with 'sway -C'.
This commit is contained in:
2026-08-21 23:20:59 -05:00
parent ce76a4975b
commit 3d3717d0fb
+6
View File
@@ -40,6 +40,12 @@ bindsym $mod+Shift+8 exec $workspace_script 8 move
bindsym $mod+Shift+9 exec $workspace_script 9 move
bindsym $mod+Shift+0 exec $workspace_script 10 move
# Three-finger touchpad swipe to switch workspaces. *_on_output keeps the
# swipe confined to the current monitor's block of workspaces (see
# scripts/select-workspace.sh) instead of jumping to the other monitor's.
bindgesture swipe:3:left workspace next_on_output
bindgesture swipe:3:right workspace prev_on_output
bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy --type image/png
bindsym Print exec grim -g "$(slurp)" - | wl-copy --type image/png
bindsym Shift+Print exec grim "$HOME/Pictures/screenshot-$(date +%F-%H%M%S).png"