[XMonad] Spawn when executing chrome tab commands

This commit is contained in:
2017-05-19 00:51:35 -07:00
parent 4df646f438
commit 4acdbb2b36

View File

@@ -374,10 +374,10 @@ chromeTabAction doSplit action selected =
Right ChromeInfo { tabId = tid } ->
liftIO $ do
let command = if doSplit then
"split_tab_by_id.sh"
"split_tab_by_id.sh %s"
else
"focus_tab_by_id.sh"
_ <- io $ runProcessWithInput command [show tid] ""
"focus_tab_by_id.sh %s"
spawn $ printf command $ show tid
return ()
-- This needs access to X in order to unminimize, which means that it can't be