Compare commits

..

1 Commits

Author SHA1 Message Date
appeasementPolitik
4bd06c6c96
Merge 1500ec504e44c3b2a3367c6bb54c1be865f7416e into 07952026753f1bbeaf5b6c4eb5414a9c51536041 2023-11-18 11:30:57 -03:00
4 changed files with 4 additions and 4 deletions

View File

@ -53,4 +53,4 @@ checkforecast && showweather ||
( until { [ "$(cat /sys/class/net/w*/operstate)" = 'up' ] || [ "$(cat /sys/class/net/e*/operstate)" = 'up' ]; } &&
getforecast; do sleep 60; done &&
pkill -RTMIN+"${1:-5}" "${STATUSBAR:-dwmblocks}" ) &
echo ) 9>"${XDG_RUNTIME_DIR}/sb-forecast.lock"
echo ) 9>/tmp/sb-forecast.lock

View File

@ -13,7 +13,7 @@ addr=$(cat "$ipfile" 2>/dev/null) && addr=$(geoiplookup "$addr" 2>/dev/null) &&
( until { [ "$(cat /sys/class/net/w*/operstate)" = 'up' ] || [ "$(cat /sys/class/net/e*/operstate)" = 'up' ]; } &&
curl -sf api.ipify.org --output "$ipfile"; do sleep 60; done &&
pkill -RTMIN+"${1:-27}" "${STATUSBAR:-dwmblocks}" ) &
echo; exit ) 9>"${XDG_RUNTIME_DIR}/sb-iplocate.lock"
echo; exit ) 9>/tmp/sb-iplocate.lock
name="${addr##*, }"
flag="$(grep "flag: $name" "${XDG_DATA_HOME:-$HOME/.local/share}/larbs/emoji")"
flag="${flag%% *}"

View File

@ -9,7 +9,7 @@ moonfile="${XDG_DATA_HOME:-$HOME/.local/share}/moonphase"
( until { [ "$(cat /sys/class/net/w*/operstate)" = 'up' ] || [ "$(cat /sys/class/net/e*/operstate)" = 'up' ]; } &&
curl -sf "wttr.in/?format=%m" --output "$moonfile" && touch "$moonfile"; do sleep 60; done &&
pkill -RTMIN+"${1:-17}" "${STATUSBAR:-dwmblocks}" ) &
echo; exit ) 9>"${XDG_RUNTIME_DIR}/sb-moonphase.lock"
echo; exit ) 9>/tmp/sb-moonphase.lock
icon="$(cat "$moonfile")"

View File

@ -55,7 +55,7 @@ esac
( until { [ "$(cat /sys/class/net/w*/operstate)" = 'up' ] || [ "$(cat /sys/class/net/e*/operstate)" = 'up' ]; } &&
updateprice; do sleep 60; done &&
pkill -RTMIN+"$4" "${STATUSBAR:-dwmblocks}" ) &
echo; exit ) 9>"${XDG_RUNTIME_DIR}/sb-price.lock" ||
echo; exit ) 9>/tmp/sb-price.lock ||
updateprice
fi