Add chrony timediff to time info

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-12-03 11:02:09 +01:00
parent 49a3d38aa5
commit 647e190761
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,5 +1,6 @@
#!/bin/bash
printf '\uf5ec '
DIFF=$(${HOME}/bin/tmux-chrony-timediff)
[ -n "${DIFF}" ] && DIFF="(${DIFF})"
date "+%Y-%m-%d %H:%M:%S"
printf '\uf5ec %s %s' "$(date "+%Y-%m-%d %H:%M:%S")" "${DIFF}"