Merge branch 'master' of github.com:LukeSmithxyz/voidrice

This commit is contained in:
Luke Smith 2022-10-17 09:10:13 -04:00
commit b95276922e
4 changed files with 4 additions and 3 deletions

View file

@ -5,6 +5,7 @@
PID=$(xprop -id "$(xprop -root | xprop -root | sed -n "/_NET_ACTIVE_WINDOW/ s/^.*# // p")" | sed -n "/PID/ s/^.*= // p") PID=$(xprop -id "$(xprop -root | xprop -root | sed -n "/_NET_ACTIVE_WINDOW/ s/^.*# // p")" | sed -n "/PID/ s/^.*= // p")
PID="$(pstree -lpA "$PID")" PID="$(pstree -lpA "$PID")"
PID="${PID##*"${SHELL##*/}"(}" PID="${PID##*"${SHELL##*/}"(}"
PID="${PID#*lf(}"
PID="${PID%%)*}" PID="${PID%%)*}"
cd "$(readlink /proc/"$PID"/cwd)" || return 1 cd "$(readlink /proc/"$PID"/cwd)" || return 1
"$TERMINAL" "$TERMINAL"

View file

@ -55,7 +55,7 @@ US: KUDX: Rapid City, SD
US: KRIW: Riverton, WY US: KRIW: Riverton, WY
US: KSGF: Springfield, MO US: KSGF: Springfield, MO
US: KLSX: St. LOUIS, MO US: KLSX: St. LOUIS, MO
US: KFSD: Sioux Falls, IA US: KFSD: Sioux Falls, SD
US: KTWX: Topeka, KS US: KTWX: Topeka, KS
US: KICT: Wichita, KS US: KICT: Wichita, KS
US: KVWX: Paducah, KY US: KVWX: Paducah, KY

View file

@ -29,7 +29,7 @@ esac
# The test if our forcecast is updated to the day. If it isn't download a new # The test if our forcecast is updated to the day. If it isn't download a new
# weather report from wttr.in with the above function. # weather report from wttr.in with the above function.
[ ! -s "$weatherreport" ] && [ "$(stat -c %y "$weatherreport" 2>/dev/null | cut -d' ' -f1)" = "$(date '+%Y-%m-%d')" ] || [ -s "$weatherreport" ] && [ "$(stat -c %y "$weatherreport" 2>/dev/null | cut -d' ' -f1)" = "$(date '+%Y-%m-%d')" ] ||
getforecast getforecast
showweather showweather

View file

@ -4,7 +4,7 @@
moonfile="${XDG_DATA_HOME:-$HOME/.local/share}/moonphase" moonfile="${XDG_DATA_HOME:-$HOME/.local/share}/moonphase"
[ ! -s "$moonfile" ] && [ "$(stat -c %y "$moonfile" 2>/dev/null | cut -d' ' -f1)" = "$(date '+%Y-%m-%d')" ] || [ -s "$moonfile" ] && [ "$(stat -c %y "$moonfile" 2>/dev/null | cut -d' ' -f1)" = "$(date '+%Y-%m-%d')" ] ||
{ curl -sf "wttr.in/?format=%m" > "$moonfile" || exit 1 ;} { curl -sf "wttr.in/?format=%m" > "$moonfile" || exit 1 ;}
icon="$(cat "$moonfile")" icon="$(cat "$moonfile")"