mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
vanadium/xmonad: remove fade
This commit is contained in:
parent
70a9c78bfc
commit
5ee9d8b245
1 changed files with 1 additions and 30 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue