From 2bb3db53c6d386a30b5efd2070813b826b6d7402 Mon Sep 17 00:00:00 2001 From: Adam Vogt Date: Tue, 30 Mar 2010 02:33:10 +0200 Subject: Warn with xmessage when xmonad cannot be found for recompile (issue 126) Ignore-this: f77e1ba4fdb2c15635be379d6e5f58e9 darcs-hash:20100330003310-1499c-c2b0bdd897e6f87630b4c025544745acd157fcd3 --- XMonad/Config.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'XMonad') diff --git a/XMonad/Config.hs b/XMonad/Config.hs index 34580e0..c089910 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 "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 -- cgit v1.2.3