From e5532752993f463524e0c89d5e82b5a84a77759b Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Mon, 3 Feb 2020 00:01:16 +0300 Subject: load gtk settings on sway start, vpn shortcut and waybar indicator --- dotfiles/.local/bin/barweather | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 dotfiles/.local/bin/barweather (limited to 'dotfiles/.local/bin/barweather') diff --git a/dotfiles/.local/bin/barweather b/dotfiles/.local/bin/barweather new file mode 100755 index 0000000..0ae6d3c --- /dev/null +++ b/dotfiles/.local/bin/barweather @@ -0,0 +1,18 @@ +#!/bin/bash + +location="Saint Petersburg" + +if [[ "$location" != "" ]] +then + location="~${location// /+}" +fi + +forecast=$(curl -s wttr.in/$location?format=1) + +if [[ ${#forecast} -gt 30 ]] +then + exit +fi + +echo $forecast + -- cgit v1.2.3