From 72cceb30b924d0ccc5382af59f3dc7b34e954fb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Mon, 25 Aug 2025 12:39:38 +0800 Subject: [PATCH] vanadium/xmonad: refactor fadeHook --- .../vanadium/home/xmonad/xmonad.hs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/nix/configurations/vanadium/home/xmonad/xmonad.hs b/nix/configurations/vanadium/home/xmonad/xmonad.hs index f573c087..37057540 100644 --- a/nix/configurations/vanadium/home/xmonad/xmonad.hs +++ b/nix/configurations/vanadium/home/xmonad/xmonad.hs @@ -50,18 +50,15 @@ main = , logHook = let fadeHook = - composeAll - [ opaque + composeOne + [ className ~? "steam" -?> opaque - , className ~? "steam" --> opaque + , isFirefoxFullscreen + <||> isFirefoxPIP + <||> isFirefoxVideo -?> opaque - -- Based on state - , isUnfocused --> transparency 0.08 - , isFloating --> transparency 0.08 - - , isFirefoxFullscreen --> opaque - , isFirefoxPIP --> opaque - , isFirefoxVideo --> opaque + , isUnfocused -?> transparency 0.08 + , isFloating -?> transparency 0.08 ] in fadeWindowsLogHook fadeHook