cfg/.config/i3blocks/datetime

8 lines
180 B
Text
Raw Normal View History

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