From 4acdbb2b36332a5c62303d45d9308fb18f31c16a Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 19 May 2017 00:51:35 -0700 Subject: [PATCH] [XMonad] Spawn when executing chrome tab commands --- dotfiles/xmonad/xmonad.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotfiles/xmonad/xmonad.hs b/dotfiles/xmonad/xmonad.hs index 77f89e34..28955e2c 100644 --- a/dotfiles/xmonad/xmonad.hs +++ b/dotfiles/xmonad/xmonad.hs @@ -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