From b50c450a572c9951baf2bdf1720fb241625c626d Mon Sep 17 00:00:00 2001 From: iceyrazor Date: Wed, 22 Jul 2026 02:42:17 -0500 Subject: Squashed commit of the following: fixed i3blocks breaking blocks on multible monitors added keybind for cboomer urlview.sh change added asciidoc asociation for vis for v0.9 tag fixed vis theme added xorg-xinit. fixed typo xlibre-xserver moved ugrep urlview check change --- env/.config/i3blocks/bandwidth-wrapper.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 env/.config/i3blocks/bandwidth-wrapper.sh (limited to 'env/.config/i3blocks/bandwidth-wrapper.sh') diff --git a/env/.config/i3blocks/bandwidth-wrapper.sh b/env/.config/i3blocks/bandwidth-wrapper.sh new file mode 100755 index 0000000..d78daa4 --- /dev/null +++ b/env/.config/i3blocks/bandwidth-wrapper.sh @@ -0,0 +1,14 @@ +#!/bin/bash +CACHE_FILE="/tmp/bandwidth.cache" + +# Primary bar updates the cache +if [ -n "$I3BLOCKS_PRIMARY" ]; then + ~/.config/i3blocks/bandwidth/bandwidth > "$CACHE_FILE" 2>/dev/null +fi + +# Both bars show from cache +if [ -f "$CACHE_FILE" ]; then + sleep 0.1 && cat "$CACHE_FILE" +else + echo "↓0 ↑0" +fi -- cgit v1.3