From 06f898d3f3f0ece34c53955dcd8720a02b26b6ac Mon Sep 17 00:00:00 2001 From: dcarrillo Date: Wed, 7 Aug 2019 16:44:17 +0200 Subject: [PATCH] [polybar] Update nmcli icons --- .config/polybar/scripts/nmcli_manager | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.config/polybar/scripts/nmcli_manager b/.config/polybar/scripts/nmcli_manager index b1e82e8..f2c4163 100755 --- a/.config/polybar/scripts/nmcli_manager +++ b/.config/polybar/scripts/nmcli_manager @@ -32,11 +32,10 @@ function build_rofi_menu() dtype="$(cut -d':' -f2 <<< $line)" device="$(cut -d':' -f3 <<< $line)" - [[ -z $device ]] && status=DOWN || status=UP + [[ -z $device ]] && status= || status= dtype=${dtype##*-} - option="$name $dtype is $status" - option=$(printf '%-45s | %s | %s\n' "$name" $dtype $status) + menu="$menu # $option" done < <(nmcli -c no --terse -f NAME,TYPE,DEVICE connection show)