summary refs log tree commit diff
path: root/bin/hibiki/soundswitch
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-01-29 17:54:12 +0100
committerRobert Günzler <r@gnzler.io>2020-01-29 17:56:55 +0100
commit48e82a9a7437fdad28b566c850fce8c79ac1e477 (patch)
treee38c5b0eed4685adab0ce9698791395e8733a6c5 /bin/hibiki/soundswitch
parentea3a79d71a6432c58bc26738ff929d1f774aecf0 (diff)
bin: Replace soundswitch_dmenu fully with soundswitch
Diffstat (limited to 'bin/hibiki/soundswitch')
-rwxr-xr-xbin/hibiki/soundswitch41
1 files changed, 0 insertions, 41 deletions
diff --git a/bin/hibiki/soundswitch b/bin/hibiki/soundswitch
deleted file mode 100755
index 9ba73c9..0000000
--- a/bin/hibiki/soundswitch
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-set -ex
-
-global=
-focused=
-profile=
-
-while getopts fgp: name; do
-	case $name in
-		g) global=1 ;;
-		f) focused=1 ;;
-		p) profile=1 ;;
-		?) printf "usage: %s [-gf]\n" "$0" >&2; exit 2 ;;
-	esac
-done
-
-if [ "$#" -lt 1 ]; then
-	printf "global\nfocused\nprofile\n" | menu | {
-		read -r line
-		case "${line}" in
-			global) exec "$0" -g ;;
-			focused) exec "$0" -f ;;
-			profile) exec "$0" -p ;;
-		esac
-	}
-fi
-
-if [ -n "${global}" ]; then
-	pactl list short sinks | awk '{print $2}' | menu | xargs pactl set-default-sink
-	exit 0
-fi
-
-if [ -n "${focused}" ]; then
-	printf "not implemented\n" >&2
-	exit 1
-fi
-
-if [ -n "${profile}" ]; then
-	printf "not implemented\n" >&2
-	exit 1
-fi