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},
#!/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
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"
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))}'
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)
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" ;;
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="$(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%]"