aboutsummaryrefslogtreecommitdiff
path: root/i3blocks/i3date.sh
diff options
context:
space:
mode:
Diffstat (limited to 'i3blocks/i3date.sh')
-rwxr-xr-xi3blocks/i3date.sh4
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")