diff options
author | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-05-20 21:45:12 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-05-20 21:45:12 +0530 |
commit | b0ad81e7ba9407cc49b245f4f32d94495f86421c (patch) | |
tree | dc1e52b10a2e731d00dc0087b08c64a571f32aa6 /.config/XMonad/lib/Hooks.hs | |
parent | 4c82a12dd261a9f09e7bddbf2d6e1f92f3246472 (diff) |
Modularised my XMonad Config
Diffstat (limited to '.config/XMonad/lib/Hooks.hs')
-rw-r--r-- | .config/XMonad/lib/Hooks.hs | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.config/XMonad/lib/Hooks.hs b/.config/XMonad/lib/Hooks.hs new file mode 100644 index 0000000..858737d --- /dev/null +++ b/.config/XMonad/lib/Hooks.hs @@ -0,0 +1,42 @@ +module Hooks where + +import XMonad + +import XMonad.Layout.Spacing +import XMonad.Layout.WindowNavigation as WN +import XMonad.Layout.Maximize +import XMonad.Layout.NoBorders + +import XMonad.Layout.BinarySpacePartition as BSP +import XMonad.Layout.Grid +import XMonad.Layout.Tabbed + +import XMonad.Hooks.SetWMName +import XMonad.Hooks.ManageDocks + +import XMonad.Util.SpawnOnce +import XMonad.Util.Cursor +import XMonad.Util.NamedScratchpad + +import Defaults +import Scratchpads + +myManageHook = namedScratchpadManageHook myScratchpads + <+> manageDocks <+> composeAll [ + className =? "discord" --> doShift ( myWorkspaces !! 9 ) + , className =? "vlc" --> doShift ( myWorkspaces !! 6 ) + ] + +myLayoutHook = avoidStruts $ maximize $ windowNavigation $ smartBorders $ myGap $ ( + emptyBSP ||| tabbed shrinkText myTabTheme ||| Grid + ) + +myStartupHook = do + spawnOnce "xmodmap /home/zt/.Xmodmap" + spawnOnce "picom" + spawnOnce "dunst" + spawnOnce "polystart" + spawnOnce "nitrogen --restore" + spawnOnce "cbatticon" + setWMName "LG3D" + setDefaultCursor xC_left_ptr |