2023-06-27 10:13:14 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
while true
|
|
|
|
do
|
|
|
|
while killall -0 .blueman-manage > /dev/null 2>&1
|
|
|
|
do
|
2023-07-19 21:52:35 -04:00
|
|
|
if bluetoothctl show | grep Powered | grep -q yes; then
|
2023-06-27 10:13:14 -04:00
|
|
|
if [[ $(hyprctl activewindow | grep blueman-manager) == "" && $(hyprctl clients | grep blueman-manager) != "" ]]; then
|
|
|
|
killall .blueman-manage
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
sleep 0.1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
sleep 0.1
|
|
|
|
done
|