Fix bluetooth device list
Signed-off-by: Roberto Castagnola <roberto.castagnola@gmail.com> Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
This commit is contained in:

committed by
Willow Barraco

parent
2cde05382d
commit
5e7e07841f
@@ -26,8 +26,8 @@ _device_list() {
|
|||||||
name=icon=mac=""
|
name=icon=mac=""
|
||||||
}
|
}
|
||||||
{ $1=$1 }
|
{ $1=$1 }
|
||||||
/Device/ && name { print_cached_device() }
|
/^Device/ && name { print_cached_device() }
|
||||||
/Device/ { mac=$2; paired=""; connected=""; linkedsep="" }
|
/^Device/ { mac=$2; paired=""; connected=""; linkedsep="" }
|
||||||
/Name:/ { $1="";$0=$0;$1=$1; name=$0 }
|
/Name:/ { $1="";$0=$0;$1=$1; name=$0 }
|
||||||
/Paired: yes/ { paired="'$icon_lnk'"; linkedsep=" " }
|
/Paired: yes/ { paired="'$icon_lnk'"; linkedsep=" " }
|
||||||
/Connected: yes/ { connected="'$icon_a2x'"; linkedsep=" " }
|
/Connected: yes/ { connected="'$icon_a2x'"; linkedsep=" " }
|
||||||
|
Reference in New Issue
Block a user