diff options
Diffstat (limited to '.local/bin/statusbar/sb-internet')
-rwxr-xr-x | .local/bin/statusbar/sb-internet | 24 |
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)" |