28 lines
605 B
Text
28 lines
605 B
Text
#[click]
|
|
#full_text=Click me!
|
|
#command=echo "Got clicked with button $button"
|
|
#color=#F79494
|
|
|
|
# Guess the weather hourly
|
|
#[weather]
|
|
#command=curl -Ss 'https://wttr.in?0&T&Q' | cut -c 16- | head -2 | xargs echo
|
|
#interval=3600
|
|
#color=#A4C2F4
|
|
|
|
# exchange rate(s)
|
|
[xrate]
|
|
command=~/.config/i3/scripts/xrate.py
|
|
interval=3600
|
|
color=#A4C2F4
|
|
|
|
# Query my default IP address only on startup
|
|
[ip]
|
|
#command=hostname -i | awk '{ print "IP:" $1 }'
|
|
command=curl -s ipinfo.io | awk '/city/ { split($0, e, "\""); print e[4]; }'
|
|
interval=3600
|
|
color=#91E78B
|
|
|
|
# Update time every 5 seconds
|
|
[time]
|
|
command=date +%T
|
|
interval=5
|