summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-05-29 12:33:37 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-05-29 12:33:37 -0400
commit4449225e5c01f191b3807b91e380b2cfcae0d8ae (patch)
tree96d357b2ab146fdf6965b3034ee53af4393b1a3b /.local
parent04d7df115113dc2ce800a12ccb7736713967528e (diff)
downloadeibhear-4449225e5c01f191b3807b91e380b2cfcae0d8ae.tar.gz
eibhear-4449225e5c01f191b3807b91e380b2cfcae0d8ae.tar.zst
eibhear-4449225e5c01f191b3807b91e380b2cfcae0d8ae.zip
bar fix
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/dwmbar6
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/dwmbar b/.local/bin/dwmbar
index ecc436b..61965b6 100755
--- a/.local/bin/dwmbar
+++ b/.local/bin/dwmbar
@@ -20,15 +20,15 @@ testweather() { \
status() { \
# 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,
# 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
# 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')" ] &&
- 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 "° |"}'
+ 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 "° |"}'
# The newsboat module is noticeably slower than all others.
# Especially if you don't use newsboat, you will want to comment it out.