X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=xmonad.hs;h=c59bc53dce2e26d0220e6e39aecebd637541431f;hb=de6ac09ffa6988d0b59d6d10c52eccfbe40bb0e1;hp=1a0b498bda873dcac90c8cc150ca74fb93110ca7;hpb=789e98de910dfc5c24d46a056c957c9fb8ef55c2;p=config%2Fdotfiles.git diff --git a/xmonad.hs b/xmonad.hs index 1a0b498..c59bc53 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -16,6 +16,10 @@ import XMonad.Layout.NoBorders import XMonad.Hooks.ManageHelpers -- Necessary for `additionalKeys`. import XMonad.Util.EZConfig +-- Necessary for setWMName. +import XMonad.Hooks.SetWMName +-- Necessary for toggleWS. +import XMonad.Actions.CycleWS -- Prevent new windows from spawning in the master pane. Taken from @@ -70,7 +74,7 @@ myManageHook = composeOne -- Wine on "4". , className =? "Wine" -?> doF (W.shift "4") - -- Don't span new windows in the master pane. + -- Don't spawn new windows in the master pane. , return True -?> doF avoidMaster -- Prevent windows which get moved to other workspaces from removing the -- focus of the currently selected window. Thanks to vav in #xmonad on @@ -82,6 +86,9 @@ myKeys = [ -- Switch to additional layout (vertical tiled) defined by -- toggleLayouts above. ((mod4Mask, xK_v), sendMessage ToggleLayout) + -- Switch to last active workspace, thanks to moljac024 in #xmonad on + -- Freenode (2010-12-18 14:45). + , ((mod4Mask, xK_f), toggleWS) ] ++ -- When using multiple screens, switching to another workspace causes @@ -99,18 +106,20 @@ myKeys = [ , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]] main = xmonad $ defaultConfig - -- Use Windows key as main key so it doesn't conflict with any other key + -- Use Windows key as main key as it doesn't conflict with any other key -- bindings. { modMask = mod4Mask -- Inactive borders are black - invisible on my black screen. , normalBorderColor = "#000000" - -- Active border is dark red. + -- Active borders are dark red. , focusedBorderColor = "#990000" -- Use my layout and manage hooks (see above). , layoutHook = myLayoutHook , manageHook = myManageHook -- Use unicode rxvt as my terminal. , terminal = "urxvt" + -- Necessary for Java so it recognizes XMonad as tiling window manager. + , startupHook = setWMName "LG3D" } `additionalKeys` myKeys