How to start a bluetooth device on startup

I have KDE and need some help in having a bluetooth paired device startup on logging in to the laptop. I can manually go in and connect the device but I want it to automatically connect when I log in.
I have tried to create an autostart script but it doesn’t start.
Could be I don’t know the proper syntax to start the device.
Let me know what info you need.

[bluetoothctl]> devices
Device 08:A6:BC:52:27:F3 Echo-3MQ
Device 00:01:01:00:03:88 Esinkin BT Adapter
Device F4:4E:FD:C7:DF:E8 inateck BP2109
Device DC:2C:26:B0:85:2A Bluetooth 3.0 Mouse

I have created bluetooth-autoconnect in .config/autostart

[Desktop Entry]
Version=1.0
Type=Application
Name=bluetooth-autoconnect
Exec=bluetooth-autoconnect
Terminal=false
StartupNotify=false
Categories=Bluetooth;

edit: and installed bluetooth-autoconnect from AUR

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.