From 607e62fb7a7050af74aa6b51156aee0bb64bfa42 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Wed, 2 Jul 2025 12:09:16 +0200 Subject: [PATCH] feat(home/hyprland): add some float/pin rules for vlc and firefox pip --- home/gabriel/features/desktop/hyprland/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home/gabriel/features/desktop/hyprland/default.nix b/home/gabriel/features/desktop/hyprland/default.nix index 26dcc505..a318fece 100644 --- a/home/gabriel/features/desktop/hyprland/default.nix +++ b/home/gabriel/features/desktop/hyprland/default.nix @@ -136,6 +136,8 @@ in { wineTray = "class:explorer.exe"; rsiLauncher = "class:rsi launcher.exe"; steamBigPicture = "title:Steam Big Picture Mode"; + firefoxPictureInPicture = "class:firefox,title:Picture-in-Picture"; + floatingVlc = "floating:1,class:vlc"; in [ "idleinhibit focus, fullscreenstate:2 *" @@ -158,6 +160,11 @@ in { "tile, ${rsiLauncher}" "fullscreen, ${steamBigPicture}" + + "float, ${firefoxPictureInPicture}" + "pin, ${firefoxPictureInPicture}" + + "pin, ${floatingVlc}" ] ++ (lib.mapAttrsToList ( name: colors: "bordercolor ${rgba colors.primary "ee"} ${rgba colors.primary_container "aa"}, title:\\[${name}\\].*"