From 8330065084efc007fbc39fba0d687f8a020c75fd Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Fri, 13 Dec 2024 08:02:59 +0300 Subject: [PATCH] Swayscript: Fix multiword network names display. --- package/swayscript/script/NetworkWidget.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/swayscript/script/NetworkWidget.nix b/package/swayscript/script/NetworkWidget.nix index 4d6fcec8..89783e61 100644 --- a/package/swayscript/script/NetworkWidget.nix +++ b/package/swayscript/script/NetworkWidget.nix @@ -4,9 +4,9 @@ function networkwidget() { local IFS=$'\n' local internet=$(nmcli networking connectivity check) - local _ethernets=($(nmcli connection show --active | rg ethernet | cut -f1 -d\ )) - local _vpns=($(nmcli connection show --active | rg vpn | cut -f1 -d\ )) - local _wifis=($(nmcli connection show --active | rg wifi | cut -f1 -d\ )) + local _ethernets=($(nmcli connection show --active | rg ethernet | sed "s/ .*//")) + local _vpns=($(nmcli connection show --active | rg vpn | sed "s/ .*//")) + local _wifis=($(nmcli connection show --active | rg wifi | sed "s/ .*//")) local _bts=($(bluetoothctl devices Connected | cut -d\ -f3)) local icon="󰖩" local class=""