From 1a1211a8fa9b19bcca89ca2169bffdcc4f946272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Mon, 16 Feb 2026 13:33:25 +0100 Subject: [PATCH] update system --- modules/nixos/shell/firefox-pip.nix | 34 ++++++++++++++--------------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/modules/nixos/shell/firefox-pip.nix b/modules/nixos/shell/firefox-pip.nix index a843244..502598c 100644 --- a/modules/nixos/shell/firefox-pip.nix +++ b/modules/nixos/shell/firefox-pip.nix @@ -17,24 +17,22 @@ in config = lib.mkIf cfg.enable { home-manager.users.${username} = { wayland.windowManager.hyprland.settings = { - windowrulev2 = - let - firefoxPip = "class:^(firefox)$,title:^(Picture-in-Picture)$"; - firefoxPipInitial = "class:^(firefox)$,title:^(Firefox)$"; - pipPadding = toString (homeConfig.theme.md3-evo.padding * 2); - in - [ - "keepaspectratio,${firefoxPip}" - "noborder,${firefoxPip}" - "float,${firefoxPip}" - "float,${firefoxPipInitial}" - "pin,${firefoxPip}" - "pin,${firefoxPipInitial}" - "fullscreenstate 2 0,${firefoxPip}" - "fullscreenstate 2 0,${firefoxPipInitial}" - "move ${pipPadding} ${pipPadding},${firefoxPip}" - "move ${pipPadding} ${pipPadding},${firefoxPipInitial}" - ]; + windowrule = [ + { + name = "firefox-pip"; + "match:class" = "^(firefox)$"; + "match:title" = "^(Picture-in-Picture)$"; + float = true; + no_follow_mouse = true; + opaque = true; + pin = true; + fullscreen_state = "2 0"; + move = "8 8"; + keep_aspect_ratio = true; + border_size = "0"; + animation = "fade"; + } + ]; }; programs.niri.settings.window-rules = [ {