From 9bc37a8d8c884cc8d89f5dec8788ded66d8de3a3 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Sat, 2 Sep 2023 21:59:22 +0200 Subject: [PATCH] Add kanshi service ans configuration --- modules/home/desktop/sway/kanshi.nix | 46 ++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 modules/home/desktop/sway/kanshi.nix diff --git a/modules/home/desktop/sway/kanshi.nix b/modules/home/desktop/sway/kanshi.nix new file mode 100644 index 0000000..cf6ef7a --- /dev/null +++ b/modules/home/desktop/sway/kanshi.nix @@ -0,0 +1,46 @@ +_: { + service.kanshi = { + enable = true; + profiles = { + home = { + outputs = [ + { + criteria = "Iiyama North America PL2792UH 1166310803122"; + mode = "3840x2160"; + position = "0,0"; + scale = 2; + } + { + criteria = "Iiyama North America PL2792UH 1176923201598"; + mode = "3840x2160"; + position = "1920,0"; + transform = "270"; + scale = "2"; + } + { + criteria = "eDP-1"; + status = "disable"; + } + ]; + }; + work = { + outputs = [ + { + criteria = "Iiyama North America PL2480H 11183M2807013"; + mode = "1920x1080"; + position = "0,0"; + } + { + criteria = "Iiyama North America PL2480H 11183M2807016"; + mode = "1920x1080"; + position = "1920,0"; + } + { + criteria = "eDP-1"; + status = "disable"; + } + ]; + }; + }; + }; +}