From 3ca6f9fa7071e746d654655e8d9efcd7cab2cdae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Sun, 6 Oct 2024 19:18:33 +0200 Subject: [PATCH] fix: pip padding --- modules/home-manager/desktops/hyprland/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/home-manager/desktops/hyprland/default.nix b/modules/home-manager/desktops/hyprland/default.nix index 07d1a11..b911efa 100644 --- a/modules/home-manager/desktops/hyprland/default.nix +++ b/modules/home-manager/desktops/hyprland/default.nix @@ -39,6 +39,7 @@ let firefoxPip = "class:^(firefox)$,title:^(Picture-in-Picture)$"; firefoxPipInitial = "class:^(firefox)$,title:^(Firefox)$"; + pipPadding = toString (config.theme.md3-evo.padding * 2); in [ "keepaspectratio,${firefoxPip}" @@ -49,8 +50,8 @@ "pin,${firefoxPipInitial}" "fullscreenstate 2 0,${firefoxPip}" "fullscreenstate 2 0,${firefoxPipInitial}" - "move 22 72,${firefoxPip}" - "move 22 72,${firefoxPipInitial}" + "move ${pipPadding} ${pipPadding},${firefoxPip}" + "move ${pipPadding} ${pipPadding},${firefoxPipInitial}" # For some reason it really wants to be maximized "suppressevent maximize,class:^(neovide)$" # pinentry