earbuds 0.1.6

Control your galaxy buds live via cli
earbuds-0.1.6 is not a library.

PRs ci/cd crates earbuds earbuds-git

LiveBudsCli

A cli tool to control your Galaxy buds live

Features

  • Equalizer, touchpad-lock and anc control
  • Buds status (battery, anc, current equalizer setting, ...)
  • Auto music play/pause on bud remove (via mpris)
  • Desktop notification for low battery
  • Multiple device support
  • Individual device configs
  • Json output for scripts (via jq)
  • Bash completion (for every shell)
  • Change touchpad tap action
  • Change config options from cli
  • Automatic sink switch (pulseaudio) [feature: pulse-sink, used by default]

Install

Pacman repo

You can get it precompiled from my pacman repository

AUR

yay -S earbuds

Compilation

Run following command:

cargo install earbuds

Polybar

Polybar You can display the status of your buds live 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

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

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.