added scripts

This commit is contained in:
CoolnsX
2021-07-01 21:23:58 +05:30
parent 4d1bf7b564
commit a0d2ace1f2
6 changed files with 73 additions and 0 deletions

19
bluetooth Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
if rfkill list bluetooth | grep -q 'yes$' ; then
sudo rfkill unblock 1
sudo rfkill unblock bluetooth
notify-send "bluetooth on"
sleep 3
notify-send "bluetooth connecting"
bluetoothctl power on
sleep 1
bluetoothctl connect FC:58:FA:C8:40:46
notify-send "bluetooth connected : Infinity Glide 120"
else
bluetoothctl disconnect FC:58:FA:C8:40:46
notify-send "bluetooth disconnected : Infinity Glide 120"
sleep 1
bluetoothctl power off
sudo rfkill block 1
notify-send "bluetooth off"
fi