From ccbff942e8abbf843137d905001dfe545c80aef3 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 24 Aug 2017 12:07:47 -0700 Subject: [PATCH] [XMonad] Reindent windowAct --- dotfiles/xmonad/xmonad.hs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/dotfiles/xmonad/xmonad.hs b/dotfiles/xmonad/xmonad.hs index 3884db4e..12a1ae3f 100644 --- a/dotfiles/xmonad/xmonad.hs +++ b/dotfiles/xmonad/xmonad.hs @@ -433,16 +433,13 @@ chromeTabAction doSplit action selected = -- This needs access to X in order to unminimize, which means that it can't be -- done with the existing window bringer interface -myWindowAct c@WindowBringerConfig { menuCommand = cmd - , menuArgs = args - } action = - do - visible <- visibleWindows - ws <- windowMap' c { windowFilter = not . flip elem visible } +myWindowAct c@WindowBringerConfig {menuCommand = cmd, menuArgs = args} action = do + visible <- visibleWindows + ws <- windowMap' c {windowFilter = not . flip elem visible} -- chromeTabs <- liftIO getChromeTabInfo - let options = M.union (M.map Left ws) (M.map Right M.empty) - selection <- DM.menuMapArgs cmd args options - whenJust selection action + let options = M.union (M.map Left ws) (M.map Right M.empty) + selection <- DM.menuMapArgs cmd args options + whenJust selection action doBringWindow window = maximizeWindow window >> windows (W.focusWindow window . bringWindow window)