module Hooks where import XMonad import XMonad.Layout.Spacing import XMonad.Layout.WindowNavigation as WN import XMonad.Layout.Maximize import XMonad.Layout.BinarySpacePartition as BSP import XMonad.Layout.Grid import XMonad.Layout.Tabbed import XMonad.Layout.NoBorders import XMonad.Hooks.SetWMName import XMonad.Hooks.ManageDocks import XMonad.Hooks.ManageHelpers 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 ) , isFullscreen --> doFullFloat ] myLayoutHook = avoidStruts $ maximize $ windowNavigation $ smartBorders $ myGap $ emptyBSP ||| tabbed shrinkText myTabTheme ||| Grid myStartupHook = do spawnOnce "xmodmap /home/zt/.Xmodmap" spawnOnce "picom" spawnOnce "blueman-applet" spawnOnce "dunst" spawnOnce "polystart" spawnOnce "nitrogen --restore" -- spawnOnce "cbatticon" spawnOnce "udiskie" setWMName "Anime Thighs" -- setWMName "LG3D" setDefaultCursor xC_left_ptr