Add dotfiles
This commit is contained in:
parent
49bfe1a4d3
commit
b6e01a720b
52 changed files with 4701 additions and 0 deletions
15
dwmbar/modules/weather
Executable file
15
dwmbar/modules/weather
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Deps:
|
||||
# curl
|
||||
|
||||
|
||||
get_weather()
|
||||
{
|
||||
curl -s v2.wttr.in | grep -e "Weather" | sed -n 2p | sed s/Weather://g | sed 's/,//g' | sed 's/+//g' | sed 's/°C.*/°C/' | sed 's/.*m//'
|
||||
}
|
||||
|
||||
|
||||
if [ $(( 10#$(date '+%S') % 30 )) -eq 0 ]; then
|
||||
get_weather
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue