This commit is contained in:
2025-07-02 00:07:49 -07:00
commit c208c6b35d
114 changed files with 71862 additions and 0 deletions

10
bin/audioswitch Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
CARD=$(pactl list cards short | grep '1f.3' | awk '{print $2}')
CURRENT_SINK=$(pactl info | grep "Default Sink:")
if [[ "$CURRENT_SINK" == *"iec958"* ]]; then
pactl set-card-profile $CARD output:analog-stereo
notify-send "analog out active" -i :
else
pactl set-card-profile $CARD output:iec958-stereo
notify-send "digital out active" -i :
fi