From 1fbef5379201087a73127e543771cbab96abf10e Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 17 Aug 2024 17:23:27 -0400 Subject: [PATCH] sway: vertical swiping for workspaces --- homeManagerModules/desktop/sway/README.md | 2 +- homeManagerModules/desktop/sway/settings.nix | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/homeManagerModules/desktop/sway/README.md b/homeManagerModules/desktop/sway/README.md index 9d9f5029..c8407ff1 100644 --- a/homeManagerModules/desktop/sway/README.md +++ b/homeManagerModules/desktop/sway/README.md @@ -45,7 +45,7 @@ - SUPER + {1..9}: Switch to numbered workspace. - SUPER + Comma: Switch to previous numbered workspace. - SUPER + Period: Switch to next numbered workspace. -- TOUCHPAD: 3 Finger Swipe Left/Right. +- TOUCHPAD: 3 Finger Swipe Left/Up or Right/Down. #### Multi-Monitor Workspace Management diff --git a/homeManagerModules/desktop/sway/settings.nix b/homeManagerModules/desktop/sway/settings.nix index 9cba6753..95c6f549 100644 --- a/homeManagerModules/desktop/sway/settings.nix +++ b/homeManagerModules/desktop/sway/settings.nix @@ -234,16 +234,20 @@ in { bindsym --locked XF86AudioNext exec ${helpers.media.next} mode "move" { - bindgesture swipe:right move container to workspace prev; workspace prev - bindgesture swipe:left move container to workspace next; workspace next - bindgesture pinch:inward+up move up bindgesture pinch:inward+down move down bindgesture pinch:inward+left move left bindgesture pinch:inward+right move right + bindgesture pinch:inward+up move up + bindgesture swipe:down move container to workspace prev; workspace prev + bindgesture swipe:left move container to workspace next; workspace next + bindgesture swipe:right move container to workspace prev; workspace prev + bindgesture swipe:up move container to workspace next; workspace next } - bindgesture swipe:right workspace prev + bindgesture swipe:down workspace prev bindgesture swipe:left workspace next + bindgesture swipe:right workspace prev + bindgesture swipe:up workspace next bindswitch --reload --locked lid:on exec ${scripts.clamshell} on bindswitch --reload --locked lid:off exec ${scripts.clamshell} off