aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdmenuTerm.sh4
-rwxr-xr-xfloatMonths.sh3
-rwxr-xr-xfloatYears.sh3
-rwxr-xr-xi3blocks/i3date.sh9
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")