diff --git a/bt b/bt index 186f8f5..4fb1562 100755 --- a/bt +++ b/bt @@ -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