Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.
/ whapc Public archive

Small utility which saves your work by combining various tools and processes into one single script

License

Notifications You must be signed in to change notification settings

proffapt/whapc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Note This repository has been archived simply because I lost interest in the project as I don't use linux anymore.

WHAPC - Wireless Headset Audio Profile Controller

Contributors Forks Stargazers Issues MIT License LinkedIn

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contact

About The Project

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.

(back to top)

Built With

(back to top)

Getting Started

To install and configure the project on your system locally, use suitable method:

Installation

  1. Clone the repo

    git clone https://github.com/proffapt/whapc.git
  2. Make the scripts executable

    cd whapc 
    chmod +x ./whapc ./setup.sh
  3. Executing the setup script

    ./setup.sh

    Aliter: Install following dependencies according to your package manager, if the install script fails. bluez, libpulse and pulseaudio. 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 are bash, fish and zsh.

  4. 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)

(back to top)

See the open issues for a full list of proposed features (and known issues).

(back to top)

Usage

  1. Connecting/Disconnecting the device:

    whapc connect
    whapc disconnect
  2. Changing audio profiles:

    whapc -p ad2p // music profile
    whapc -p hsp // headset profile
    whapc -p hfp // handsfree profile
    whapc -p off 
  3. Changing the state of smart-switch:

    whapc -s on
    whapc -s off

(back to top)

Contact

📫 Arpit Bhardwaj ( aka proffapt ) - proffapt's Twitter proffapt's Telegram proffapt's LinkedIn proffapt's mail proffapt's forum for cybernity

(back to top)

Acknowledgments

(back to top)

Miscelleneous

Do consider looking at other paradigms of this documentation