dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 93932d7b5df0b2de51c6b7033932927fb4587e3b
parent 8c5aedc3a741346d94583dc4352f99d4bd7e27c5
Author: hhvn <dev@hhvn.uk>
Date:   Thu, 23 Dec 2021 23:01:56 +0000

.s/d/time2: handle weather properly

Diffstat:
M.scripts/dwmblocks/time2 | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.scripts/dwmblocks/time2 b/.scripts/dwmblocks/time2 @@ -5,11 +5,11 @@ datediff $(cat $HOME/.cache/wttrD) $currdate | grep '^-' >/dev/null && col="^c#0 datediff $(cat $HOME/.cache/wttrd) $currdate | grep -v '^-' >/dev/null && col="^c#000000^" [ "$col" = "" ] && { + <$HOME/.cache/wttrC grep -Ei 'clear|sun' >/dev/null && col="^c#eeaaaa^" + <$HOME/.cache/wttrC grep -Ei 'rain|shower' >/dev/null && col="^c#8888ee^" datediff $(cat $HOME/.cache/wttrS) $currdate | grep '^-' >/dev/null && col="^c#000099^" datediff $(cat $HOME/.cache/wttrs) $currdate | grep -v '^-' >/dev/null && col="^c#000099^" } - -<$HOME/.cache/wttrC grep -Ei 'clear|sun' >/dev/null && col="^c#eeaaaa^" -<$HOME/.cache/wttrC grep -Ei 'rain|shower' >/dev/null && col="^c#8888ee^" [ "$col" = "" ] && col="^c#cccccc^" + echo "[${col}${currdate}]"