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"

View file

@ -34,20 +34,6 @@
"class_g = 'fcitx'"
"class_i = 'fcitx'"
];
blur = {
method = "dual_kawase";
strength = 5;
};
wintypes = {
dropdown_menu = {
opacity = 1;
blur-background = false;
};
popup_menu = {
opacity = 1;
blur-background = false;
};
};
};
};