From 0189318222eca0e9d6ca2a8b87fcdb0467b2ce14 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 21 Nov 2023 11:38:17 +0000 Subject: [PATCH] Re-enable kanshi Hyprland update should have fixed how monitors are disabled to make kanshi work again --- home/hyprland/default.nix | 4 ++++ hosts/Ronin/home.nix | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 226bc1d0..2a804889 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -12,6 +12,10 @@ services = { avizo.enable = true; syncthing.enable = true; + kanshi = { + enable = true; + systemdTarget = "hyprland-session.target"; + }; udiskie = { enable = true; notify = true; diff --git a/hosts/Ronin/home.nix b/hosts/Ronin/home.nix index 40721d02..c98767ac 100644 --- a/hosts/Ronin/home.nix +++ b/hosts/Ronin/home.nix @@ -13,6 +13,29 @@ outlook.primary = true; }; }; + services.kanshi = { + enable = true; + profiles = { + undocked = { + outputs = [{ + criteria = "eDP-1"; + status = "enable"; + }]; + }; + docked = { + outputs = [ + { + criteria = "Dell Inc. DELL P3223QE CCG8YN3"; + status = "enable"; + } + { + criteria = "eDP-1"; + status = "disable"; + } + ]; + }; + }; + }; xdg.configFile."hypr/extra.conf".text = '' misc { disable_hyprland_logo = true