Removed scan option from selection since pair does most of it, can still be selected by typing it

This commit is contained in:
Alexander Bocken 2020-04-19 10:38:08 +02:00
parent aae83cafe7
commit 0a561b3b02

View File

@ -2,7 +2,7 @@
#wait time to discover new devices in seconds
SCAN_PERIOD=5
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 '{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
cleanup;;
"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;;
"pair") bluetoothctl power on
bluetoothctl scan on & disown