8000 GitHub - dylanwalker/dylanbudstray: Quick-connect to your bluetooth earbuds on Windows with a click on a system tray. Built transparently with powershell.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Quick-connect to your bluetooth earbuds on Windows with a click on a system tray. Built transparently with powershell.

Notifications You must be signed in to change notification settings

dylanwalker/dylanbudstray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DylansBudTray

DylanBudsTray Screenshot

DylanBudsTray is a windows system tray to facilitate bluetooth quick connect, because I use more than one pair of earbuds on multiple devices and got sick of waiting for windows to discover all the bluetooth devices just to click on the one I want to connect. With this tool you can right click on the system tray and select which bluetooth device you want to connect.

How to Install

Just ensure you have installed bluetooth command line tools and then download the executable installer from the release page and run.

Or if you'd rather install manually

The installation consists of ensuring you have the required prerequisites, copying some files and creating a scheduled task to start the system tray on startup:

  1. Requirements:

    a) You must install bluetooth command line tools

    b) Ensure that you can run powershell scripts

  2. Copy all files from .\src into %programfiles(x86)%\DylanBudsTray

  3. Create a new task in Task Scheduler with the following:

  • Triggers

    • At startup
    • Delay task for: 10 minutes
  • Action

    • Program/Script:
      • cmd
    • Arguments:
       /c start /min "" powershell -WindowStyle Hidden -ExecutionPolicy Bypass -File "C:\Program Files (x86)\DylanBudsTray\buds_tray.ps1"
      
  • For the task General->Security opions:

    • Run only when the user is logged on
    • Run with the highest priveleges
    • Hidden

How it works

I use a powershell script buds_tray.ps1 to build the system tray from Windows Forms. There is an option to configure devices in the tray (simply opens up devices.txt from the installed folder). You can use btdiscovery -s from the command line to find the Id of the bluetooth device you want to add and name it whatever you want. A click on a device releases and then reconnects the A2DP Music service (110b) which should cause your system to reconnect to all services for that bt device (this works for all my earbud devices, but have not tested extensively). If you want other services, you can edit the lines in buds_tray.ps1 that call btcom and add whatever bluetooth service you want.

About

Quick-connect to your bluetooth earbuds on Windows with a click on a system tray. Built transparently with powershell.

Resources

Stars

Watchers

Forks

Packages

No packages published
0