From d75a711f9564ed4e6bd89cd58a2c046fa0b21be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Fri, 30 Jan 2026 19:45:39 +0100 Subject: [PATCH] hyprland: remove lockMonitorNames option --- home/hosts/gunter/default.nix | 7 ------- home/hyprland/default.nix | 32 ++++++++++++-------------------- 2 files changed, 12 insertions(+), 27 deletions(-) diff --git a/home/hosts/gunter/default.nix b/home/hosts/gunter/default.nix index 4a4402c..919fcc4 100644 --- a/home/hosts/gunter/default.nix +++ b/home/hosts/gunter/default.nix @@ -79,13 +79,6 @@ "$mon_right" = "desc:Samsung Electric Company LS27A600U HNMT502390"; }; - hyprland.lockMonitorNames = [ - "BNQ G2420HDBL T2B04424SL000" - "Samsung Electric Company LS27A600U HNMT502389" - "Acer Technologies XB271HU #ASPVEKfgZ8Dd" - "Samsung Electric Company LS27A600U HNMT502390" - ]; - hyprland.extraKeybinds = [ "$mainMod,Print,exec,grimblast save active ~/tmp/$(date -Iseconds).png" "$shiftMainMod,Print,exec,grimblast copy area" diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 815c71d..b6f2f5b 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -44,16 +44,6 @@ in description = "Extra keybinds for Hyprland"; }; - lockMonitorNames = mkOption { - type = types.listOf (types.nullOr types.str); - default = [ null ]; - example = [ - "desc:BNQ G2420HDBL T2B04424SL000" - "desc:Samsung Electric Company LS27A600U HNMT502389" - ]; - description = "Monitor names for hyprlock backgrounds (null for all monitors)"; - }; - extraWorkspaces = mkOption { type = types.listOf types.str; default = [ ]; @@ -120,16 +110,18 @@ in programs.hyprlock = { enable = true; settings = { - background = map (mon: { - monitor = if mon == null then "" else "desc:${mon}"; - path = "screenshot"; - color = "rgba(17, 17, 17, 1.0)"; - blur_passes = 3; - contrast = 0.8916; - brightness = 0.8172; - vibrancy = 0.1696; - vibrancy_darkness = 0.0; - }) cfg.lockMonitorNames; + background = [ + { + monitor = ""; + path = "screenshot"; + color = "rgba(17, 17, 17, 1.0)"; + blur_passes = 3; + contrast = 0.8916; + brightness = 0.8172; + vibrancy = 0.1696; + vibrancy_darkness = 0.0; + } + ]; general = { grace = 0;