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 [ lib.makeBinPath [
ghc ghc
pkgs.libnotify pkgs.libnotify
pkgs.hrt-time
] ]
}" }"
''; '';

View file

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