cfg/.config/i3blocks/time
Knut Ahlers 816fdf2f1a
Fix: Output needs a newline
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-09-11 19:54:25 +02:00

7 lines
171 B
Bash
Executable file

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