swaydots

my dotfiles
git clone https://git.awy.one/swaydots.git
Log | Files | Refs | README | LICENSE

commit 00c85b89f0c8dd7d52af4356266ec9a01f6d2bc4
parent 1f3625234420231a659769eb6c513b85fccef324
Author: awy <awy@awy.one>
Date:   Sun,  8 Jun 2025 17:00:50 +0300

additional icon for routing

Diffstat:
M.local/bin/statusbar/sb-internet | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/.local/bin/statusbar/sb-internet b/.local/bin/statusbar/sb-internet @@ -1,7 +1,7 @@ #!/bin/sh # Show wifi 📶 and percent strength or 📡 if none. -# Show 🌐 if connected to ethernet or ❎ if none. +# Show 🌎 if connected to ethernet or ❎ if none. # Show 🔒 if a vpn connection is active case $BLOCK_BUTTON in @@ -11,7 +11,8 @@ case $BLOCK_BUTTON in 📡: no wifi connection 📶: wifi connection with quality ❎: no ethernet -🌐: ethernet working +🌎: ethernet working +🧭: vpn is active (routing) 🔒: vpn is active " ;; 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;; @@ -25,9 +26,10 @@ elif [ "$(cat /sys/class/net/w*/operstate 2>/dev/null)" = 'down' ] ; then 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/libre*/operstate 2>/dev/null)" ] && tunicon=" 🔒" +[ -n "$(cat /sys/class/net/tun*/operstate 2>/dev/null)" ] && tunicon=" 🔒" +[ -n "$(cat /sys/class/net/route*/operstate 2>/dev/null)" ] && tunicon=" 🧭" printf "%s%s%s\n" "$wifiicon" "$ethericon" "$tunicon"