From d0b6c7256fbcebaeb32bac72539bb48826fe30a0 Mon Sep 17 00:00:00 2001 From: sora Date: Sun, 19 Nov 2023 22:32:34 +0100 Subject: [PATCH] Update modules/home/wayland/apps/kanshi/default.nix --- modules/home/wayland/apps/kanshi/default.nix | 161 ++++++++++--------- 1 file changed, 87 insertions(+), 74 deletions(-) diff --git a/modules/home/wayland/apps/kanshi/default.nix b/modules/home/wayland/apps/kanshi/default.nix index d62a9f2..222f74f 100644 --- a/modules/home/wayland/apps/kanshi/default.nix +++ b/modules/home/wayland/apps/kanshi/default.nix @@ -1,74 +1,87 @@ -{ ... }: { - - services.kanshi = { - enable = true; - systemdTarget = "graphical-session.target"; - profiles = { - tower_0 = { - outputs = [{ - criteria = "CEX CX133 0x00000001"; - mode = "1920x1200@59.972"; - position = "0,0"; - scale = 1.0; - status = "enable"; - }]; - }; - tower_1 = { - outputs = [{ - criteria = "AOC 16G3 1DDP7HA000348"; - mode = "1920x1080@144.000"; - position = "0,0"; - status = "enable"; - scale = 1.0; - adaptiveSync = true; - }]; - }; - laptop_0 = { - outputs = [{ - criteria = "LG Display 0x060A Unknown"; - mode = "1920x1080@60.020"; - position = "0,0"; - scale = 1.0; - status = "enable"; - }]; - }; - laptop_1 = { - outputs = [ - { - criteria = "CEX CX133 0x00000001"; - mode = "2560x1600@59.972"; - position = "0,0"; - scale = 1.0; - status = "enable"; - } - { - criteria = "LG Display 0x060A Unknown"; - mode = "1920x1080@60.020"; - position = "2560,0"; - scale = 1.0; - status = "enable"; - } - ]; - }; - laptop_2 = { - outputs = [ - { - criteria = "AOC 16G3 1DDP7HA000348"; - mode = "1920x1080@144.000"; - position = "0,0"; - status = "enable"; - scale = 1.0; - adaptiveSync = true; - } - { - criteria = "LG Display 0x060A Unknown"; - mode = "1920x1080@60.020"; - position = "1920,0"; - scale = 1.0; - status = "enable"; - } - ]; - }; - }; - }; -} +{ ... }: { + + services.kanshi = { + enable = true; + systemdTarget = "graphical-session.target"; + profiles = { + tower_0 = { + outputs = [{ + criteria = "CEX CX133 0x00000001"; + mode = "1920x1200@59.972"; + position = "0,0"; + scale = 1.0; + status = "enable"; + }]; + }; + tower_1 = { + outputs = [{ + criteria = "AOC 16G3 1DDP7HA000348"; + mode = "1920x1080@144.000"; + position = "0,0"; + status = "enable"; + scale = 1.0; + adaptiveSync = true; + }]; + }; + tower_2 = { + outputs = [ + { + criteria = "AOC 16G3 1DDP7HA000348"; + mode = "1920x1080@144.000"; + position = "0,0"; + status = "enable"; + scale = 1.0; + adaptiveSync = true; + }, + { + criteria = "CEX CX133 0x00000001"; + mode = "1920x1200@59.972"; + position = "0,1080"; + scale = 1.0; + status = "enable"; + } + ]; + }; + laptop_0 = { + outputs = []; + }; + laptop_1 = { + outputs = [ + { + criteria = "CEX CX133 0x00000001"; + mode = "2560x1600@59.972"; + position = "0,0"; + scale = 1.0; + status = "enable"; + } + { + criteria = "LG Display 0x060A Unknown"; + mode = "1920x1080@60.020"; + position = "2560,0"; + scale = 1.0; + status = "enable"; + } + ]; + }; + laptop_2 = { + outputs = [ + { + criteria = "AOC 16G3 1DDP7HA000348"; + mode = "1920x1080@144.000"; + position = "0,0"; + status = "enable"; + scale = 1.0; + adaptiveSync = true; + } + { + criteria = "LG Display 0x060A Unknown"; + mode = "1920x1080@60.020"; + position = "1920,0"; + scale = 1.0; + status = "enable"; + } + ]; + }; + }; + }; +}