Update manageHook

master
Hektor Misplon 2023-06-04 14:48:23 +02:00
parent 9fcd70f47a
commit 9da2a4c443
1 changed files with 13 additions and 5 deletions

View File

@ -80,18 +80,26 @@ myStartupHook =
-- Hooks {{{ -- Hooks {{{
-- manageHook -- manageHook
myManageHook :: ManageHook
myManageHook = myManageHook =
composeAll composeAll
[ className =? "Zathura" --> doShift "pdf", [ isDialog --> doCenterFloat,
className =? "firefox" --> shiftAndView "www", className =? "Zathura" --> doShift "1_info",
className =? "Anki" --> shiftAndView "etc", className =? "firefox" --> shiftAndView "1_www",
className =? "Obsidian" --> shiftAndView "etc", className =? "firefoxdeveloperedition" --> shiftAndView "1_www",
className =? "Anki" --> shiftAndView "1_etc",
className =? "Obsidian" --> shiftAndView "1_etc",
className =? "Launcher" --> doRectFloat (W.RationalRect 0.05 0.4 0.9 0.5), className =? "Launcher" --> doRectFloat (W.RationalRect 0.05 0.4 0.9 0.5),
className =? "Zettelkasten" --> doRectFloat (W.RationalRect 0.05 0.4 0.9 0.5),
className =? "Calculator" --> doCenterFloat, className =? "Calculator" --> doCenterFloat,
className =? "feh" --> doCenterFloat, className =? "feh" --> doCenterFloat,
-- Center matplotlib and prevent focus stealing
-- className =? "matplotlib" --> doRectFloat (W.RationalRect 0.5 0.5 0.5 0.5),
className =? "matplotlib" --> doCenterFloat,
className =? "Matplotlib" --> doCenterFloat, className =? "Matplotlib" --> doCenterFloat,
className =? "Xournalpp" --> doRectFloat (W.RationalRect 0.5 0.5 0.5 0.5), className =? "Xournalpp" --> doRectFloat (W.RationalRect 0.5 0.5 0.5 0.5),
className =? "KeePassXC" --> doRectFloat (W.RationalRect 0.1 0.1 0.8 0.8) className =? "KeePassXC" --> doRectFloat (W.RationalRect 0.1 0.1 0.8 0.8),
className =? "flameshot" --> doRectFloat (W.RationalRect 0.1 0.1 0.8 0.8)
] ]
-- layoutHook -- layoutHook