diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-09 20:07:10 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-09 20:07:10 +0100 |
commit | b3fdb09a1c512738fbe42aefb80a92b4560a5677 (patch) | |
tree | ea7d4736c323646707e33eaa3589ff321df2f622 /.local/bin/statusbar/sb-internet | |
parent | bec891dac2cc69a75e4c5d273b4a1f3893f5b14b (diff) |
Update icons for statusbar scripts
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)" |