From 27cbe6a8d781712bb8bf29fcbc67ee962011a515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Sun, 31 Mar 2024 16:18:59 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20(home/wayland)=20use=20kanshi=20for?= =?UTF-8?q?=20monitor=20management?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/wayland/default.nix | 1 + home/wayland/hyprland/hyprland.conf | 3 ++- home/wayland/kanshi/default.nix | 29 +++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 home/wayland/kanshi/default.nix diff --git a/home/wayland/default.nix b/home/wayland/default.nix index cd2b35b..05e9677 100644 --- a/home/wayland/default.nix +++ b/home/wayland/default.nix @@ -3,6 +3,7 @@ ./eww ./fuzzel ./hyprland + ./kanshi ./mako ./swayidle ./swaylock diff --git a/home/wayland/hyprland/hyprland.conf b/home/wayland/hyprland/hyprland.conf index c3d3053..ee19eee 100644 --- a/home/wayland/hyprland/hyprland.conf +++ b/home/wayland/hyprland/hyprland.conf @@ -1,5 +1,6 @@ # https://wiki.hyprland.org/Configuring/Monitors/ -monitor=eDP-1,1920x1080@120,0x0,1 +monitor=DP-3,1920x1080@120,0x0,1 +monitor=eDP-1,1920x1200,0x1080,1 # https://wiki.hyprland.org/Configuring/Keywords/ diff --git a/home/wayland/kanshi/default.nix b/home/wayland/kanshi/default.nix new file mode 100644 index 0000000..a98353e --- /dev/null +++ b/home/wayland/kanshi/default.nix @@ -0,0 +1,29 @@ +{...}: { + services.kanshi = { + enable = true; + systemdTarget = "hyprland-session.target"; + + profiles = { + office = { + outputs = [ + { + criteria = "DP-3"; + status = "enable"; + } + { + criteria = "eDP-1"; + status = "disable"; + } + ]; + }; + home = { + outputs = [ + { + criteria = "eDP-1"; + status = "enable"; + } + ]; + }; + }; + }; +}