Reimplemented trust option

Is enabled by default, autotrust is disabled by default
This commit is contained in:
Alexander Bocken 2020-06-28 14:43:34 +02:00
parent f38b841d2d
commit f2d69e7759

4
bt
View File

@ -1,6 +1,7 @@
#!/bin/bash
#wait time to discover new devices in seconds
SCAN_PERIOD=5
AUTOTRUST=false
#locations of blacklist and hard coded list of paired devices (watch out, need to modify Makefile as well if you want to change these values and still use make install)
BLACKLIST=${XDG_DATA_HOME:-$HOME/.local/share}/bt/blacklist
PAIRLIST=${XDG_DATA_HOME:-$HOME/.local/share}/bt/paired
@ -9,6 +10,9 @@ actions="pair
disconnect
unpair"
[ "$AUTOTRUST" = false ] && actions+="
trust"
#Checks for necessary programs to be present. Very unlikely not to be present but let's just err on the safer side.
for prog in dmenu bluetoothctl awk cat date nl; do
if ! hash "$prog" 2>/dev/null; then