diff options
author | Adam Vogt <vogt.adam@gmail.com> | 2011-11-17 05:25:22 +0100 |
---|---|---|
committer | Adam Vogt <vogt.adam@gmail.com> | 2011-11-17 05:25:22 +0100 |
commit | 64d5e36232b03d23b6a2315e55fb7a0752ac35a3 (patch) | |
tree | a12d6a14faaedee550bac5a397edcc07f755f27e /XMonad | |
parent | 1d015a3b1b1263c83d1f13fba2ac59d03d2c4fcd (diff) | |
download | xmonad-64d5e36232b03d23b6a2315e55fb7a0752ac35a3.tar.gz xmonad-64d5e36232b03d23b6a2315e55fb7a0752ac35a3.tar.xz xmonad-64d5e36232b03d23b6a2315e55fb7a0752ac35a3.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.gz
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 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 |