aboutsummaryrefslogtreecommitdiff
path: root/i3blocks
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2018-12-17 17:42:24 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2018-12-17 17:42:59 +0100
commit9735824c1bfa5e884ec4862d620a6298e9e240c7 (patch)
treed228abc61c801de70c3b2c309dc89ec31600143c /i3blocks
parent36d25c89b87dea7bfaf5ad7df2765dba59fb6e15 (diff)
downloadscripts-9735824c1bfa5e884ec4862d620a6298e9e240c7.tar.gz
scripts-9735824c1bfa5e884ec4862d620a6298e9e240c7.zip
Updated date i3blocks module and extracted months and years scripts.
Diffstat (limited to 'i3blocks')
-rwxr-xr-xi3blocks/i3date.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/i3blocks/i3date.sh b/i3blocks/i3date.sh
index c393327..2f18e25 100755
--- a/i3blocks/i3date.sh
+++ b/i3blocks/i3date.sh
@@ -1,4 +1,11 @@
#!/bin/sh
+
+case $BLOCK_BUTTON in
+ 1) ~/scripts/floatMonths.sh ;;
+ 3) ~/scripts/floatYears.sh ;;
+esac
+
dayofyear=$(date +%j)
perc=$(echo "scale=1; ($dayofyear*100)/365" | bc)
-echo $(date +"%A, %y/%m/%d ($perc%) - %T")
+#echo $(date +"%A, %y/%m/%d ($perc%) - %T")
+echo $(date +"%y/%m/%d ($perc%) - %H:%M")