summaryrefslogtreecommitdiffstats
path: root/bspwm/panel
diff options
context:
space:
mode:
Diffstat (limited to 'bspwm/panel')
-rwxr-xr-xbspwm/panel6
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