forked from colonelpanic/dotfiles
[XMonad] Use docks function instead of manually adding dock hooks
This fixes the issue where docks were not handled on xmonad restart.
This commit is contained in:
parent
2c91bd4342
commit
18ae198b6d
@ -57,17 +57,16 @@ myGetWorkspaceNameFromTag getWSName tag =
|
|||||||
printf "%s: %s " tag (fromMaybe "(Empty)" (getWSName tag))
|
printf "%s: %s " tag (fromMaybe "(Empty)" (getWSName tag))
|
||||||
|
|
||||||
main =
|
main =
|
||||||
xmonad $ def
|
xmonad . docks $ def
|
||||||
{ modMask = mod4Mask
|
{ modMask = mod4Mask
|
||||||
, terminal = "urxvt"
|
, terminal = "urxvt"
|
||||||
, manageHook = manageDocks <+> myManageHook <+> manageHook def
|
, manageHook = myManageHook <+> manageHook def
|
||||||
, layoutHook = myLayoutHook
|
, layoutHook = myLayoutHook
|
||||||
, logHook =
|
, logHook =
|
||||||
toggleFadeInactiveLogHook 0.9 +++
|
toggleFadeInactiveLogHook 0.9 +++
|
||||||
ewmhWorkspaceNamesLogHook' myGetWorkspaceNameFromTag +++
|
ewmhWorkspaceNamesLogHook' myGetWorkspaceNameFromTag +++
|
||||||
(myGetWorkspaceNameFromTag <$> getWorkspaceNames' >>= pagerHintsLogHookCustom)
|
(myGetWorkspaceNameFromTag <$> getWorkspaceNames' >>= pagerHintsLogHookCustom)
|
||||||
, handleEventHook =
|
, handleEventHook = fullscreenEventHook +++
|
||||||
docksEventHook <+> fullscreenEventHook +++
|
|
||||||
ewmhDesktopsEventHook +++ pagerHintsEventHook +++
|
ewmhDesktopsEventHook +++ pagerHintsEventHook +++
|
||||||
followIfNoMagicFocus +++ minimizeEventHook
|
followIfNoMagicFocus +++ minimizeEventHook
|
||||||
, startupHook = myStartup +++ ewmhWorkspaceNamesLogHook
|
, startupHook = myStartup +++ ewmhWorkspaceNamesLogHook
|
||||||
|
Loading…
Reference in New Issue
Block a user