diff options
author | Adam Vogt <vogt.adam@gmail.com> | 2010-03-30 02:33:10 +0200 |
---|---|---|
committer | Adam Vogt <vogt.adam@gmail.com> | 2010-03-30 02:33:10 +0200 |
commit | 2bb3db53c6d386a30b5efd2070813b826b6d7402 (patch) | |
tree | 572e4dfd3a37d7e428cb0109c8edf67b243d4cf6 /XMonad | |
parent | 66b9828e568e3e6ef85e1f0b119caf26c5ac0950 (diff) | |
download | metatile-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
Diffstat (limited to 'XMonad')
-rw-r--r-- | XMonad/Config.hs | 2 |
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 |