vanadium/{xmonad,picom}: update opacity rules

This commit is contained in:
Primrose 2025-08-26 21:10:02 +08:00
parent 422cbc1687
commit 4ee44c51cd
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 8 additions and 30 deletions

View file

@ -51,13 +51,16 @@ main =
let
fadeHook =
composeOne
[ className ~? "steam" -?> opaque
[ className ~? "steam" -?> opaque
, isFirefoxFullscreen
<||> isFirefoxPIP
<||> isFirefoxVideo -?> opaque
-- easier to paint over stuff
, isFloating
<&&> fmap not isUnfocused
<&&> title ~? "Wplace" -?> transparency 0.5
, isUnfocused -?> transparency 0.08
, className =? "firefox" -?> opaque
, isUnfocused -?> transparency 0.02
, isFloating -?> transparency 0.08
]
in
@ -260,17 +263,6 @@ isFirefoxPIP =
className =? "firefox"
<&&> title =? "Picture-in-Picture"
isFirefoxFullscreen :: Query Bool
isFirefoxFullscreen =
className =? "firefox"
<&&> isFullscreen
-- Firefox having multimedia content
isFirefoxVideo :: Query Bool
isFirefoxVideo =
className =? "firefox"
<&&> title ~? "YouTube"
myScratchpads :: [NamedScratchpad]
myScratchpads =
[ NS "cmus"