Adding in audio switch script. - dotfiles - These are my dotfiles. There are many like it, but these are mine.
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit d126ee79f48342fa56ee99e8a709ca976460b08b
 (DIR) parent 0390da675eaad582a0a8dd59589dd8a2cbf5c3c7
 (HTM) Author: Jay Scott <me@jay.scot>
       Date:   Sun,  6 Oct 2024 11:33:58 +0100
       
       Adding in audio switch script.
       
       Diffstat:
         D bin/old/switch_audio.sh             |       7 -------
         A bin/switch_audio                    |       7 +++++++
       
       2 files changed, 7 insertions(+), 7 deletions(-)
       ---
 (DIR) diff --git a/bin/old/switch_audio.sh b/bin/old/switch_audio.sh
       @@ -1,7 +0,0 @@
       -#!/bin/sh
       -
       -if ! [ "$(pactl get-default-sink)" = "alsa_output.pci-0000_27_00.1.hdmi-stereo" ]; then
       -        pactl set-default-sink "alsa_output.pci-0000_27_00.1.hdmi-stereo"
       -else
       -        pactl set-default-sink "alsa_output.usb-KTMicro_KT_USB_Audio_2020-02-20-0000-0000-0000--00.analog-stereo"
       -fi
 (DIR) diff --git a/bin/switch_audio b/bin/switch_audio
       @@ -0,0 +1,7 @@
       +#!/bin/sh
       +
       +if ! [ "$(pactl get-default-sink)" = "alsa_output.pci-0000_00_1f.3.hdmi-stereo" ]; then
       +        pactl set-default-sink "alsa_output.pci-0000_00_1f.3.hdmi-stereo"
       +else
       +        pactl set-default-sink "alsa_output.usb-KTMicro_KT_USB_Audio_2020-02-20-0000-0000-0000--00.analog-stereo"
       +fi