Git Product home page Git Product logo

livebudscli's Introduction

PRs ci/cd crates earbuds earbuds-git

LiveBudsCli

A free cli tool to control your Galaxy buds live, Galaxy Buds+, Galaxy Buds Pro, Galaxy Buds 2 and Galaxy Buds 2 Pro

Note: This requires your buds to be up to date. Buds with old firmware aren't supported


Features

  • Equalizer, touchpad-lock and anc/ambient sound control
  • Basic Buds status (battery, anc/ambient sound, current equalizer setting, ...)
  • Changing touchpad tap action
  • Advanced status informations (battery voltage/current, temperature)
  • Auto music play/pause on bud remove (via mpris)
  • Automatic sink switch (pulseaudio) [feature: pulse-sink, used by default]
  • Desktop notifications (for low battery)
  • Bash completion (for every shell)
  • Connect/Disconnect your earbuds easily with a subcommand
  • Multiple device support
  • Individual device configs
  • Json output for scripts (via jq)
  • Change config options from cli

Install

AUR

yay -S earbuds

Compilation

Requirements (make depends)

Arch: bluez-libs libpulse dbus
Fedora: dbus-devel bluez-libs-devel

Run following command:

cargo install earbuds

Polybar

Polybar
You can display the status of your buds in your polybar with this script
To achieve this, you have to add following to your polybar config and move the script into your polybar script folder. Don't forget to add buds to the modules section.

[module/buds]
type = custom/script
interval = 8
label = %output%
exec = ~/.config/polybar/scripts/polybar.sh
click-middle = earbuds toggle anc
click-right = earbuds toggle touchpadlock

Usage

To get most of the features listed above, you need to have a daemon instance running (earbuds -d). If you run one of the commands listed below, the daemon automatically gets started.

Status informations:

earbuds status

Set equalizer to Bass boost

earbuds set equalizer bass

Enable ANC

earbuds enable anc

Change ambient sound

earbuds set ambientsound <0-4> # 0: off 4: highest

Toggle noise reduction or the touchpad lock

earbuds toggle anc/touchpad

Get status in json format

earbuds status -o json

Set the left touchpad tap command to spotify

earbuds set tap-action spotify left

Connect/disconnect:

earbuds connect/disconnect

To debug the daemon run:

earbuds -k -d --no-fork

This kills the currently running daemon, creates a new one and starts it in the foreground.

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.