diff options
Diffstat (limited to 'bin/pulse2jack')
-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 |