diff --git a/xmonad.hs b/xmonad.hs index d2f9234..c718a59 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -144,7 +144,7 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $ , ((modm, xK_x ), spawn "wlogout") -- Restart xmonad - , ((modm , xK_q ), spawn "xmonad --recompile; xmonad --restart") + , ((modm , xK_q ), spawn "killall xmobar; xmonad --recompile; xmonad --restart") -- Run xmessage with a summary of the default keybindings (useful for beginners) , ((modm .|. shiftMask, xK_slash ), spawn ("echo \"" ++ help ++ "\" | xmessage -file -")) @@ -240,7 +240,7 @@ myManageHook = composeAll -- return (All True) if the default handler is to be run afterwards. To -- combine event hooks use mappend or mconcat from Data.Monoid. -- -myEventHook = mempty +myEventHook = fullscreenEventHook ------------------------------------------------------------------------ -- Status bars and logging @@ -261,6 +261,7 @@ myLogHook = return () myStartupHook = do spawnOnce "nitrogen --restore &" spawnOnce "picom &" + spawnOnce "trayer --edge bottom --align left --widthtype request --heighttype request --SetDockType true --transparent true --alpha 255 --SetPartialStrut false --expand true &" ------------------------------------------------------------------------ -- Command to launch the bar. @@ -278,11 +279,7 @@ toggleStrutsKey XConfig {XMonad.modMask = modMask} = (modMask, xK_b) -- Run xmonad with the settings you specify. No need to modify this. -- main = do - xmonad =<< statusBar myBar myPP toggleStrutsKey defaults - xmonad $ defaultConfig - { handleEventHook = fullscreenEventHook - } - + xmonad =<< statusBar myBar myPP toggleStrutsKey $ defaults { handleEventHook = handleEventHook def <+> fullscreenEventHook } -- A structure containing your configuration settings, overriding -- fields in the default config. Any you don't override, will