sxmo_bluetoothmenu.sh: fix indexes
This commit is contained in:
@@ -231,27 +231,29 @@ EOF
|
|||||||
;;
|
;;
|
||||||
"Simple mode $icon_ton")
|
"Simple mode $icon_ton")
|
||||||
SIMPLE_MODE=no
|
SIMPLE_MODE=no
|
||||||
|
INDEX=3
|
||||||
;;
|
;;
|
||||||
"Simple mode $icon_tof")
|
"Simple mode $icon_tof")
|
||||||
SIMPLE_MODE=yes
|
SIMPLE_MODE=yes
|
||||||
|
INDEX=3
|
||||||
;;
|
;;
|
||||||
"Pairable $icon_ton")
|
"Pairable $icon_ton")
|
||||||
bluetoothctl pairable off
|
bluetoothctl pairable off
|
||||||
INDEX=3
|
INDEX=4
|
||||||
;;
|
;;
|
||||||
"Pairable $icon_tof")
|
"Pairable $icon_tof")
|
||||||
bluetoothctl pairable on
|
bluetoothctl pairable on
|
||||||
INDEX=3
|
INDEX=4
|
||||||
;;
|
;;
|
||||||
"Discovering $icon_ton")
|
"Discovering $icon_ton")
|
||||||
INDEX=4
|
INDEX=5
|
||||||
sxmo_daemons.sh stop bluetooth_scan
|
sxmo_daemons.sh stop bluetooth_scan
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
;;
|
;;
|
||||||
"Discovering $icon_tof")
|
"Discovering $icon_tof")
|
||||||
sxmo_daemons.sh start bluetooth_scan bluetoothctl --timeout 60 scan on > /dev/null
|
sxmo_daemons.sh start bluetooth_scan bluetoothctl --timeout 60 scan on > /dev/null
|
||||||
notify-send "Scanning for 60 seconds"
|
notify-send "Scanning for 60 seconds"
|
||||||
INDEX=4
|
INDEX=5
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Reference in New Issue
Block a user