From 647e190761b92395b6a7d15df68720fdab4b7025 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 3 Dec 2018 11:02:09 +0100 Subject: [PATCH] Add chrony timediff to time info Signed-off-by: Knut Ahlers --- .config/i3blocks/time | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/i3blocks/time b/.config/i3blocks/time index d1692c5..c2b7608 100755 --- a/.config/i3blocks/time +++ b/.config/i3blocks/time @@ -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}"