aboutsummaryrefslogtreecommitdiffstats
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
commit1d015a3b1b1263c83d1f13fba2ac59d03d2c4fcd (patch)
tree572e4dfd3a37d7e428cb0109c8edf67b243d4cf6
parent332ff48dae295d66f1d9abfc03e42c9f51bb58fa (diff)
downloadxmonad-1d015a3b1b1263c83d1f13fba2ac59d03d2c4fcd.tar.gz
xmonad-1d015a3b1b1263c83d1f13fba2ac59d03d2c4fcd.tar.xz
xmonad-1d015a3b1b1263c83d1f13fba2ac59d03d2c4fcd.zip
Warn with xmessage when xmonad cannot be found for recompile (issue 126)
Ignore-this: f77e1ba4fdb2c15635be379d6e5f58e9 darcs-hash:20100330003310-1499c-c2b0bdd897e6f87630b4c025544745acd157fcd3.gz
-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