From 98c5d04bb264cc903b935897b2188d8f2be4c7a1 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Wed, 12 Dec 2018 14:45:10 +0100 Subject: i3blocks modules. --- i3blocks/i3date.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 i3blocks/i3date.sh (limited to 'i3blocks/i3date.sh') 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") -- cgit v1.2.1