Compare commits

..

2 Commits

View File

@ -1,7 +1,7 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
if [[ "$(uname)" = 'Linux' ]]; then if [[ "$(uname)" = 'Linux' ]]; then
local active_networks="$(nmcli c s --active)" local active_networks="$(nmcli --fields type c s --active)"
local output='' local output=''
[[ "${active_networks}" = *'wifi'* ]] && output="${output}󰖩 " [[ "${active_networks}" = *'wifi'* ]] && output="${output}󰖩 "
[[ "${active_networks}" = *'ethernet'* ]] && output="${output}󰈁" [[ "${active_networks}" = *'ethernet'* ]] && output="${output}󰈁"