summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vogt <vogt.adam@gmail.com>2010-03-30 02:33:10 +0200
committerAdam Vogt <vogt.adam@gmail.com>2010-03-30 02:33:10 +0200
commit2bb3db53c6d386a30b5efd2070813b826b6d7402 (patch)
tree572e4dfd3a37d7e428cb0109c8edf67b243d4cf6
parent66b9828e568e3e6ef85e1f0b119caf26c5ac0950 (diff)
downloadmetatile-2bb3db53c6d386a30b5efd2070813b826b6d7402.tar
metatile-2bb3db53c6d386a30b5efd2070813b826b6d7402.zip
Warn with xmessage when xmonad cannot be found for recompile (issue 126)
Ignore-this: f77e1ba4fdb2c15635be379d6e5f58e9 darcs-hash:20100330003310-1499c-c2b0bdd897e6f87630b4c025544745acd157fcd3
-rw-r--r--XMonad/Config.hs2
1 files changed, 1 insertions, 1 deletions
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