From d5507748326477e5b4b0c23b7dcdd5a2a6e7b365 Mon Sep 17 00:00:00 2001
From: xesc <xesc@xesc.de>
Date: Sat, 30 Dec 2023 01:19:33 +0100
Subject: [PATCH] adds more touchpad-gestures and minor fixes

---
 config | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)

diff --git a/config b/config
index 56a785d..0e00071 100644
--- a/config
+++ b/config
@@ -64,7 +64,8 @@ scratchpad_minimize disable
 #
 # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
 #output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
-output * bg /home/"$USER"/pictures/wallpaper/voidwallpaper.png fill
+#output * bg /home/"$USER"/pictures/wallpaper/voidwallpaper.png fill
+output * bg /home/"$USER"/pictures/wallpaper/underwater.png fill
 #
 # Example configuration:
 #
@@ -116,8 +117,10 @@ input "type:keyboard" {
 input "type:touchpad" {
 	dwt enabled
 	tap enabled
+  drag enabled
 	natural_scroll disabled
 	middle_emulation enabled
+  click_method clickfinger
 }
 
 ### Key bindings
@@ -289,9 +292,23 @@ bindsym XF86MonBrightnessUp exec brillo -A 2
 bindsym $mod+Ctrl+Backspace exec wlogout -p layer-shell
 bindsym $mod+Delete exec wlogout -p layer-shell
 
-bindgesture swipe:right workspace next
-bindgesture swipe:left workspace prev
+# Touchpad thingies
+bindgesture swipe:4:left workspace prev_on_output
+bindgesture swipe:4:right workspace next_on_output
 
+bindgesture swipe:3:left workspace prev
+bindgesture swipe:3:right workspace next
+
+bindgesture pinch:outward fullscreen enable
+bindgesture pinch:inward fullscreen disable
+
+bindgesture pinch:4:outward floating disable
+bindgesture pinch:4:inward floating enable
+
+bindgesture swipe:3:up move scratchpad
+bindgesture swipe:3:down scratchpad show, floating toggle
+
+# General settings
 font pango:Hack\ Nerd\ Font 0
 gaps inner 10
 default_border pixel 2
@@ -320,7 +337,7 @@ xwayland disable
 #    }
 #}
 
-for_window [app_id=signal] floating enable
+#for_window [app_id=signal] floating enable
 
 include /etc/sway/config.d/*
 exec pipewire