diff options
| -rwxr-xr-x | bin/soundswitch | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/bin/soundswitch b/bin/soundswitch index 52c6bc2..3f893c6 100755 --- a/bin/soundswitch +++ b/bin/soundswitch @@ -8,7 +8,7 @@ set -e [ -n "$DEBUG" ] && set -x # check requirements -for tool in jq swq pactl perl pw-pulse; do +for tool in jq swq pactl perl; do if ! command -v "$tool" >/dev/null; then printf "%s: %s not installed but required\n" "$(basename "$0")" "$tool" >&2 exit 1 @@ -82,9 +82,6 @@ if [ -z "$mode" ]; then exit $? fi -# [ "$mode" = "global" ] && args="-g" -# [ "$mode" = "focused" ] && args="-f" - if [ -n "$mode" ]; then # ask target? if [ -z "$output" ] && [ -z "$input" ]; then @@ -99,14 +96,6 @@ if [ -n "$mode" ]; then fi fi -# [ -n "$output" ] && args="-O $args" -# [ -n "$input" ] && args="-I $args" - -# if ! pactl info >&2 2>/dev/null; then -# # try to work with pipewire -# exec pw-pulse "$0" $_args -# fi - # process quick actions first [ -n "$output" ] && [ -n "$mute" ] && exec pactl set-sink-mute '@DEFAULT_SINK@' toggle [ -n "$input" ] && [ -n "$mute" ] && exec pactl set-source-mute '@DEFAULT_SINK@' toggle |