mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
vanadium/xmobar: factor out color specification
This commit is contained in:
parent
628a3ec647
commit
570e0124f0
1 changed files with 17 additions and 14 deletions
|
|
@ -62,20 +62,23 @@ config =
|
||||||
(15 &minute)
|
(15 &minute)
|
||||||
]
|
]
|
||||||
, template =
|
, template =
|
||||||
" %XMonadLog% "
|
let
|
||||||
<> alignSep config
|
greyFg x = "<fc=#c9c9c9>" <> x <> "</fc>"
|
||||||
<> intercalate "|"
|
in
|
||||||
[ unwords
|
" %XMonadLog% "
|
||||||
[ "<fc=#c9c9c9>[AUA: %arubaClock%]</fc>"
|
<> alignSep config
|
||||||
, "<fc=#c9c9c9>[DUB: %dublinClock%]</fc>"
|
<> intercalate "|"
|
||||||
, "<fc=#c9c9c9>[CDG: %cetClock%]</fc>"
|
[ (unwords . map greyFg)
|
||||||
, "<fc=#c9c9c9>[TPE: %tstClock%]</fc>"
|
[ "[AUA: %arubaClock%]"
|
||||||
]
|
, "[DUB: %dublinClock%]"
|
||||||
<> " "
|
, "[CDG: %cetClock%]"
|
||||||
, " %RCSS% "
|
, "[TPE: %tstClock%]"
|
||||||
, " %battery%, %powerprofilesctl%) "
|
]
|
||||||
, " %hereClock% (%tomorrow%) "
|
<> " "
|
||||||
]
|
, " %RCSS% "
|
||||||
|
, " %battery%, %powerprofilesctl%) "
|
||||||
|
, " %hereClock% (%tomorrow%) "
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
second :: Int -> Int
|
second :: Int -> Int
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue