Skip to content

Commit

Permalink
feat(sound): add galaxy buds FE
Browse files Browse the repository at this point in the history
  • Loading branch information
workflow committed Dec 9, 2024
1 parent b81509d commit f40e7c4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
5 changes: 4 additions & 1 deletion home/i3status-rust.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@
"alsa_output.usb-Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH84440324JKLTA7-00.analog-stereo" = "";
"bluez_output.14_3F_A6_28_DC_51.1" = "";
"bluez_output.DC_69_E2_9A_6E_30.1" = "";
"bluez_output.34_E3_FB_C5_01_E0.1" = "";
"bluez_sink.DC_69_E2_9A_6E_30.handsfree_head_unit" = "";
"bluez_input.DC:69:E2:9A:6E:30" = "";
"bluez_sink.34_E3_FB_C5_01_E0.handsfree_head_unit" = "";
"bluez_input.DC_69_E2_9A_6E_30" = "";
"bluez_input_internal.34_E3_FB_C5_01_E0.0" = "";
"bluez_sink.04_21_44_B6_92_39.a2dp_sink" = "";
"alsa_input.usb-Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH84440324JKLTA7-00.mono-fallback" = "";
"alsa_input.pci-0000_00_1f.3-platform-sof_sdw.HiFi___ucm0003.hw_sofsoundwire_4__source" = "";
Expand Down
32 changes: 32 additions & 0 deletions home/scripts/scripts/sound-switcher-flexbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ chosen="$(echo -e "🔌local\n\
🎧oh(localmic)
🎧🎙️oh(ohmic)
🎧sony\n\
 budsFE(listen)\n\
 budsFE(talk)\n\
 buds(listen)\n\
 buds(talk)\n\
📢boombox\n\
Expand Down Expand Up @@ -77,6 +79,26 @@ boombox() {
localmike
}

budsfelisten() {
local card_name_pattern="34_E3"
local sink="bluez_output.34_E3_FB_C5_01_E0.1"
local card_profile="a2dp-sink-sbc"

set_default_sink "$card_name_pattern" "$sink" "$card_profile"

localmike
}

budsfetalk() {
local card_name_pattern="34_E3"
local sink="bluez_output.34_E3_FB_C5_01_E0.1"
local card_profile="headset-head-unit-msbc"

set_default_sink "$card_name_pattern" "$sink" "$card_profile"

budsfemike
}

budslisten() {
local card_name_pattern="DC_69"
local sink="bluez_output.DC_69_E2_9A_6E_30.1"
Expand Down Expand Up @@ -151,6 +173,14 @@ ohmike() {
set_default_source "$card_name_pattern" "$source" "$card_profile"
}

budsfemike() {
local card_name_pattern="34_E3"
local source="bluez_input_internal.34_E3_FB_C5_01_E0.0"
local card_profile="headset-head-unit-msbc"

set_default_source "$card_name_pattern" "$source" "$card_profile"
}

budsmike() {
local card_name_pattern="DC_69"
local source="bluez_input.DC:69:E2:9A:6E:30"
Expand Down Expand Up @@ -202,6 +232,8 @@ case "$chosen" in
"🎧oh(localmic)") ohlocalmic ;;
"🎧🎙️oh(ohmic)") ohohmic ;;
🎧sony) ohohmic ;;
" budsFE(listen)") budsfelisten ;;
" budsFE(talk)") budsfetalk ;;
" buds(listen)") budslisten ;;
" buds(talk)") budstalk ;;
📢boombox) boombox ;;
Expand Down

0 comments on commit f40e7c4

Please sign in to comment.