Add datetime block

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-04-25 19:09:53 +02:00
parent 6f3e1583d0
commit 6c19ecd442
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

7
.config/i3blocks/datetime Executable file
View file

@ -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}"