cfg/.config/i3blocks/datetime
Knut Ahlers 6c19ecd442
Add datetime block
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-04-25 19:09:53 +02:00

7 lines
178 B
Bash
Executable file

#!/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}"