summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-12-07 19:03:32 +0100
committerRobert Günzler <r@gnzler.io>2020-12-07 19:28:05 +0100
commit0e985198269a67467a0959ddd1f66e47976fb556 (patch)
tree267f0da3bbbbe30bfdb6e9bb1d9f2072e906ec7b /bin
parenta6c32d260acbca66dbe50ca5cabd278acb3597ee (diff)
bin/soundswitch: remove pipewire special cases
works with 0.3.17
Diffstat (limited to 'bin')
-rwxr-xr-xbin/soundswitch13
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