Warn with xmessage when xmonad cannot be found for recompile (issue 126)

This commit is contained in:
Adam Vogt
2010-03-30 00:33:10 +00:00
parent 87c50a911f
commit 792add376e

View File

@@ -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 "xmonad --recompile && xmonad --restart") -- %! Restart xmonad
, ((modMask , xK_q ), spawn "which xmonad && { xmonad --recompile && xmonad --restart;} || xmessage xmonad not in \\$PATH: \"$PATH\"") -- %! Restart xmonad
]
++
-- mod-[1..9] %! Switch to workspace N