From 8a2583c2a5f7e1a0296291df5c75607db7c4bc64 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Thu, 5 May 2022 09:52:50 -0400 Subject: [PATCH] Set up automatic display management --- home/nki-x1c1.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/nki-x1c1.nix b/home/nki-x1c1.nix index 778227f..d4cb6b5 100644 --- a/home/nki-x1c1.nix +++ b/home/nki-x1c1.nix @@ -43,6 +43,16 @@ }; }; + # Multiple screen setup + services.kanshi = { + enable = true; + profiles.undocked.outputs = [{ criteria = "LVDS-1"; }]; + profiles.docked-hdmi.outputs = [ + { criteria = "LVDS-1"; status = "disable"; } + { criteria = "HDMI-A-1"; } + ]; + }; + # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage # when a new Home Manager release introduces backwards