Some work on Scripts
notable changes: - rename `bt-connect` to `bt_connect` - rename `music` to `media` and make it generic instead of checking Spotify - make separate script to set background to a preset black image - make all shebangs "#!/usr/bin/env sh"
This commit is contained in:
4
Scripts/.local/scripts/bt_connect
Executable file
4
Scripts/.local/scripts/bt_connect
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
choice=$(bluetoothctl devices | sed 's/Device \([A-Z0-9:]*\) \(.*\)/\2\t\1/g' | dmenu -i -p "Device: " | sed 's/.*\t//')
|
||||
[ ! -z $choice ] && bluetoothctl connect $choice
|
||||
Reference in New Issue
Block a user