aboutsummaryrefslogtreecommitdiff
path: root/status-linux
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-10-02 06:50:47 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-10-02 06:50:47 +0200
commit2874214003d88825f4949525902fc1e8f0cb1b12 (patch)
tree6d23de08c6e501a743b5a66885057d65b75265fe /status-linux
parentd24b871c47826eace3d7f6c642aaffdd01fe6ebe (diff)
downloadscripts-2874214003d88825f4949525902fc1e8f0cb1b12.tar.gz
scripts-2874214003d88825f4949525902fc1e8f0cb1b12.zip
Add info for wired network
Diffstat (limited to 'status-linux')
-rwxr-xr-xstatus-linux7
1 files changed, 7 insertions, 0 deletions
diff --git a/status-linux b/status-linux
index 4f91dfe..a2061d1 100755
--- a/status-linux
+++ b/status-linux
@@ -36,6 +36,13 @@ fi
36 36
37# Thank you iwctl for saving us from this dreadful existence 37# Thank you iwctl for saving us from this dreadful existence
38network="$(iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}')" 38network="$(iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}')"
39if [ "$(cat /sys/class/net/eth0/carrier)" = 1 ]; then
40 if [ -z "$network" ]; then
41 network="eth"
42 else
43 network="eth & $network"
44 fi
45fi
39 46
40noticount=$(notify show | wc -l) 47noticount=$(notify show | wc -l)
41 48

Generated with cgit - Back to sebastiano.tronto.net