diff options
Diffstat (limited to '')
| -rwxr-xr-x | scripts/status-linux | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/scripts/status-linux b/scripts/status-linux index a88649c..5fa4e13 100755 --- a/scripts/status-linux +++ b/scripts/status-linux | |||
| @@ -27,17 +27,10 @@ else | |||
| 27 | battery="No battery" | 27 | battery="No battery" |
| 28 | fi | 28 | fi |
| 29 | 29 | ||
| 30 | # NetworkManager has a dreadful command line interface | ||
| 31 | # It makes cry every time | ||
| 32 | # pls help | ||
| 33 | #nwline="$(nmcli device status | head -n 2 | tail -n 1)" | ||
| 34 | #nwclean="$(echo "$nwline" | sed 's/ *$//' | sed 's/.* //')" | ||
| 35 | #network="Network: $nwclean" | ||
| 36 | |||
| 37 | # Thank you iwctl for saving us from this dreadful existence | 30 | # Thank you iwctl for saving us from this dreadful existence |
| 38 | network="$(iwctl station wlan0 show | grep 'Connected network' | \ | 31 | network="$(iwctl station wlan0 show | grep 'Connected network' | \ |
| 39 | awk '{$1=$2=""; $0=$0; print}' | sed 's/^ .//')" | 32 | awk '{$1=$2=""; $0=$0; print}' | sed 's/^ .//')" |
| 40 | if [ "$(cat /sys/class/net/eth0/carrier 2>/dev/null)" = 1 ]; then | 33 | if [ "$(cat /sys/class/net/eth1/carrier 2>/dev/null)" = 1 ]; then |
| 41 | if [ -z "$network" ]; then | 34 | if [ -z "$network" ]; then |
| 42 | network="eth" | 35 | network="eth" |
| 43 | else | 36 | else |
