From 8f871e8f582fc46b31b6821fabaa8c8fad5d07f1 Mon Sep 17 00:00:00 2001 From: Joshua Yuen Date: Tue, 29 Jul 2025 13:31:01 -0400 Subject: [PATCH] Add hyprland monitor config option --- modules/home/hyprland/hyprland.nix | 2 ++ modules/options/hyprland.nix | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/modules/home/hyprland/hyprland.nix b/modules/home/hyprland/hyprland.nix index e410901..828b439 100644 --- a/modules/home/hyprland/hyprland.nix +++ b/modules/home/hyprland/hyprland.nix @@ -24,6 +24,8 @@ in }; xwayland.enable = true; settings = { + monitor = cfg.monitor; + general = { "$modifier" = "SUPER"; }; diff --git a/modules/options/hyprland.nix b/modules/options/hyprland.nix index cf1c24f..1f8f9b1 100644 --- a/modules/options/hyprland.nix +++ b/modules/options/hyprland.nix @@ -23,5 +23,12 @@ in The terminal to use for Hyprland. ''; }; + monitor = mkOption { + type = types.listOf types.str; + default = [ ",preferred,auto,1" ]; + description = '' + Monitors to use for Hyprland. + ''; + }; }; } \ No newline at end of file