From: Tucker Johnson Date: Fri, 24 Apr 2026 12:02:03 +0000 (-0400) Subject: update X-Git-Url: https://git.newer.systems/?a=commitdiff_plain;ds=inline;p=dwmblocks.git update --- diff --git a/config.h b/config.h index 26a2ea8..29ceb3d 100644 --- a/config.h +++ b/config.h @@ -2,7 +2,7 @@ static const Block blocks[] = { /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ {"", "cat /tmp/recordingicon 2>/dev/null", 0, 9}, - {"", "sb-weather", 600, 19}, +/* {"", "sb-weather", 600, 19}, */ {"", "sb-memory", 10, 14}, /* {"", "sb-cpu", 10, 18}, */ {"", "sb-volume", 0, 10}, diff --git a/statusbar-scripts/sb-clock b/statusbar-scripts/sb-clock index 051ab6f..533d9fd 100755 --- a/statusbar-scripts/sb-clock +++ b/statusbar-scripts/sb-clock @@ -1,7 +1,7 @@ #!/bin/bash case $BLOCK_BUTTON in - 1) input="$(cat $TODO | sed 's/- \[ \]/⬜/; s/- \[-\]/🔜/; s/- \[x\]/✅/; /^$/d')" + 1) input="$(cat $TODO | sed 's/- \[ \]/⚪/; s/- \[-\]/🔴/; s/- \[x\]/🟢/; /^$/d')" current_block="" summary="todo" in_block=false diff --git a/statusbar-scripts/sb-internet b/statusbar-scripts/sb-internet index ea6c627..76cce17 100755 --- a/statusbar-scripts/sb-internet +++ b/statusbar-scripts/sb-internet @@ -15,13 +15,13 @@ esac if [ "$(cat /sys/class/net/w*/operstate 2>/dev/null)" = 'up' ] ; then wifiicon="$(awk '/^\s*w/ { print "", int($3 * 100 / 70) "% " }' /proc/net/wireless)" elif [ "$(cat /sys/class/net/w*/operstate 2>/dev/null)" = 'down' ] ; then - [ "$(cat /sys/class/net/w*/flags 2>/dev/null)" = '0x1003' ] && wifiicon=" " || wifiicon=" " + [ "$(cat /sys/class/net/w*/flags 2>/dev/null)" = '0x1003' ] && wifiicon="📶" || wifiicon="" fi # Ethernet -[ "$(cat /sys/class/net/e*/operstate 2>/dev/null)" = 'up' ] && ethericon="" || ethericon="" +[ "$(cat /sys/class/net/e*/operstate 2>/dev/null)" = 'up' ] && ethericon="🌐" || ethericon="" # TUN -[ -n "$(cat /sys/class/net/tun*/operstate 2>/dev/null)" ] && tunicon=" " +[ -n "$(cat /sys/class/net/tun*/operstate 2>/dev/null)" ] && tunicon="" printf "[%s%s%s]\n" "$wifiicon" "$ethericon" "$tunicon" diff --git a/statusbar-scripts/sb-memory b/statusbar-scripts/sb-memory index b74338a..e5ea10e 100755 --- a/statusbar-scripts/sb-memory +++ b/statusbar-scripts/sb-memory @@ -7,4 +7,4 @@ case $BLOCK_BUTTON in 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac -free --mebi | sed -n '2{p;q}' | awk '{printf ("[%2.2f/%2.2fGiB]\n", ( $3 / 1024), ($2 / 1024))}' +free --mebi | sed -n '2{p;q}' | awk '{printf ("[🧠%2.2f/%2.2fGiB]\n", ( $3 / 1024), ($2 / 1024))}' diff --git a/statusbar-scripts/sb-nettraf b/statusbar-scripts/sb-nettraf index e438671..75e8d14 100755 --- a/statusbar-scripts/sb-nettraf +++ b/statusbar-scripts/sb-nettraf @@ -20,4 +20,4 @@ update() { rx=$(update /sys/class/net/[ew]*/statistics/rx_bytes) tx=$(update /sys/class/net/[ew]*/statistics/tx_bytes) -printf "[%4sB %4sB]\\n" $(numfmt --to=iec $rx $tx) +printf "[🔻%4sB 🔺%4sB]\\n" $(numfmt --to=iec $rx $tx) diff --git a/statusbar-scripts/sb-volume b/statusbar-scripts/sb-volume index 17bf668..524bebc 100755 --- a/statusbar-scripts/sb-volume +++ b/statusbar-scripts/sb-volume @@ -7,7 +7,7 @@ case $BLOCK_BUTTON in notify-send "📢 Devices" "*$(echo $device | cut -d'.' -f2 | cut -c -25) $otherDevices" ;; 2) wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle ;; - 3) notify-send "📢 sound" "\- shows volume ,  if muted. + 3) notify-send "📢 sound" "\- shows volume 🔊, 🔇 if muted. - left-click to show audio device - middle-click to mute" ;; 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; @@ -16,7 +16,7 @@ esac vol="$(wpctl get-volume @DEFAULT_AUDIO_SINK@)" # If muted: -[ "$vol" != "${vol%\[MUTED\]}" ] && echo "[00%]" && exit +[ "$vol" != "${vol%\[MUTED\]}" ] && echo "[🔇00%]" && exit vol="${vol#Volume: }" @@ -30,10 +30,10 @@ split() { vol="$(printf "%.0f" "$(split "$vol" ".")")" case 1 in - $((vol >= 70)) ) icon="" ;; - $((vol >= 30)) ) icon="" ;; - $((vol >= 1)) ) icon="" ;; - * ) echo "[00%]" && exit ;; + $((vol >= 70)) ) icon="🔊" ;; + $((vol >= 30)) ) icon="🔉" ;; + $((vol >= 1)) ) icon="🔈" ;; + * ) echo "[🔇00%]" && exit ;; esac echo "[$icon$vol%]"