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 =
|
, logHook =
|
||||||
let
|
let
|
||||||
fadeHook =
|
fadeHook =
|
||||||
composeAll
|
composeOne
|
||||||
[ opaque
|
[ className ~? "steam" -?> opaque
|
||||||
|
|
||||||
, className ~? "steam" --> opaque
|
, isFirefoxFullscreen
|
||||||
|
<||> isFirefoxPIP
|
||||||
|
<||> isFirefoxVideo -?> opaque
|
||||||
|
|
||||||
-- Based on state
|
, isUnfocused -?> transparency 0.08
|
||||||
, isUnfocused --> transparency 0.08
|
, isFloating -?> transparency 0.08
|
||||||
, isFloating --> transparency 0.08
|
|
||||||
|
|
||||||
, isFirefoxFullscreen --> opaque
|
|
||||||
, isFirefoxPIP --> opaque
|
|
||||||
, isFirefoxVideo --> opaque
|
|
||||||
]
|
]
|
||||||
in
|
in
|
||||||
fadeWindowsLogHook fadeHook
|
fadeWindowsLogHook fadeHook
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue