diff --git a/.config/i3blocks/datetime b/.config/i3blocks/datetime new file mode 100755 index 0000000..d602d8d --- /dev/null +++ b/.config/i3blocks/datetime @@ -0,0 +1,7 @@ +#!/bin/bash +#set -euo pipefail + +DIFF=$(${HOME}/bin/tmux-timediff) +[ -n "${DIFF}" ] && DIFF="(${DIFF})" || true + +printf '\uf017 %s %s' "$(date "+%a %Y-%m-%d %H:%M:%S")" "${DIFF}"