From 8044b416ee18e26d45b1c45f531c9aa68c42ab88 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 12 Sep 2024 09:09:13 +0100 Subject: [PATCH] Ronin: update kanshi config Disable laptop screen when docked Set external screen scale in sway config as well as kanshi to remove scale flickering --- system/Ronin.nix | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/system/Ronin.nix b/system/Ronin.nix index 2d7b0821..bec6a204 100644 --- a/system/Ronin.nix +++ b/system/Ronin.nix @@ -4,7 +4,10 @@ home-manager.users.${username} = { imports = [ ./home/work.nix ]; wayland.windowManager.sway.config = { - output."eDP-1".scale = "1.25"; + output = { + "eDP-1".scale = "1.25"; + "Dell Inc. DELL P3223QE CCG8YN3".scale = "1.5"; + }; workspaceOutputAssign = [ { output = "eDP-1"; @@ -19,27 +22,39 @@ laptopScreen = { criteria = "eDP-1"; scale = 1.25; - position = "2560,576"; + # position = "2560,576"; }; monitor = { criteria = "Dell Inc. DELL P3223QE CCG8YN3"; scale = 1.5; - position = "0,0"; }; in [ { profile = { - name = "undocked"; - outputs = [ laptopScreen ]; + name = "default"; + outputs = [ + { + inherit (laptopScreen) criteria scale; + status = "enable"; + position = "0,0"; + } + ]; }; } { profile = { name = "docked"; outputs = [ - laptopScreen - monitor + { + inherit (laptopScreen) criteria scale; + status = "disable"; + } + { + inherit (monitor) criteria scale; + status = "enable"; + position = "0,0"; + } ]; }; }