summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2016-01-18 03:28:51 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2016-01-18 03:28:51 +0100
commit1de8cd4e7c9b7979b3da73dcbe06a0eb299edce9 (patch)
tree6e224a88aaf4a75a0196f8c134b20d2d316972a9
parentfa1e28a374dc87f16afd2f1f19051a1e5eba7b37 (diff)
downloadxmonad-config-1de8cd4e7c9b7979b3da73dcbe06a0eb299edce9.tar.gz
xmonad-config-1de8cd4e7c9b7979b3da73dcbe06a0eb299edce9.tar.xz
xmonad-config-1de8cd4e7c9b7979b3da73dcbe06a0eb299edce9.zip
Use in-dir helper to exec some application in a special dir
With this helper the application is exec'd after change the directory. This has the advantage, that spanHere works, because the PID of the window will be the PID of the started process.
-rw-r--r--xmonad.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmonad.hs b/xmonad.hs
index 8324c7e..d23e6c0 100644
--- a/xmonad.hs
+++ b/xmonad.hs
@@ -169,7 +169,7 @@ topicsConfig = TopicConfig
where
spawnShell = currentTopicDir topicsConfig >>= spawnShellIn
spawnShellIn dir =
- spawnHere $ "cd " ++ dir ++ " && " ++ term
+ spawnHere $ "in-dir " ++ dir ++ " " ++ term
topicsGrid =
withWindowSet $ \w -> do