From 5329b3534fb1e0a9986abfb3a0629cc4a90edfdd Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.dev>
Date: Tue, 7 May 2024 14:28:12 +0100
Subject: [PATCH] Update sway configuration

---
 lib/nixos/home-manager/modules/sway.nix | 7 +++++--
 lib/nixos/modules/sway.nix              | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/lib/nixos/home-manager/modules/sway.nix b/lib/nixos/home-manager/modules/sway.nix
index 65ac7da1..0c5084dd 100644
--- a/lib/nixos/home-manager/modules/sway.nix
+++ b/lib/nixos/home-manager/modules/sway.nix
@@ -80,9 +80,8 @@
       defaultWorkspace = "workspace number 1";
 
       gaps = {
-        inner = 5;
+        inner = 0;
         smartBorders = "on";
-        smartGaps = true;
       };
 
       input = {
@@ -100,6 +99,7 @@
           "${modifier}+Escape" = "exec swaylock --daemonize";
           "${modifier}+Shift+b" = "exec ${pkgs.firefox}/bin/firefox";
           "${modifier}+Shift+f" = "exec ${pkgs.xfce.thunar}/bin/thunar";
+          "${modifier}+Shift+period" = "exec systemctl suspend";
           "${modifier}+Shift+s" = "exec ${pkgs.flameshot}/bin/flameshot gui";
           "${modifier}+Shift+y" = "exec ${pkgs.copyq}/bin/copyq toggle";
         };
@@ -143,6 +143,9 @@
 
       for_window [app_id="flameshot"] floating enable
       for_window [class="zoom"] floating enable
+
+      seat seat0 hide_cursor 1000
+      seat seat0 hide_cursor when-typing enable
     '';
   };
 }
diff --git a/lib/nixos/modules/sway.nix b/lib/nixos/modules/sway.nix
index 5cd69f92..9bcab56b 100644
--- a/lib/nixos/modules/sway.nix
+++ b/lib/nixos/modules/sway.nix
@@ -24,6 +24,6 @@
       XDG_SESSION_TYPE = "wayland";
     };
 
-    home.packages = with pkgs; [ i3status wl-clipboard wofi ];
+    home.packages = with pkgs; [ i3status wdisplays wl-clipboard wofi ];
   };
 }