bspwm and sxhkd

This commit is contained in:
Debucquoy
2023-11-11 16:26:39 +01:00
parent 73a022bfe6
commit ed81ad21b8
5 changed files with 26 additions and 12 deletions

12
bin/.bin/btSelector Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/sh
scan_first=$(echo -e "yes\nno" | dmenu -l 2)
if [[ ${scan_first} = 'yes' ]]; then
bluetoothctl scan on &
sleep 10 && kill $!
fi
device=$(bluetoothctl devices | dmenu -i -l 15 | cut -d ' ' -f 2)
bluetoothctl connect ${device}