From 5ee9d8b245d1e0bc3cf7913d317efa5e40ae8ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Mon, 3 Nov 2025 20:08:02 +0800 Subject: [PATCH] vanadium/xmonad: remove fade --- .../vanadium/home/xmonad/xmonad.hs | 31 +------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/nix/configurations/vanadium/home/xmonad/xmonad.hs b/nix/configurations/vanadium/home/xmonad/xmonad.hs index c60fb6d7..6576a161 100644 --- a/nix/configurations/vanadium/home/xmonad/xmonad.hs +++ b/nix/configurations/vanadium/home/xmonad/xmonad.hs @@ -6,7 +6,6 @@ import XMonad.Actions.Submap import XMonad.Actions.SwapWorkspaces import XMonad.Hooks.DynamicLog import XMonad.Hooks.EwmhDesktops -import XMonad.Hooks.FadeWindows import XMonad.Hooks.InsertPosition import XMonad.Hooks.ManageDocks import XMonad.Hooks.ManageHelpers @@ -48,32 +47,7 @@ main = , terminal = myTerm , workspaces = myWorkspaces - , logHook = - let - fadeHook = - composeOne - [ -- easier to paint over stuff - isFloating - <&&> isFocused - <&&> title ~? "Wplace" - -?> transparency 0.5 - - -- matches the second string of the WM_CLASS - , className `isOneOf` - [ "firefox" - , "Signal" - , "steam" - , "discord" - , "vlc" - ] - -?> opaque - - , isFloating -?> ifM isFocused (transparency 0.04) (transparency 0.08) - , isUnfocused -?> transparency 0.02 - ] - in - fadeWindowsLogHook fadeHook - <> refocusLastLogHook + , logHook = refocusLastLogHook , startupHook = do spawnOnce "fcitx5 &" -- Input method @@ -267,9 +241,6 @@ xmobarConfig = statusBarProp "xmobar -x 0" (pure myPrettyPrinter) isOneOf :: Eq a => Query a -> [a] -> Query Bool isOneOf q = fmap or . traverse (q =?) -isFocused :: Query Bool -isFocused = fmap not isUnfocused - isFirefoxPIP :: Query Bool isFirefoxPIP = className =? "firefox"