added statusbar signal updater

This commit is contained in:
Alexander Bocken 2020-09-30 15:33:47 +02:00
parent 1e90d0f71c
commit 115a89b5c6
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

4
bt
View File

@ -2,6 +2,9 @@
SCAN_PERIOD=5 SCAN_PERIOD=5
AUTOTRUST=false #trust every newly paired device AUTOTRUST=false #trust every newly paired device
AUTOSCAN=false #immediately start scanning when started to speed up pairing process AUTOSCAN=false #immediately start scanning when started to speed up pairing process
#If you want to update symbols in your status bar add your details below:
bar="dwmblocks"
barsignal="4"
#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
@ -102,6 +105,7 @@ poweroption="$( echo "$powerstatus" | sed 's/yes/power off/; s/no/power on/' )"
cleanup(){ cleanup(){
scan off scan off
rm /tmp/bt_start_scan$$ 2> /dev/null rm /tmp/bt_start_scan$$ 2> /dev/null
pkill -RTMIN+$barsignal $bar
exit 0 exit 0
} }