cfg/.config/i3blocks/time

8 lines
176 B
Text
Raw Normal View History

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