From ecb13d8b191dcc7cbff4e1f7d1bd44f437c1c065 Mon Sep 17 00:00:00 2001 From: kenji Date: Sat, 14 Mar 2026 09:02:06 -0500 Subject: [PATCH] feat(hypr): firefox will always have the same opacity as active. vidoes are now easier to look at even when unfocused --- apps/firefox/default.nix | 1 - apps/hyprland/hypr/general.nix | 2 +- apps/hyprland/hypr/rules.nix | 6 ++++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/firefox/default.nix b/apps/firefox/default.nix index 102eccf..0204d47 100644 --- a/apps/firefox/default.nix +++ b/apps/firefox/default.nix @@ -25,7 +25,6 @@ windowrulev2 = [ "workspace special:youtube, class:^(youtube)$" "workspace special:jellyfin, class:^(jellyfin)$" - "noblur, class:(firefox|youtube|jellyfin)" ]; }; imports = [ diff --git a/apps/hyprland/hypr/general.nix b/apps/hyprland/hypr/general.nix index 3cff0d3..d562a1e 100644 --- a/apps/hyprland/hypr/general.nix +++ b/apps/hyprland/hypr/general.nix @@ -10,7 +10,7 @@ decoration = { rounding = 0; active_opacity = 0.99; - inactive_opacity = 0.80; + inactive_opacity = 0.99; shadow = { enabled = true; range = 2; diff --git a/apps/hyprland/hypr/rules.nix b/apps/hyprland/hypr/rules.nix index 75b35c7..479fefc 100644 --- a/apps/hyprland/hypr/rules.nix +++ b/apps/hyprland/hypr/rules.nix @@ -1,5 +1,11 @@ { wayland.windowManager.hyprland.settings = { + windowrulev2 = [ + # Make all inactive windows transparent + "opacity 0.99 0.8, class:.*" + # But make Firefox windows opaque again (last rule wins) + "opacity 0.99 0.99, class:(?i)(firefox|youtube|jellyfin)" + ]; workspace = [ ]; };