diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2018-12-17 17:42:24 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2018-12-17 17:42:59 +0100 |
commit | 9735824c1bfa5e884ec4862d620a6298e9e240c7 (patch) | |
tree | d228abc61c801de70c3b2c309dc89ec31600143c | |
parent | 36d25c89b87dea7bfaf5ad7df2765dba59fb6e15 (diff) | |
download | scripts-9735824c1bfa5e884ec4862d620a6298e9e240c7.tar.gz scripts-9735824c1bfa5e884ec4862d620a6298e9e240c7.zip |
Updated date i3blocks module and extracted months and years scripts.
-rwxr-xr-x | dmenuTerm.sh | 4 | ||||
-rwxr-xr-x | floatMonths.sh | 3 | ||||
-rwxr-xr-x | floatYears.sh | 3 | ||||
-rwxr-xr-x | i3blocks/i3date.sh | 9 |
4 files changed, 16 insertions, 3 deletions
diff --git a/dmenuTerm.sh b/dmenuTerm.sh index b34e72f..744cebc 100755 --- a/dmenuTerm.sh +++ b/dmenuTerm.sh @@ -9,8 +9,8 @@ case "$chosen" in # floating windows neofetch) urxvt -title invisible -sh 100 -cr "#aaddff" -geometry "80x21+50+35" -e ~/scripts/neofetch.sh ;; showColors) urxvt -title floating -sh 10 -cr black -geometry 43x9 -e ~/scripts/showColors.sh ;; - years) urxvt -title floating -sh 20 -cr black -geometry 66x39 -e ~/scripts/years.sh ;; - months) urxvt -title floating -sh 20 -cr black -geometry 22x9 -e ~/scripts/months.sh ;; + years) ~/scripts/floatYears.sh ;; + months) ~/scripts/floatMonths.sh ;; "bg selection") urxvt -title floating -sh 20 -cr black -geometry "45x6-5-5" -e ~/scripts/bgBrowser.sh "/home/inigo/images/wallpapers/" ;; python) urxvt -title floating -geometry 80x28 -e python ;; #programs diff --git a/floatMonths.sh b/floatMonths.sh new file mode 100755 index 0000000..94a6f13 --- /dev/null +++ b/floatMonths.sh @@ -0,0 +1,3 @@ +#!/bin/sh + + urxvt -title floating -sh 20 -cr black -geometry 22x9 -e ~/scripts/months.sh diff --git a/floatYears.sh b/floatYears.sh new file mode 100755 index 0000000..f7176b6 --- /dev/null +++ b/floatYears.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +urxvt -title floating -sh 20 -cr black -geometry 66x39 -e ~/scripts/years.sh 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") |