From 5d677c1a2e7acf115bb1080f6ea86ab29ad3234f Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sat, 13 Jan 2024 20:41:39 +0100 Subject: [PATCH] feat(xps): use kanshi instead of static sway output config --- machines/xps/home-mandlm.nix | 37 ++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/machines/xps/home-mandlm.nix b/machines/xps/home-mandlm.nix index 6ba273d..8859ccc 100644 --- a/machines/xps/home-mandlm.nix +++ b/machines/xps/home-mandlm.nix @@ -1,10 +1,39 @@ { config, lib, pkgs, user, ... }: { - wayland.windowManager.sway.config = { - output = { - eDP-1 = { - scale = "1.3"; + services.kanshi = { + enable = true; + + profiles = { + undocked = { + outputs = [ + { + criteria = "eDP-1"; + scale = 1.3; + status = "enable"; + } + ]; + }; + + home_office_right = { + outputs = [ + { + criteria = "Samsung Electric Company SMS24A450 H4MCA12730"; + scale = 1.0; + status = "enable"; + position = "0,0"; + } + { + criteria = "Samsung Electric Company SMS24A450 H4MCA12738"; + scale = 1.0; + status = "enable"; + position = "1920,0"; + } + { + criteria = "eDP-1"; + status = "disable"; + } + ]; }; }; };