scripts

Various scripts for UNIX-like systems
git clone https://git.tronto.net/scripts
Download | Log | Files | Refs | README

commit 2874214003d88825f4949525902fc1e8f0cb1b12
parent d24b871c47826eace3d7f6c642aaffdd01fe6ebe
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Thu,  2 Oct 2025 06:50:47 +0200

Add info for wired network

Diffstat:
Mstatus-linux | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/status-linux b/status-linux @@ -36,6 +36,13 @@ fi # Thank you iwctl for saving us from this dreadful existence network="$(iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}')" +if [ "$(cat /sys/class/net/eth0/carrier)" = 1 ]; then + if [ -z "$network" ]; then + network="eth" + else + network="eth & $network" + fi +fi noticount=$(notify show | wc -l)