diff options
author | David Runge <dave@sleepmap.de> | 2021-02-07 16:10:07 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2021-02-07 16:10:07 +0100 |
commit | f293453d9b0b1d1e090bc294966b358d8273facf (patch) | |
tree | a65ad5e565ad5e51bafe59908e2aed8813eaf426 /bin | |
parent | 08d3e6f70afa9aa239dbc55ea626067740955b9d (diff) | |
download | dotfiles-f293453d9b0b1d1e090bc294966b358d8273facf.tar.gz dotfiles-f293453d9b0b1d1e090bc294966b358d8273facf.tar.bz2 dotfiles-f293453d9b0b1d1e090bc294966b358d8273facf.tar.xz dotfiles-f293453d9b0b1d1e090bc294966b358d8273facf.zip |
pulse2jack: Cleanup
bin/pulse2jack:
Clean up script and disable unnecessary shell options.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pulse2jack | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/bin/pulse2jack b/bin/pulse2jack index b7ab947..d5aa2ef 100755 --- a/bin/pulse2jack +++ b/bin/pulse2jack @@ -1,11 +1,8 @@ #!/usr/bin/env bash -set -euo pipefail -IFS=$'\n\t' +set -eu - -function jack_module_on() -{ +jack_module_on() { echo "Enabling JACK sink and source." /usr/bin/pacmd load-module module-jack-sink channels=2 /usr/bin/pacmd load-module module-jack-source channels=2 @@ -13,8 +10,7 @@ function jack_module_on() /usr/bin/pacmd set-default-source jack_in } -function jack_module_off() -{ +jack_module_off() { echo "Disabling JACK sink and source." /usr/bin/pacmd unload-module module-jack-sink /usr/bin/pacmd unload-module module-jack-source @@ -28,5 +24,3 @@ case "$@" in jack_module_off ;; esac - -exit 0 |