summaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/sb-internet
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-09 20:07:10 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-09 20:07:10 +0100
commitb3fdb09a1c512738fbe42aefb80a92b4560a5677 (patch)
treeea7d4736c323646707e33eaa3589ff321df2f622 /.local/bin/statusbar/sb-internet
parentbec891dac2cc69a75e4c5d273b4a1f3893f5b14b (diff)
Update icons for statusbar scripts
Diffstat (limited to '.local/bin/statusbar/sb-internet')
-rwxr-xr-x.local/bin/statusbar/sb-internet24
1 files changed, 12 insertions, 12 deletions
diff --git a/.local/bin/statusbar/sb-internet b/.local/bin/statusbar/sb-internet
index ee1a160..77f7ac0 100755
--- a/.local/bin/statusbar/sb-internet
+++ b/.local/bin/statusbar/sb-internet
@@ -1,24 +1,24 @@
#!/bin/sh
-# Show wifi ๐Ÿ“ถ and percent strength or ๐Ÿ“ก if none.
-# Show ๐ŸŒ if connected to ethernet or โŽ if none.
-# Show ๐Ÿ”’ if a vpn connection is active
+# Show wifi ๓ฐคจ and percent strength or ๓ฐคซ if none.
+# Show ๓ฐ–Ÿ if connected to ethernet or ๓ฑ‡Ž if none.
+# Show ๓ฑŽš if a vpn connection is active
case $BLOCK_BUTTON in
1) "$TERMINAL" -e nmtui; pkill -RTMIN+4 dwmblocks ;;
- 3) notify-send "๐ŸŒ Internet module" "\- Click to connect
-๐Ÿ“ก: no wifi connection
-๐Ÿ“ถ: wifi connection with quality
-โŽ: no ethernet
-๐ŸŒ: ethernet working
-๐Ÿ”’: vpn is active
+ 3) notify-send "๓ฐ–Ÿ Internet module" "\- Click to connect
+๓ฐคซ: no wifi connection
+๓ฐคจ: wifi connection with quality
+๓ฑ‡Ž: no ethernet
+๓ฐ–Ÿ: ethernet working
+๓ฑŽš: vpn is active
" ;;
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
- down) wifiicon="๐Ÿ“ก " ;;
- up) wifiicon="$(awk '/^\s*w/ { print "๐Ÿ“ถ", int($3 * 100 / 70) "% " }' /proc/net/wireless)" ;;
+ down) wifiicon="๓ฐคซ " ;;
+ up) wifiicon="$(awk '/^\s*w/ { print "๓ฐคจ", int($3 * 100 / 70) "% " }' /proc/net/wireless)" ;;
esac
-printf "%s%s%s\n" "$wifiicon" "$(sed "s/down/โŽ/;s/up/๐ŸŒ/" /sys/class/net/e*/operstate 2>/dev/null)" "$(sed "s/.*/๐Ÿ”’/" /sys/class/net/tun*/operstate 2>/dev/null)"
+printf "%s%s%s\n" "$wifiicon" "$(sed "s/down/๓ฑ‡Ž/;s/up/๓ฐ–Ÿ/" /sys/class/net/e*/operstate 2>/dev/null)" "$(sed "s/.*/๓ฑŽš/" /sys/class/net/tun*/operstate 2>/dev/null)"