Skip to content

Commit

Permalink
fix: print full SSID of network on Linux instead of first word
Browse files Browse the repository at this point in the history
  • Loading branch information
cybardev authored Nov 17, 2023
1 parent f376282 commit 39285d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cutefetch
Original file line number Diff line number Diff line change
Expand Up @@ -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*)
Expand Down

0 comments on commit 39285d4

Please sign in to comment.