Note This repository has been archived simply because I lost interest in the project as I don't use linux anymore.
Table of Contents
I had to manage my profiles using the gui tool, had to connect disconnect, and change profiles while listening to song and when i had to call, all of this needed a separate tool to implement and several commands which needed human interaction, that's exactly where this script will come in handy it reduced human interaction to the point of execution of command and put all of those things 'I USED' into one place.
To install and configure the project on your system locally, use suitable method:
-
Clone the repo
git clone https://github.com/proffapt/whapc.git
-
Make the scripts executable
cd whapc chmod +x ./whapc ./setup.sh
-
Executing the setup script
./setup.sh
Aliter: Install following dependencies according to your package manager, if the install script fails.
bluez
,libpulse
andpulseaudio
. Along with installing the above mentioned dependencies, it adds the script path into the PATH env variable (obviously after asking you.. duhh). Currently supported shell types arebash
,fish
andzsh
. -
Run the tool for first time using, and learn the usage on the go
./whapc -h
And follow as the screen instructs, i.e. add the name for bluetooth device and mac-address for it (This will be a one time task)
See the open issues for a full list of proposed features (and known issues).
-
Connecting/Disconnecting the device:
whapc connect whapc disconnect
-
Changing audio profiles:
whapc -p ad2p // music profile whapc -p hsp // headset profile whapc -p hfp // handsfree profile whapc -p off
-
Changing the state of smart-switch:
whapc -s on whapc -s off
📫 Arpit Bhardwaj ( aka proffapt ) -
Do consider looking at other paradigms of this documentation