Shortcut to connect to Bluetooth Device

prismavoid08

New Member
Joined
Jan 10, 2020
Messages
1
Reaction score
0
Credits
0
I am trying to add shortcuts to the panel in Linux Mint that will automatically connect to my Bluetooth mouse and headphones. I figured out how to connect to them through the command line using bluetoothctl, but it requires first entering the bluetoothctl interface then executing a command within that. How do I do this with a single command in order to make it into a shortcut?

Code for connecting
device:~$ bluetoothctl [bluetooth]# connect XX:XX:XX:XX:XX:XX
 


Hello @prismavoid08
Why not write a script, including all necessary commands and execute it?
You can also add it to your /usr/bin directory and run it as a program.
 

Members online


Latest posts

Top