Networkwidget: Set bt power delay to 2.

This commit is contained in:
Dmitry Voronin 2024-12-27 05:52:23 +03:00
parent 8df54677d0
commit 6a93742777
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -11,7 +11,7 @@ function networkwidget() {
local icon="󰖩"
local class=""
[[ ${#_bts_raw[@]} -gt 0 ]] && sleep 1 # HACK: Darn bluetooth battery levels!
[[ ${#_bts_raw[@]} -gt 0 ]] && sleep 2 # HACK: Darn bluetooth battery levels!
for bt in ${_bts_raw[@]}; do
local name=$(printf "%s" ${bt} | cut -d\ -f3)
local mac=$(printf "%s" ${bt} | cut -d\ -f2 | sed -e "s/:/_/g")