From c920751ff0401a86d52d99d2ad03ac865c228f6e Mon Sep 17 00:00:00 2001 From: workflow <4farlion@gmail.com> Date: Fri, 15 Nov 2024 21:01:21 +0000 Subject: [PATCH] feat(boar): add movie output --- home/i3status-rust.nix | 1 + home/scripts/scripts/sound-switcher-boar.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/home/i3status-rust.nix b/home/i3status-rust.nix index 927c584..6ff3188 100644 --- a/home/i3status-rust.nix +++ b/home/i3status-rust.nix @@ -12,6 +12,7 @@ "alsa_output.pci-0000_51_00.1.hdmi-stereo" = ""; "alsa_output.pci-0000_51_00.1.hdmi-stereo.2" = ""; "bluez_output.14_3F_A6_28_DC_51.1" = ""; + "alsa_output.pci-0000_51_00.1.hdmi-stereo-extra3" = "🍿"; "bluez_output.DC_69_E2_9A_6E_30.1" = ""; "bluez_sink.DC_69_E2_9A_6E_30.handsfree_head_unit" = ""; "bluez_input.DC:69:E2:9A:6E:30" = ""; diff --git a/home/scripts/scripts/sound-switcher-boar.sh b/home/scripts/scripts/sound-switcher-boar.sh index c0da883..e4a8d75 100644 --- a/home/scripts/scripts/sound-switcher-boar.sh +++ b/home/scripts/scripts/sound-switcher-boar.sh @@ -3,6 +3,7 @@ set -euo pipefail chosen="$(echo -e "🎧oh\n\ 🔊creative\n\ 🎧sony\n\ +🍿movie\n\  buds(listen)\n\  buds(talk)\n\ 📢boombox\n\ @@ -28,6 +29,16 @@ creative() { localmike } +movie() { + local card_name_pattern="51_00" + local sink="alsa_output.pci-0000_51_00.1.hdmi-stereo-extra3" + local card_profile="output:hdmi-stereo-extra3" + + set_default_sink "$card_name_pattern" "$sink" "$card_profile" + + localmike +} + boombox() { local card_name_pattern="04_21" local sink="bluez_sink.04_21_44_B6_92_39.a2dp_sink" @@ -139,6 +150,7 @@ case "$chosen" in 🎧oh) oh ;; 🔊creative) creative ;; 🎧sony) sony ;; +🍿movie) movie ;; " buds(listen)") budslisten ;; " buds(talk)") budstalk ;; 📢boombox) boombox ;;