Giter Site home page Giter Site logo

tomkoid / supershush Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 360 KB

Stop audio from playing when the audio output changes

Home Page: https://codeberg.org/tomkoid/supershush

License: MIT License

Go 81.26% Shell 13.65% Nix 5.09%
audio audio-output linux pulseaudio pulseaudio-client quiet shush silence stop unix

supershush's Introduction

Logo

SuperShush

Stop audio from playing when the audio output changes
Report Bug · Request Feature

What is SuperShush?

SuperShush is a daemon that is designed to prevent audio from continuing to play when the output device is changed, such as when switching from headphones to speakers.

Installation

To stop audio playback when the output device is changed, SuperShush requires the playerctl package if the option in the config is enabled.

From Source

To compile SuperShush from source, you'll need to have Go installed on your system. You can download the Go installer from the official Go website.

Once you have Go installed, run the following command to install SuperShush:

go install codeberg.org/tomkoid/[email protected]

Running

To run supershush, simply execute the supershush command:

supershush

This will start the SuperShush daemon, which will monitor audio output changes and stop audio playback when necessary.

Configuring

To configure SuperShush, you can edit the configuration file located at ~/.config/supershush/config.toml. Here is an example configuration file:

# Resume audio after you change output back
# WARNING: This feature is not stable yet. The current implementation has big issues.
# Example: audio is playing on audio 1 and then you switch to
#          audio 2, the audio gets paused. after you switch
#          back to audio 1, the audio gets unmuted.
resume = false

# Enable MPC pausing 
mpc = false

# Enable playerctl stopping 
playerctl = true

License

SuperShush is licensed under the MIT License. See the LICENSE file for more information.

Contributing

If you'd like to contribute to SuperShush, please fork the repository and submit a pull request with your changes. You can also report issues or suggest new features on the issue tracker.

supershush's People

Contributors

tomkoid avatar

Stargazers

 avatar

Watchers

 avatar

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.