Skip to content

Feature Request: Command Line Interface (CLI) for Automation and Keybinds #15

Description

@Jorrit-Verstappen

Hi,

First off, a huge thank you for your work on this fork.
It's an incredibly useful tool for interacting with my Sony earbuds (WF-1000XM5) without having to connect to my phone to alter settings.

I would like to propose a feature that I believe would greatly enhance its utility for many power users: a 'simple' Command Line Interface (CLI).

The "Why" - The Use Case:

The primary motivation for a CLI is to enable automation and scripting. By exposing core functions (like toggling ANC) as simple command-line calls, users could integrate their headphone controls directly into their desktop workflows.

A concrete use case for me would be, being able to automatically toggle ambient mode whenever I hit the pause/resume button for music.

From a user's perspective, the interface could be as straightforward as:

# Set the ANC mode
sony-cli --set-anc-mode ambient

# Get the current battery level
sony-cli --get-battery

This functionality would make the tool not just a client, but a powerful automation framework for Sony headphones.

Thank you for your consideration and for all your hard work on this project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions