From 071cd421b7e9e7dbae59b0eaeb4a4539816d8122 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Mon, 22 Dec 2025 21:49:07 +0200 Subject: [PATCH] feat: arwen kanshi --- modules/hosts/ws/arwen/default.nix | 34 ++++++++++++++++++++++++++++++ modules/hosts/ws/arwen/niri.kdl | 5 ----- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/modules/hosts/ws/arwen/default.nix b/modules/hosts/ws/arwen/default.nix index f4f40a2..22837ec 100644 --- a/modules/hosts/ws/arwen/default.nix +++ b/modules/hosts/ws/arwen/default.nix @@ -57,6 +57,40 @@ in { { home.stateVersion = config.system.stateVersion; home.file.".config/niri/config.kdl".source = ./niri.kdl; + + services.kanshi = { + enable = true; + systemdTarget = "graphical-session.target"; + settings = let + internal = { + criteria = "eDP-1"; + mode = "1920x1080@60.008"; + scale = 1.0; + }; + in [ + { + profile.name = "standalone"; + profile.outputs = [ + internal + ]; + } + { + profile.name = "deskgaming"; + profile.outputs = [ + ( + internal + // { + status = "disable"; + } + ) + { + criteria = "PNP(BNQ) BenQ EL2870U H9J03659SL0"; + mode = "1920x1080@60.000"; + } + ]; + } + ]; + }; } # TODO: see alice diff --git a/modules/hosts/ws/arwen/niri.kdl b/modules/hosts/ws/arwen/niri.kdl index 433c3f3..59847af 100644 --- a/modules/hosts/ws/arwen/niri.kdl +++ b/modules/hosts/ws/arwen/niri.kdl @@ -10,11 +10,6 @@ input { focus-follows-mouse } -output "eDP-1" { - mode "1920x1080@60.008" - scale 1 -} - layout { gaps 8 -- 2.44.1