summaryrefslogtreecommitdiffstats
path: root/XMonad/Config.hs
diff options
context:
space:
mode:
Diffstat (limited to 'XMonad/Config.hs')
-rw-r--r--XMonad/Config.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/XMonad/Config.hs b/XMonad/Config.hs
index c089910..7e64a75 100644
--- a/XMonad/Config.hs
+++ b/XMonad/Config.hs
@@ -202,7 +202,7 @@ keys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
-- quit, or restart
, ((modMask .|. shiftMask, xK_q ), io (exitWith ExitSuccess)) -- %! Quit xmonad
- , ((modMask , xK_q ), spawn "which xmonad && { xmonad --recompile && xmonad --restart;} || xmessage xmonad not in \\$PATH: \"$PATH\"") -- %! Restart xmonad
+ , ((modMask , xK_q ), spawn "if type xmonad; then xmonad --recompile && xmonad --restart; else xmessage xmonad not in \\$PATH: \"$PATH\"; fi") -- %! Restart xmonad
]
++
-- mod-[1..9] %! Switch to workspace N