From 6853e93f5b10024c2a029cd233c1e0d1ee478188 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 11 Jun 2016 19:43:59 -0400 Subject: Fix panel status bugs --- bspwm/panel | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bspwm/panel b/bspwm/panel index bb5df43..9d808c4 100755 --- a/bspwm/panel +++ b/bspwm/panel @@ -41,14 +41,14 @@ bspc config top_padding $PANEL_HEIGHT bspc control --subscribe > "$PANEL_FIFO" & xtitle -sf 'T%s' > "$PANEL_FIFO" & clock -sf 'S%a %Y-%m-%d %H:%M' > "$PANEL_FIFO" & -mpstat 1 | stdbuf -oL awk '$12 ~ /[0-9.]+/ { printf "L%3d\n", 100 - $12 }' > "$PANEL_FIFO" & -free -m -s 1 | stdbuf -oL awk '/^Mem:.*/ { print "M"$2 - $6 - $7"/"$2 }' > "$PANEL_FIFO" & +LC_TIME=en_DK.UTF-8 mpstat 1 | stdbuf -oL tail -n +4 | stdbuf -oL awk '$12 ~ /[0-9.]+/ { printf "L%3d\n", 100 - $12 }' > "$PANEL_FIFO" & +free -m -s 1 | stdbuf -oL awk '/^Mem:.*/ { printf "M%02d%%\n", ($3 - $6 - $7) / $2 * 100 }' > "$PANEL_FIFO" & iostat -y -d 1 | stdbuf -oL awk '/Device.*/ { printf("\nI"); next } /^[0-9a-z]* / { printf " %s %04.0f↓ %04.0f↑", $1, $3, $4 } END { printf "\n" }' > "$PANEL_FIFO" & # Battery while :; do acpi -b | sed 's/.*, /B/' > "$PANEL_FIFO" - sleep 1 + sleep 5 done & # Temperature -- cgit v1.2.1