From 7c135d2291f436a24528146e56768e1d062b285c Mon Sep 17 00:00:00 2001 From: Asmir A Date: Sat, 1 Jun 2024 19:14:23 +0200 Subject: [PATCH] home/kanshi: update config syntax format --- home/home.nix | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/home/home.nix b/home/home.nix index 4479765..4932b81 100644 --- a/home/home.nix +++ b/home/home.nix @@ -250,22 +250,31 @@ in { kanshi = { enable = true; - profiles.undocked.outputs = [ + settings = [ { - criteria = "eDP-1"; + profile.name = "undocked"; + profile.outputs = [ + { + criteria = "eDP-1"; + } + ]; } - ]; - profiles.docked.outputs = [ + { - criteria = "eDP-1"; - } - { - criteria = "Philips Consumer Electronics Company PHL 272S1 UHB2347026536"; - mode = "1920x1080@74.973Hz"; - } - { - criteria = "Philips Consumer Electronics Company PHL 272S1 UHB2347026535"; - mode = "1920x1080@74.973Hz"; + profile.name = "docked"; + profile.outputs = [ + { + criteria = "eDP-1"; + } + { + criteria = "Philips Consumer Electronics Company PHL 272S1 UHB2347026536"; + mode = "1920x1080@74.973Hz"; + } + { + criteria = "Philips Consumer Electronics Company PHL 272S1 UHB2347026535"; + mode = "1920x1080@74.973Hz"; + } + ]; } ]; };