vanadium/xmobar: hrt-time

This commit is contained in:
Primrose 2025-11-22 21:46:40 +08:00
parent 8e7cfef3f2
commit 530977a139
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 5 additions and 12 deletions

View file

@ -18,6 +18,7 @@
lib.makeBinPath [
ghc
pkgs.libnotify
pkgs.hrt-time
]
}"
'';

View file

@ -61,10 +61,7 @@ config =
, textOffset = 2
, commands =
[ Run $ DateZone "%a %d %H:%M:%S" "" "" "hereClock" (1 &second)
, Run $ DateZone "%H:%M" "" "Europe/Dublin" "dublinClock" (10 &second)
, Run $ DateZone "%H:%M" "" "Europe/Paris" "parisClock" (10 &second)
, Run $ DateZone "%H:%M" "" "Asia/Taipei" "tstClock" (10 &second)
[ Run $ DateZone "%a %d %H:%M:%S" "" "" "hereClock" (1 &second)
, Run $
Com
"tomorrow"
@ -103,6 +100,7 @@ config =
]
(6 &second)
, Run $ Com "powerprofilesctl" ["get"] "" (6 &second)
, Run $ Com "hrt-time" ["days"] "" (60 &minute)
, Run XMonadLog
, Run $
Weather
@ -123,15 +121,9 @@ config =
" %XMonadLog% "
<> alignSep config
<> intercalate "|"
[ (unwords . map greyFg)
[ "[DUB: %dublinClock%]"
, "[CDG: %parisClock%]"
, "[TPE: %tstClock%]"
]
<> " "
, " %RCSS% "
[ " %RCSS% "
, " %battery%, %powerprofilesctl%) "
, " %hereClock% (%tomorrow%) "
, " %hereClock% (%tomorrow%, %hrt-time%) "
]
}