From 76376730367dd10d9b635621574fe8569ac074b4 Mon Sep 17 00:00:00 2001 From: Markus Heurung Date: Wed, 5 Jun 2024 15:29:30 +0200 Subject: [PATCH] sway optimisations and fixes --- home.nix | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/home.nix b/home.nix index 1469b5f..8942467 100644 --- a/home.nix +++ b/home.nix @@ -431,18 +431,21 @@ wayland.windowManager = { sway = { enable = true; + extraConfig = '' + smart_gaps inverse_outer + ''; config = { gaps = { inner = 50; vertical = 100; horizontal = 600; - smartGaps = true; + # smartGaps = true; smartBorders = "on"; }; input = { "type:keyboard" = { - xkb_variant = "eu"; - xkb_options = "compose:ralt"; + xkb_layout = "eu"; + xkb_options = "compose:rwin"; }; "type:touchpad" = { tap = "enabled"; @@ -468,14 +471,15 @@ output = { DP-1 = { resolution = "3840x2160@30Hz"; - position = "1920 0"; + position = "1280 0"; # background = "/home/muhh/Sync/Backgrounds/wald.jpg fill"; - scale = "1.0"; + scale = "1.25"; }; HDMI-A-1 = { resolution = "1920x1080@60.000Hz"; transform = "180"; position = "0 0"; + scale = "1.5"; # background = "/home/muhh/Sync/Backgrounds/pfuetze.jpg fill"; }; }; @@ -488,9 +492,29 @@ window = { titlebar = false; }; + # workspaceOutputAssign = [ + # { + # workspace = "2"; + # output = "DP-1"; + # } + # ]; + workspaceOutputAssign = + map (x: { + workspace = x; + output = "DP-1"; + }) ["1" "2" "3" "4" "5" "6" "7"] + ++ map (x: { + workspace = x; + output = "HDMI-A-1"; + }) ["8" "9" "10"]; }; + wrapperFeatures.gtk = true; }; }; + xdg = { + enable = true; + mimeApps.enable = true; + }; # leave things below alone. home.stateVersion = "23.05";