tool high top pi
This commit is contained in:
+3
-3
@@ -3,7 +3,7 @@ set -e # faiulure is not tolerated here
|
|||||||
## easy to add ids~
|
## easy to add ids~
|
||||||
### CO:1C:6A is phone in bt pair mode
|
### CO:1C:6A is phone in bt pair mode
|
||||||
### 71:D9:79 is com,mon for testyin
|
### 71:D9:79 is com,mon for testyin
|
||||||
vendor_ids=('71:D9:79' '00:25:DF' '00:58:28' '00:C0:D4' '84:70:03')
|
vendor_ids=('1C' '71:D9:79' '00:25:DF' '00:58:28' '00:C0:D4' '84:70:03')
|
||||||
webhook_file="/home/princesspi/.discord_url"
|
webhook_file="/home/princesspi/.discord_url"
|
||||||
tag_file="/home/princesspi/.discord_tag"
|
tag_file="/home/princesspi/.discord_tag"
|
||||||
username="[DЯΣΛMMΛKΣЯ]"
|
username="[DЯΣΛMMΛKΣЯ]"
|
||||||
@@ -21,7 +21,7 @@ send_discord_webhook() {
|
|||||||
|
|
||||||
while true; do #infinite loop
|
while true; do #infinite loop
|
||||||
# scan for those vendor ids
|
# scan for those vendor ids
|
||||||
blescan=$(bluetoothctl -t 60 scan on | awk '{print $3}' | grep "${vendor_ids[@]/#/-e }")
|
blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep -q ${vendor_ids[@]/#/-e }")
|
||||||
if [ -n "$blescan" ]; then
|
if [ -n "$blescan" ]; then
|
||||||
# LE detected poweroff to cryptdisk and notify
|
# LE detected poweroff to cryptdisk and notify
|
||||||
# alert spammmm
|
# alert spammmm
|
||||||
@@ -30,7 +30,7 @@ while true; do #infinite loop
|
|||||||
done
|
done
|
||||||
# cryptsetup erase <device> # ion case you wanna nuke ur shit lmao
|
# cryptsetup erase <device> # ion case you wanna nuke ur shit lmao
|
||||||
## these options are powerful, silent, fast, aND RIsky
|
## these options are powerful, silent, fast, aND RIsky
|
||||||
poweroff --poweroff --force --no-wall # --no-sync
|
# poweroff --poweroff --force --no-wall # --no-sync
|
||||||
sleep 1
|
sleep 1
|
||||||
else
|
else
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|||||||
Reference in New Issue
Block a user