Reimplemented trust option
Is enabled by default, autotrust is disabled by default
This commit is contained in:
parent
f38b841d2d
commit
f2d69e7759
4
bt
4
bt
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#wait time to discover new devices in seconds
|
#wait time to discover new devices in seconds
|
||||||
SCAN_PERIOD=5
|
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)
|
#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
|
BLACKLIST=${XDG_DATA_HOME:-$HOME/.local/share}/bt/blacklist
|
||||||
PAIRLIST=${XDG_DATA_HOME:-$HOME/.local/share}/bt/paired
|
PAIRLIST=${XDG_DATA_HOME:-$HOME/.local/share}/bt/paired
|
||||||
@ -9,6 +10,9 @@ actions="pair
|
|||||||
disconnect
|
disconnect
|
||||||
unpair"
|
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.
|
#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
|
for prog in dmenu bluetoothctl awk cat date nl; do
|
||||||
if ! hash "$prog" 2>/dev/null; then
|
if ! hash "$prog" 2>/dev/null; then
|
||||||
|
Loading…
Reference in New Issue
Block a user