dots


commit
98b9686
parent
11462a6
author
xxwhirlpool
date
2026-03-04 19:01:37 -0500 EST
finally scripted bluetooth audio profile stuff
2 files changed,  +29, -2
M config/.local/bin/stripexif
+2, -2
 1@@ -1,11 +1,11 @@
 2 #!/usr/bin/env bash
 3 
 4-if ! test -x "$(command -v exiftool)"; then
 5+if [[ ! "$(command -v exiftool)" ]]; then
 6 	echo "missing required dependency: exiftool"
 7 	exit 1
 8 fi
 9 
10-if [ $# -eq 0 ]; then
11+if [[ $# -eq 0 ]]; then
12 	echo "Usage: stripexif [FILENAME]"
13 	exit 1
14 else
A config/.local/bin/switchbluez
+27, -0
 1@@ -0,0 +1,27 @@
 2+#!/usr/bin/env bash
 3+#
 4+# borrowed from some AI slop:
 5+# https://gist.github.com/sanskar10100/fa2eb78bcf431cec28dde509dd797288
 6+
 7+device_name=$(pactl list cards | grep -B 20 "device.form_factor = \"headset\"" | grep "Name" | awk '{print $2}')
 8+
 9+goodaudio() {
10+	pactl set-card-profile "$device_name" a2dp-sink-sbc_xq
11+	echo "switched to SBC-XQ"
12+}
13+
14+micaudio() {
15+	pactl set-card-profile "$device_name" headset-head-unit-msbc
16+	echo "switched to mSBC"
17+}
18+
19+choice() {
20+	choose=$(gum choose "listen" "mic")
21+	case "$choose" in
22+		*listen) goodaudio ;;
23+		*mic) micaudio ;;
24+		*) exit 1;;
25+	esac
26+}
27+
28+choice