Skip to content

Commit

Permalink
config: change from audiochanger directory to audstopper directory
Browse files Browse the repository at this point in the history
Signed-off-by: Tomkoid <[email protected]>
  • Loading branch information
tomkoid committed May 6, 2024
1 parent a6e8733 commit 062d03e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
AudStopper
What is AudStopper?
AudStopper is a daemon that stops audio from playing when the audio output changes. It's designed to prevent audio from continuing to play when the output device is changed, such as when switching from headphones to speakers.

Installation Guide
Compiling from Source
To compile AudStopper 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, clone the AudStopper repository:

git clone https://codeberg.org/tomkoid/audstopper.git
Change into the cloned repository and run the following command to build AudStopper:

go build main.go
This will create an executable file called audstopper in the current directory.

Installing the Binary
If you don't want to compile AudStopper from source, you can download the pre-compiled binary from the releases page.

Once you've downloaded the binary, you can install it to a directory of your choice. For example, to install it to /usr/local/bin, run the following command:

sudo install audstopper /usr/local/bin
Running AudStopper
To run AudStopper, simply execute the audstopper command:

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

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

Acknowledgments
AudStopper was inspired by the Audacious audio player and its plugins. The project's code is influenced by the RPM spec file for Audacious, which can be found in the Fedora repository.

Contributing
If you'd like to contribute to AudStopper, 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.

go install codeberg.org/tomkoid/audstopper@latest
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func GetConfig() Config {
log.Fatal(err)
}

configFilePath := userConfigDir + "/audiochanger/config.toml"
configFilePath := userConfigDir + "/audstopper/config.toml"

configStr, err := readConfigFile(configFilePath)
if err != nil {
Expand Down

0 comments on commit 062d03e

Please sign in to comment.