xmobar: reduce clutter

Move the date and time to the right hand side.

Move most of the system metrics to the right hand side.
This commit is contained in:
Dave Gallant
2020-09-07 12:38:47 -04:00
parent 2c66618b1d
commit a4420142f5
2 changed files with 6 additions and 15 deletions

View File

@@ -4,14 +4,14 @@ Config {
font = "xft:Fira Code:size=10:bold:antialias=true"
, bgColor = "black"
, fgColor = "#CCC"
, position = Top
, position = TopP 0 80
, border = BottomB
, borderColor = "#646464"
-- layout
, sepChar = "%" -- delineator between plugin names and straight text
, alignSep = "}{" -- separator between left-right alignment
, template = "%UnsafeStdinReader% | %date% | %battery% | %multicpu% | %memory% | %dynnetwork% "
, template = "%UnsafeStdinReader% }{ %multicpu% | %memory% | %dynnetwork% | %battery% | %date%"
-- general behavior
, lowerOnStart = True -- send to bottom of window stack on start

View File

@@ -65,17 +65,7 @@ myModMask = mod4Mask
--
-- > workspaces = ["web", "irc", "code" ] ++ map show [4..9]
--
xmobarEscape = concatMap doubleLts
where doubleLts '<' = "<<"
doubleLts x = [x]
myWorkspaces :: [String]
myWorkspaces = clickable . map xmobarEscape $ ["1","2","3","4","5","6","7","8","9"]
where
clickable l = [ "<action=xdotool key alt+" ++ show n ++ ">" ++ ws ++ "</action>" |
(i,ws) <- zip [1..9] l,
let n = i ]
myWorkspaces = ["1","2","3","4","5","6","7","8","9"]
-- Border colors for unfocused and focused windows, respectively.
--
@@ -288,10 +278,11 @@ myEventHook = docksEventHook <+> handleEventHook def <+> fullscreenEventHook
myLogHook h = dynamicLogWithPP $ xmobarPP
{ ppOutput = hPutStrLn h
, ppCurrent = xmobarColor "yellow" "" . wrap "[" "]"
, ppHiddenNoWindows = xmobarColor "grey" ""
, ppTitle = xmobarColor "green" "" . shorten 40
, ppTitle = xmobarColor "grey" "" . shorten 80
, ppVisible = wrap "(" ")"
, ppUrgent = xmobarColor "red" "yellow"
, ppWsSep = " "
, ppOrder = \(ws:l:t:_) -> [ws,t]
}
------------------------------------------------------------------------