|
|
|
@ -53,6 +53,16 @@ workspaceManageHook = composeAll [ |
|
|
|
|
,className =? "Clementine" --> doShift "8:media" |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
xmobarAction :: String -- action |
|
|
|
|
-> String -- output string |
|
|
|
|
-> String |
|
|
|
|
xmobarAction action = wrap t "</action>" |
|
|
|
|
where t = concat ["<action=`", action, "`>"] |
|
|
|
|
|
|
|
|
|
xmobarSwitchWs :: String -> String |
|
|
|
|
xmobarSwitchWs wsName = xmobarAction action wsName |
|
|
|
|
where action = concat ["xdotool key ISO_Level3_Shift+F", workspace] |
|
|
|
|
workspace = takeWhile (/=':') wsName -- Takes all chars until ':' |
|
|
|
|
|
|
|
|
|
main = do |
|
|
|
|
xmobar_proc <- spawnPipe "xmobar" |
|
|
|
@ -61,7 +71,8 @@ main = do |
|
|
|
|
{ manageHook = (scratchpadManageHook $ W.RationalRect 0.0 0.0 1.0 0.5) <+> workspaceManageHook <+> fullscreenManageHook <+> manageDocks |
|
|
|
|
, logHook = dynamicLogWithPP xmobarPP |
|
|
|
|
{ ppOutput = hPutStrLn xmobar_proc |
|
|
|
|
, ppTitle = xmobarColor "green" "" . shorten 50 |
|
|
|
|
, ppHidden = xmobarSwitchWs |
|
|
|
|
, ppTitle = xmobarColor "green" "" . shorten 80 |
|
|
|
|
, ppSort = fmap(.scratchpadFilterOutWorkspace) (ppSort xmobarPP) |
|
|
|
|
, ppOrder = \(ws:_:t:_) -> [ ws, t] |
|
|
|
|
} |
|
|
|
|