mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
vanadium/xmonad: handle zen and launch it instead of firefox
This commit is contained in:
parent
bc2a414ef5
commit
4c4ed165b3
1 changed files with 9 additions and 5 deletions
|
|
@ -95,7 +95,7 @@ isEvolutionComposer =
|
|||
]
|
||||
|
||||
isFirefox :: Query Bool
|
||||
isFirefox = className =? "firefox"
|
||||
isFirefox = className =? "firefox" <||> className ^? "zen"
|
||||
|
||||
isSpotify :: Query Bool
|
||||
isSpotify = isFirefox <&&> title ~? "Spotify"
|
||||
|
|
@ -112,9 +112,11 @@ isSignal = className =? "Signal"
|
|||
isElement :: Query Bool
|
||||
isElement = isFirefox <&&> title ~? "Element"
|
||||
|
||||
-- This changes depending on the locale of the browser :/
|
||||
isFirefoxPip :: Query Bool
|
||||
isFirefoxPip = isFirefox <&&> title =? "Incrustation vidéo"
|
||||
isFirefoxPip =
|
||||
isFirefox
|
||||
-- This changes depending on the locale of the browser :/
|
||||
<&&> (title =? "Incrustation vidéo" <||> title =? "Picture-in-Picture")
|
||||
|
||||
isPavucontrol :: Query Bool
|
||||
isPavucontrol = className =? "pavucontrol"
|
||||
|
|
@ -223,7 +225,9 @@ myStartupHook = do
|
|||
-- - setting `home.sessionVariable` (home-manager) would only effect shells, probably due to the order of launched processes blah blah
|
||||
-- - setting `environment.sessionVariables` (NixOS) would make my set up less portable
|
||||
putEnv "GLFW_IM_MODULE=ibus" -- Make sure kitty knows how to talk to fcitx
|
||||
putEnv "MOZ_USE_XINPUT2=1" -- Force touchpad for firefox
|
||||
|
||||
-- TODO: doesn't work for firefox nor for zen since 145.0
|
||||
-- putEnv "MOZ_USE_XINPUT2=1" -- Force touchpad for firefox
|
||||
|
||||
removedKeybinds :: [(KeyMask, KeySym)]
|
||||
removedKeybinds =
|
||||
|
|
@ -309,7 +313,7 @@ keybinds =
|
|||
)
|
||||
|
||||
-- Launcher
|
||||
++ (let launchFirefox = "if type firefox; then firefox; else firefox-esr; fi"
|
||||
++ (let launchFirefox = "zen"
|
||||
launchDmenu = "dmenu_run -i -fn \"Iosevka-14\" -nb \"#36363a\" -nf \"#e2e2e4\" -sb \"#f7f7f8\" -sf \"#36363a\" -l 10"
|
||||
lock = "xscreensaver-command -lock"
|
||||
in [ ((controlMask .|. altMask, xK_m), namedScratchpadAction myScratchpads "cmus" )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue