commit 122c69d1de62b0efba2523be607bda4b1ab4b830
parent 624d4de86a82ec7f24ee1182b393c67b547eb111
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date: Mon, 22 Jun 2020 14:08:46 +0200
Add weather widget and use tux cowsay
Diffstat:
6 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/bin/cowsay_battery.sh b/bin/cowsay_battery.sh
@@ -1,3 +1,3 @@
#!/bin/dash
-st -e watch -n 0.1 -t 'acpi -b | cowsay'
+st -e watch -n 0.1 -t 'acpi -b | cowsay -f tux'
diff --git a/bin/cowsay_current_song.sh b/bin/cowsay_current_song.sh
@@ -1,3 +1,3 @@
#!/bin/dash
-st -e watch -n 0.1 -t 'mpc --format "[%composer%|%artist%][ - %album%][ - %title%]" | cowsay -n'
+st -e watch -n 0.1 -t 'mpc --format "[%composer%|%artist%][ - %album%][ - %title%]" | cowsay -n -f tux'
diff --git a/bin/cowsay_ip.sh b/bin/cowsay_ip.sh
@@ -1,3 +1,3 @@
#!/bin/dash
-st -e watch -n 0.1 -t 'for i in `ip r`; do echo $i; done | grep -A 1 src | tail -1 | cowsay; if [ -d "/proc/sys/net/ipv4/conf/tun0" ]; then nordvpn status | cowsay -n -b && nordvpn settings | cowsay -n -b; else cowsay -p no VPN; fi'
+st -e watch -n 0.1 -t 'for i in `ip r`; do echo $i; done | grep -A 1 src | tail -1 | cowsay -f tux; if [ -d "/proc/sys/net/ipv4/conf/tun0" ]; then nordvpn status | cowsay -n -b -f tux && nordvpn settings | cowsay -n -b -f tux; else cowsay -p -f tux no VPN; fi'
diff --git a/bin/cowsay_temperatur.sh b/bin/cowsay_temperatur.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-st -e watch -n 0.1 -t $'cat /sys/class/thermal/thermal_zone0/temp | awk \'{ print "thermal_zone0: " $1/1000 "°C" }\' | cowsay'
+st -e watch -n 0.1 -t $'cat /sys/class/thermal/thermal_zone0/temp | awk \'{ print "thermal_zone0: " $1/1000 "°C" }\' | cowsay -f tux'
diff --git a/bin/cowsay_volume.sh b/bin/cowsay_volume.sh
@@ -1,3 +1,3 @@
#!/bin/dash
-st -e watch -n 0.1 -t 'amixer get Master | tail -2 | cowsay'
+st -e watch -n 0.1 -t 'amixer get Master | tail -2 | cowsay -f tux'
diff --git a/bin/cowsay_weather.sh b/bin/cowsay_weather.sh
@@ -0,0 +1,3 @@
+#!/bin/dash
+
+st -e watch -n 60 -t 'curl -s wttr.in/Stuttgart?T'