dotfiles

Luke's GNU/Linux dotfiles for i3, vim, ranger, bash, mpd, etc.
git clone git@git.lukesmith.xyz:dotfiles
Log | Files | Refs | README | LICENSE

commit 869447c1e245fd95841592a12b95b101f97411dc
parent 850ffc5365a0af36fe097237a37464a1f8afba8b
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Fri,  4 May 2018 13:26:56 -0700

Merge pull request #43 from Daenarii/patch-2

Added location variable on i3weather script
Diffstat:
M.scripts/i3weather | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.scripts/i3weather b/.scripts/i3weather @@ -4,7 +4,11 @@ ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` >/dev/null || exit -curl wttr.in > ~/.weatherreport +### This is only if your location isn't automatically detected, otherwise you can leave it blank. +loc="" +location=${loc// /+} + +curl wttr.in/~$location > ~/.weatherreport echo -n ☔ $(cat ~/.weatherreport | sed -n 16p | sed -e 's/[^m]*m//g' | grep -o "[0-9]*%" | sort -n | sed -e '$!d')