From e2bb0b4a00171899771e123ec9cb177985b2a236 Mon Sep 17 00:00:00 2001 From: ooks-io Date: Wed, 29 Jan 2025 19:04:01 +1100 Subject: [PATCH] hyprland: hyprlock tweaks/syncthing tray window rules --- modules/home/workstation/hyprland/components/hyprlock.nix | 4 +++- modules/home/workstation/hyprland/settings/rules.nix | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/home/workstation/hyprland/components/hyprlock.nix b/modules/home/workstation/hyprland/components/hyprlock.nix index d829761..bee1c9a 100644 --- a/modules/home/workstation/hyprland/components/hyprlock.nix +++ b/modules/home/workstation/hyprland/components/hyprlock.nix @@ -7,6 +7,7 @@ }: let inherit (osConfig.ooknet.appearance) fonts; inherit (osConfig.ooknet.workstation) environment; + inherit (osConfig.ooknet.hardware) primaryMonitor; inherit (hozen) color; inherit (lib) mkIf; in { @@ -34,6 +35,7 @@ in { }; input-field = { + monitor = primaryMonitor; size = "200, 30"; position = "0, 0"; @@ -49,7 +51,7 @@ in { }; label = { - monitor = ""; + monitor = primaryMonitor; text = "LOCKED"; position = "0, 150"; valign = "center"; diff --git a/modules/home/workstation/hyprland/settings/rules.nix b/modules/home/workstation/hyprland/settings/rules.nix index c1141f5..33ae20e 100644 --- a/modules/home/workstation/hyprland/settings/rules.nix +++ b/modules/home/workstation/hyprland/settings/rules.nix @@ -5,6 +5,10 @@ in { wayland.windowManager.hyprland.windowRules = [ # TODO tag games for immediate + { + matches = {initialTitle = "Syncthing Tray";}; + rules = ["float" "center 1" "size 50%"]; + } { matches = {class = "factorio";}; rules = ["tag +games"];