From 39285d4b4c521f1d4352aeab8636227bad43b42c Mon Sep 17 00:00:00 2001 From: Sheikh Date: Fri, 17 Nov 2023 10:15:46 -0400 Subject: [PATCH] fix: print full SSID of network on Linux instead of first word --- cutefetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cutefetch b/cutefetch index 5f53420..c798c83 100755 --- a/cutefetch +++ b/cutefetch @@ -150,7 +150,7 @@ init() { readonly kern="$(uname -r | cut -d '-' -f1)" readonly shell=$(basename $SHELL) readonly res="$(xdpyinfo | grep 'dimensions' | grep -oE '[0-9]+x[0-9]+' | head -n 1)" - readonly net="$(nmcli -g common | grep -m 1 connected | awk '{print($4)}')" + readonly net="$(nmcli -g common | grep -m 1 connected | cut -f 4- -d ' ')" [[ -z $net ]] && readonly net="no wifi" ;; Darwin*)