summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vogt <vogt.adam@gmail.com>2011-11-17 05:25:22 +0100
committerAdam Vogt <vogt.adam@gmail.com>2011-11-17 05:25:22 +0100
commitcbf8ec73ef9f364a1703114bdde0f06f4eff4af5 (patch)
treea12d6a14faaedee550bac5a397edcc07f755f27e
parent2bb3db53c6d386a30b5efd2070813b826b6d7402 (diff)
downloadmetatile-cbf8ec73ef9f364a1703114bdde0f06f4eff4af5.tar
metatile-cbf8ec73ef9f364a1703114bdde0f06f4eff4af5.zip
Correct recompile keybinding (issue 126)
Ignore-this: e27d6d60a16788192c0bb0399a597fb3 Thanks reenberg for pointing out the previous patch incorrectly warns about a missing xmonad when the config has an error. Also changed is "type" which as a shell builtin is more likely to exist than "which". darcs-hash:20111117042522-1499c-f0c882660e4e8ea02c601331e431a97b2585a2d1
-rw-r--r--XMonad/Config.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/XMonad/Config.hs b/XMonad/Config.hs
index c089910..7e64a75 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 "which xmonad && { xmonad --recompile && xmonad --restart;} || xmessage xmonad not in \\$PATH: \"$PATH\"") -- %! Restart xmonad
+ , ((modMask , xK_q ), spawn "if type xmonad; then xmonad --recompile && xmonad --restart; else xmessage xmonad not in \\$PATH: \"$PATH\"; fi") -- %! Restart xmonad
]
++
-- mod-[1..9] %! Switch to workspace N