mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 17:28:01 +00:00
[polybar] Update nmcli icons
This commit is contained in:
parent
7a6d7ca172
commit
06f898d3f3
@ -32,11 +32,10 @@ function build_rofi_menu()
|
|||||||
dtype="$(cut -d':' -f2 <<< $line)"
|
dtype="$(cut -d':' -f2 <<< $line)"
|
||||||
device="$(cut -d':' -f3 <<< $line)"
|
device="$(cut -d':' -f3 <<< $line)"
|
||||||
|
|
||||||
[[ -z $device ]] && status=DOWN || status=UP
|
[[ -z $device ]] && status= || status=
|
||||||
dtype=${dtype##*-}
|
dtype=${dtype##*-}
|
||||||
option="$name $dtype is $status"
|
|
||||||
|
|
||||||
option=$(printf '%-45s | %s | %s\n' "$name" $dtype $status)
|
option=$(printf '%-45s | %s | %s\n' "$name" $dtype $status)
|
||||||
|
|
||||||
menu="$menu # $option"
|
menu="$menu # $option"
|
||||||
done < <(nmcli -c no --terse -f NAME,TYPE,DEVICE connection show)
|
done < <(nmcli -c no --terse -f NAME,TYPE,DEVICE connection show)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user