]> git.newer.systems Git - dwmblocks.git/commitdiff
update main
authorTucker Johnson <tucker@newer.systems>
Fri, 24 Apr 2026 12:02:03 +0000 (08:02 -0400)
committerTucker Johnson <tucker@newer.systems>
Fri, 24 Apr 2026 12:02:03 +0000 (08:02 -0400)
config.h
statusbar-scripts/sb-clock
statusbar-scripts/sb-internet
statusbar-scripts/sb-memory
statusbar-scripts/sb-nettraf
statusbar-scripts/sb-volume

index 26a2ea8c586f9005e39f726da2f6163b4a3995b5..29ceb3db2479ac2540e776cb813f705ff3e94cf4 100644 (file)
--- 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},
 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},
        {"",        "sb-memory",        10,     14},
 /*     {"",        "sb-cpu",           10,     18}, */
        {"",        "sb-volume",        0,      10},
index 051ab6f44d62390b3e4eb8809c1d1ca36f0147c5..533d9fd85c96706b434e2ff2d132db89dbea8f14 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 case $BLOCK_BUTTON in
 #!/bin/bash
 
 case $BLOCK_BUTTON in
-    1) input="$(cat $TODO | sed 's/- \[ \]/â¬\9c/; s/- \[-\]/ð\9f\94\9c/; s/- \[x\]/â\9c\85/; /^$/d')"
+    1) input="$(cat $TODO | sed 's/- \[ \]/â\9aª/; s/- \[-\]/ð\9f\94´/; s/- \[x\]/ð\9f\9f¢/; /^$/d')"
         current_block=""
         summary="todo"
         in_block=false
         current_block=""
         summary="todo"
         in_block=false
index ea6c62727b45a17e906f92d153ac8b1b3eb074c6..76cce17de1b4fb7c73f75fd625bd22e33f441b37 100755 (executable)
@@ -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
 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
 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
 
 # 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"
 
 printf "[%s%s%s]\n" "$wifiicon" "$ethericon" "$tunicon"
index b74338ac477def096b512748cd1b0572ef839df7..e5ea10e65c51465a305385a86c3e4d93db2e6666 100755 (executable)
@@ -7,4 +7,4 @@ case $BLOCK_BUTTON in
        6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
 esac
 
        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))}'
index e438671decdb8a53b8e561b18fb02764334f11cd..75e8d14ed7286cd9e9278a13af66b34799a72c53 100755 (executable)
@@ -20,4 +20,4 @@ update() {
 rx=$(update /sys/class/net/[ew]*/statistics/rx_bytes)
 tx=$(update /sys/class/net/[ew]*/statistics/tx_bytes)
 
 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)
index 17bf6680f81e05f2299d8db14c02f3f86baefbe4..524bebc47c134af14443df2e5e24210ee130f424 100755 (executable)
@@ -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 ;;
         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" ;;
 - 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="$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
 
 # If muted:
-[ "$vol" != "${vol%\[MUTED\]}" ] && echo "[00%]" && exit
+[ "$vol" != "${vol%\[MUTED\]}" ] && echo "[🔇00%]" && exit
 
 vol="${vol#Volume: }"
 
 
 vol="${vol#Volume: }"
 
@@ -30,10 +30,10 @@ split() {
 vol="$(printf "%.0f" "$(split "$vol" ".")")"
 
 case 1 in
 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%]"
 esac
 
 echo "[$icon$vol%]"