From f2d69e775953c5966dbb7e8fdf1fec216634c86f Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Sun, 28 Jun 2020 14:43:34 +0200 Subject: [PATCH] Reimplemented trust option Is enabled by default, autotrust is disabled by default --- bt | 4 ++++ 1 file changed, 4 insertions(+) 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