From 8b76537d241afbfd9ed999e343796e3321dece5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Thu, 17 Oct 2024 13:02:38 +0200 Subject: [PATCH] feat: refactor kanshi --- hosts/nixos-laptop/default.nix | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/hosts/nixos-laptop/default.nix b/hosts/nixos-laptop/default.nix index 10754e9..14ac222 100644 --- a/hosts/nixos-laptop/default.nix +++ b/hosts/nixos-laptop/default.nix @@ -27,16 +27,19 @@ users.users.moritz.packages = [ pkgs.poetry ]; - home-manager.users.moritz.services.kanshi.profiles = { - undocked = { - outputs = [ + home-manager.users.moritz.services.kanshi.settings = [ + { + profile.name = "undocked"; + profile.outputs = [ { criteria = "eDP-1"; } ]; - }; - docked = { - outputs = [ + + } + { + profile.name = "docked"; + profile.outputs = [ { criteria = "eDP-1"; position = "640,1800"; # NOTE: 2160 / 1.2 = 1800 @@ -47,8 +50,9 @@ position = "0,0"; } ]; - }; - }; + + } + ]; services.kanata = { enable = true;