bar fix
This commit is contained in:
parent
04d7df1151
commit
4449225e5c
1 changed files with 3 additions and 3 deletions
|
@ -20,15 +20,15 @@ testweather() { \
|
||||||
status() { \
|
status() { \
|
||||||
|
|
||||||
# Get current mpd track filename or artist - title if possible.
|
# Get current mpd track filename or artist - title if possible.
|
||||||
printf "%s" "$(mpc -f "[[%artist% - ]%title%]|[%file%]" 2>/dev/null | grep -v "volume:[0-9]*%" | head -n 1)"
|
printf "%s" "$(mpc -f "[[%artist% - ]%title%]|[%file%]" 2>/dev/null | grep -v "volume:" | head -n 1)"
|
||||||
|
|
||||||
# If the weather report is current, show daily precipitation chance,
|
# If the weather report is current, show daily precipitation chance,
|
||||||
# low and high. Don't even bother to understand this one unless you
|
# low and high. Don't even bother to understand this one unless you
|
||||||
# have all day. Takes the weather report format from wttr.in and makes
|
# have all day. Takes the weather report format from wttr.in and makes
|
||||||
# it look like how I want it for the status bar.
|
# it look like how I want it for the status bar.
|
||||||
[ "$(stat -c %y "$HOME/.local/share/weatherreport" 2>/dev/null | cut -d' ' -f1)" = "$(date '+%Y-%m-%d')" ] &&
|
[ "$(stat -c %y "$HOME/.local/share/weatherreport" 2>/dev/null | cut -d' ' -f1)" = "$(date '+%Y-%m-%d')" ] &&
|
||||||
printf "| %s" "$(sed '16q;d' "$HOME/.local/share/weatherreport" | grep -wo "[0-9]*%" | sort -n | sed -e '$!d' | sed -e "s/^/☔ /g" | tr -d '\n')" &&
|
printf "| %s" "$(sed '16q;d' "$HOME/.local/share/weatherreport" | grep -wo "[0-9]*%" | sort -n | sed -e '$!d' | sed -e "s/^/ /g" | tr -d '\n')" &&
|
||||||
sed '13q;d' "$HOME/.local/share/weatherreport" | grep -o "m\\(-\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " ❄️",$1 "°","🌞",$2 "° |"}'
|
sed '13q;d' "$HOME/.local/share/weatherreport" | grep -o "m\\(-\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " ",$1 "°","",$2 "° |"}'
|
||||||
|
|
||||||
# The newsboat module is noticeably slower than all others.
|
# The newsboat module is noticeably slower than all others.
|
||||||
# Especially if you don't use newsboat, you will want to comment it out.
|
# Especially if you don't use newsboat, you will want to comment it out.
|
||||||
|
|
Loading…
Reference in a new issue