Git Product home page Git Product logo

linux-bt-headset-connect's Introduction

linux-bt-headset-connect

This tool should help keeping the connection to a Bluetooth headset alive.

It was developed and optimized for the use of

  • Ubuntu 18.04 (running on a Lenovo T580)
  • Bose SoundLink AE2

Requirements

See requirements.txt for list of requirements. Install via

pip3 install -U --user -r requirements.txt

Calling the program directly

You can call the program via

./bt-headset-connect.py

If you want the program to run until you manually cancel it, run

./bt-headset-connect.py -k True

If you want to have it available everywhere, run

git clone https://github.com/SilverJan/linux-bt-headset-connect.git ~/dev/
echo "PATH=$PATH:$HOME/dev/linux-bt-headset-connect/" >> ~/.bashrc

Running the program as a daemon / on login

TBD

Debugging

Can be one via pacmd or pactl.

TODO: Find out the difference

Sources

The Bluetoothctl class mainly comes from https://gist.github.com/castis/0b7a162995d0b465ba9c84728e60ec01.

TODOs

[ ] Check for sound output sink (e.g. Speakers / Headphone (in GUI)), see https://askubuntu.com/questions/71863/how-to-change-pulseaudio-sink-with-pacmd-set-default-sink-during-playback/72076#72076

linux-bt-headset-connect's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.