From 3db0d4b51a7d6cc485de62ea17e57084cdfdce0e Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Sun, 25 Aug 2024 09:40:17 +0200 Subject: [PATCH] home: Rework Sway gaps and borders --- home/config/nil/wayland.nix | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/home/config/nil/wayland.nix b/home/config/nil/wayland.nix index 5d1513f..1aaab50 100644 --- a/home/config/nil/wayland.nix +++ b/home/config/nil/wayland.nix @@ -655,8 +655,8 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) { } { timeout = 270; - command = "${swaymsg} output '* dpms off'"; - resumeCommand = "${swaymsg} output '* dpms on'"; + command = "${swaymsg} output '*' dpms off"; + resumeCommand = "${swaymsg} output '*' dpms on"; } ]; }; @@ -779,10 +779,18 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) { gaps = { inner = 4; - outer = 4; + outer = null; }; - window.titlebar = false; + floating = { + border = 1; + titlebar = false; + }; + + window = { + border = 1; + titlebar = false; + }; bindkeysToCode = true; modifier = "Mod4"; @@ -827,6 +835,10 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) { { command = "${keepassxc}"; } ]; }; + + extraConfig = '' + force_display_urgency_hint 500 + ''; }; xdg.configFile."fontconfig/conf.d/80-fira-code.conf".text = ''