cfg/.config/i3blocks/time
Knut Ahlers 647e190761
Add chrony timediff to time info
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-12-03 11:02:09 +01:00

7 lines
155 B
Bash
Executable File

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