aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-01-31 19:38:26 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-01-31 19:38:26 +0100
commit5701d5523c117e9223e5fd0086407dd74e148626 (patch)
tree75e0b41c7475e4d6322f57f5280a947ed28b4d14
parent3c6c62ad079454c8ca1c91e153ac48f8216c3694 (diff)
downloadscripts-5701d5523c117e9223e5fd0086407dd74e148626.tar.gz
scripts-5701d5523c117e9223e5fd0086407dd74e148626.zip
dmenuTerm now can show weather.
-rwxr-xr-xdmenuTerm.sh3
-rwxr-xr-xshowColors.sh3
-rwxr-xr-xweather.sh3
3 files changed, 7 insertions, 2 deletions
diff --git a/dmenuTerm.sh b/dmenuTerm.sh
index b7667be..7835e3d 100755
--- a/dmenuTerm.sh
+++ b/dmenuTerm.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# dmenu script for opening console programs and scripts directly
-options="neofetch\ncmus\ncmus (float)\nnewsboat\nneomutt\nsyncthing\nbrightFirst\nresetConnection\nwifiDown\nyears\nmonths\nbg selection\nshowColors\npython\nmusicMode\nClose music mode\nemojis"
+options="neofetch\ncmus\ncmus (float)\nnewsboat\nneomutt\nweather\nsyncthing\nbrightFirst\nresetConnection\nwifiDown\nyears\nmonths\nbg selection\nshowColors\npython\nmusicMode\nClose music mode\nemojis"
chosen=$(echo -e "$options" | dmenu -i -p "~$ urxvt -e")
@@ -11,6 +11,7 @@ case "$chosen" in
showColors) urxvt -title floating -sh 10 -cr black -geometry 43x9 -e ~/scripts/showColors.sh ;;
years) ~/scripts/floats/floatYears.sh ;;
months) ~/scripts/floats/floatMonths.sh ;;
+ weather) urxvt -title floating -sh 10 -geometry 125x40 -e weather.sh ;;
"bg selection") ~/scripts/floats/floatBgBrowser.sh "~/images/wallpapers/" ;;
python) urxvt -title floating -geometry 80x28 -e python ;;
#programs
diff --git a/showColors.sh b/showColors.sh
index 7183fce..93d4a24 100755
--- a/showColors.sh
+++ b/showColors.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+
echo -e "\033[0;30mBlack (0;30) \033[1;30mLight Black (1;30)"
echo -e "\033[0;31mRed (0;31) \033[1;31mLight Red (1;31)"
echo -e "\033[0;32mGreen (0;32) \033[1;32mLight Green (1;32)"
@@ -8,4 +9,4 @@ echo -e "\033[0;35mPurple (0;35) \033[1;35mLight Purple (1;35)"
echo -e "\033[0;36mCyan (0;36) \033[1;36mLight Cyan (1;36)"
echo -e "\033[0;37mWhite (0;37) \033[1;37mLight White (1;37)"
-read -rsp "" -d "q"
+read -rsp "" -d "q"
diff --git a/weather.sh b/weather.sh
new file mode 100755
index 0000000..1cd74ec
--- /dev/null
+++ b/weather.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+curl wttr.in
+read -rsp "" -d "q"