Removed scan option from selection since pair does most of it, can still be selected by typing it
This commit is contained in:
parent
aae83cafe7
commit
0a561b3b02
@ -2,7 +2,7 @@
|
|||||||
#wait time to discover new devices in seconds
|
#wait time to discover new devices in seconds
|
||||||
SCAN_PERIOD=5
|
SCAN_PERIOD=5
|
||||||
BLACKLIST=$HOME/.local/bin/tools/bt_blacklist
|
BLACKLIST=$HOME/.local/bin/tools/bt_blacklist
|
||||||
actions="turn off\nturn on\nscan on\npair"
|
actions="turn off\nturn on\npair"
|
||||||
|
|
||||||
bluetoothctl paired-devices | awk '{print $2}' > /tmp/bt_IDS
|
bluetoothctl paired-devices | awk '{print $2}' > /tmp/bt_IDS
|
||||||
bluetoothctl paired-devices | awk '{for (i=3; i<NF; i++) printf $i " "; print $NF}' > /tmp/paired_devices
|
bluetoothctl paired-devices | awk '{for (i=3; i<NF; i++) printf $i " "; print $NF}' > /tmp/paired_devices
|
||||||
@ -30,7 +30,7 @@ case $choice in
|
|||||||
"turn off") bluetoothctl power off
|
"turn off") bluetoothctl power off
|
||||||
cleanup;;
|
cleanup;;
|
||||||
"scan on") bluetoothctl power on && echo power on && sleep 2
|
"scan on") bluetoothctl power on && echo power on && sleep 2
|
||||||
st -e bluetoothctl scan on
|
[ -n $TERMINAL ] && ($TERMINAL -e bluetoothctl scan on ) || st bluetoothctl scan on
|
||||||
cleanup;;
|
cleanup;;
|
||||||
"pair") bluetoothctl power on
|
"pair") bluetoothctl power on
|
||||||
bluetoothctl scan on & disown
|
bluetoothctl scan on & disown
|
||||||
|
Loading…
Reference in New Issue
Block a user