From f5b5f67c896feb4d0cf2acb437cd7a6089a1fe28 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 17 Feb 2023 09:24:49 +0100 Subject: [PATCH] Add functions to switch between audio profiles --- dot_config/fish/private_functions/audio-onboard.fish | 4 ++++ dot_config/fish/private_functions/audio-plt-conf.fish | 5 +++++ dot_config/fish/private_functions/audio-plt-no-mic.fish | 5 +++++ 3 files changed, 14 insertions(+) create mode 100644 dot_config/fish/private_functions/audio-onboard.fish create mode 100644 dot_config/fish/private_functions/audio-plt-conf.fish create mode 100644 dot_config/fish/private_functions/audio-plt-no-mic.fish diff --git a/dot_config/fish/private_functions/audio-onboard.fish b/dot_config/fish/private_functions/audio-onboard.fish new file mode 100644 index 0000000..6644ce4 --- /dev/null +++ b/dot_config/fish/private_functions/audio-onboard.fish @@ -0,0 +1,4 @@ +function audio-onboard +pacmd set-default-sink "alsa_output.pci-0000_00_1f.3.analog-stereo" +pacmd set-default-source "alsa_input.pci-0000_00_1f.3.analog-stereo" +end diff --git a/dot_config/fish/private_functions/audio-plt-conf.fish b/dot_config/fish/private_functions/audio-plt-conf.fish new file mode 100644 index 0000000..1f362a4 --- /dev/null +++ b/dot_config/fish/private_functions/audio-plt-conf.fish @@ -0,0 +1,5 @@ +function audio-plt-conf +pacmd set-card-profile bluez_card.F4_B6_88_D4_1E_5D handsfree_head_unit +pacmd set-default-source bluez_source.F4_B6_88_D4_1E_5D.handsfree_head_unit +pacmd set-default-sink bluez_sink.F4_B6_88_D4_1E_5D.handsfree_head_unit +end diff --git a/dot_config/fish/private_functions/audio-plt-no-mic.fish b/dot_config/fish/private_functions/audio-plt-no-mic.fish new file mode 100644 index 0000000..62069fb --- /dev/null +++ b/dot_config/fish/private_functions/audio-plt-no-mic.fish @@ -0,0 +1,5 @@ +function audio-plt-no-mic +pacmd set-card-profile bluez_card.F4_B6_88_D4_1E_5D a2dp_sink +pacmd set-default-source alsa_input.pci-0000_00_1f.3.analog-stereo +pacmd set-default-sink bluez_sink.F4_B6_88_D4_1E_5D.a2dp_sink +end