cfg/.config/i3blocks/time
Knut Ahlers 4ae353dc51
Bring more color to the i3bar
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-12-03 15:22:12 +01:00

8 lines
173 B
Bash
Executable File

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