From 3d3717d0fb0041d675d2f8e7ae8fd5eb22133400 Mon Sep 17 00:00:00 2001 From: Owen Rummage Date: Fri, 21 Aug 2026 23:20:59 -0500 Subject: [PATCH] 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'. --- config/sway/keybinds | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/sway/keybinds b/config/sway/keybinds index ec85025..7ec9ba3 100644 --- a/config/sway/keybinds +++ b/config/sway/keybinds @@ -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"