2023-05-28 19:35:37 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
while true
|
|
|
|
do
|
2023-06-07 15:27:51 -04:00
|
|
|
while killall -0 blueman-manager > /dev/null 2>&1
|
2023-05-28 19:35:37 -04:00
|
|
|
do
|
2023-05-29 13:55:08 -04:00
|
|
|
if [[ $(bluetoothctl show | grep Powered | grep yes) ]]; then
|
2023-06-06 11:45:04 -04:00
|
|
|
if [[ $(hyprctl activewindow | grep blueman-manager) == "" && $(hyprctl clients | grep blueman-manager) != "" ]]; then
|
2023-05-29 13:55:08 -04:00
|
|
|
killall blueman-manager
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
sleep 0.1
|
2023-05-28 19:35:37 -04:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
sleep 0.1
|
|
|
|
done
|