Skip to content

Commit

Permalink
feat(boar): add movie output
Browse files Browse the repository at this point in the history
  • Loading branch information
workflow committed Nov 15, 2024
1 parent d7887c6 commit c920751
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions home/i3status-rust.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" = "";
Expand Down
12 changes: 12 additions & 0 deletions home/scripts/scripts/sound-switcher-boar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand All @@ -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"
Expand Down Expand Up @@ -139,6 +150,7 @@ case "$chosen" in
🎧oh) oh ;;
🔊creative) creative ;;
🎧sony) sony ;;
🍿movie) movie ;;
" buds(listen)") budslisten ;;
" buds(talk)") budstalk ;;
📢boombox) boombox ;;
Expand Down

0 comments on commit c920751

Please sign in to comment.