fix: pip padding

This commit is contained in:
2024-10-06 19:18:33 +02:00
parent 8efcf832a9
commit 3ca6f9fa70

View File

@@ -39,6 +39,7 @@
let let
firefoxPip = "class:^(firefox)$,title:^(Picture-in-Picture)$"; firefoxPip = "class:^(firefox)$,title:^(Picture-in-Picture)$";
firefoxPipInitial = "class:^(firefox)$,title:^(Firefox)$"; firefoxPipInitial = "class:^(firefox)$,title:^(Firefox)$";
pipPadding = toString (config.theme.md3-evo.padding * 2);
in in
[ [
"keepaspectratio,${firefoxPip}" "keepaspectratio,${firefoxPip}"
@@ -49,8 +50,8 @@
"pin,${firefoxPipInitial}" "pin,${firefoxPipInitial}"
"fullscreenstate 2 0,${firefoxPip}" "fullscreenstate 2 0,${firefoxPip}"
"fullscreenstate 2 0,${firefoxPipInitial}" "fullscreenstate 2 0,${firefoxPipInitial}"
"move 22 72,${firefoxPip}" "move ${pipPadding} ${pipPadding},${firefoxPip}"
"move 22 72,${firefoxPipInitial}" "move ${pipPadding} ${pipPadding},${firefoxPipInitial}"
# For some reason it really wants to be maximized # For some reason it really wants to be maximized
"suppressevent maximize,class:^(neovide)$" "suppressevent maximize,class:^(neovide)$"
# pinentry # pinentry