diff options
author | David Robillard <d@drobilla.net> | 2016-06-11 19:43:59 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-09-05 22:31:42 -0400 |
commit | 6853e93f5b10024c2a029cd233c1e0d1ee478188 (patch) | |
tree | 37cd6805eef58b2e3e8a4b4fd355d1fe6d8c66f2 /bspwm | |
parent | e0de8b6c12a532a143f4816d2715ff347bec62b3 (diff) | |
download | dotfiles-6853e93f5b10024c2a029cd233c1e0d1ee478188.tar.gz dotfiles-6853e93f5b10024c2a029cd233c1e0d1ee478188.tar.bz2 dotfiles-6853e93f5b10024c2a029cd233c1e0d1ee478188.zip |
Fix panel status bugs
Diffstat (limited to 'bspwm')
-rwxr-xr-x | bspwm/panel | 6 |
1 files 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 |