cfg/.config/i3blocks/time
Knut Ahlers e5aaaaa8b9
Print day of week in time block
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-12-06 11:51:38 +01:00

7 lines
176 B
Bash
Executable file

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