Add datetime block
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
6f3e1583d0
commit
6c19ecd442
1 changed files with 7 additions and 0 deletions
7
.config/i3blocks/datetime
Executable file
7
.config/i3blocks/datetime
Executable 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}"
|
Loading…
Reference in a new issue