mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
vanadium/xmonad: refactor fadeHook
This commit is contained in:
parent
e50d267ed3
commit
72cceb30b9
1 changed files with 7 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue