diff options
Diffstat (limited to 'i3blocks/i3date.sh')
-rwxr-xr-x | i3blocks/i3date.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/i3blocks/i3date.sh b/i3blocks/i3date.sh new file mode 100755 index 0000000..c393327 --- /dev/null +++ b/i3blocks/i3date.sh @@ -0,0 +1,4 @@ +#!/bin/sh +dayofyear=$(date +%j) +perc=$(echo "scale=1; ($dayofyear*100)/365" | bc) +echo $(date +"%A, %y/%m/%d ($perc%) - %T") |