blob: 8b910c13a0436f574332a8cb16781d2bf4810b5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
CARD=$(pactl list cards short | grep '1f.3' | awk '{print $2}')
CURRENT_SINK=$(pactl info | grep "Default Sink:")
dunstctl close-all
case $CURRENT_SINK in
*iec958*)
pactl set-card-profile $CARD output:analog-stereo
notify-send "analog out active" -i :
;;
*)
pactl set-card-profile $CARD output:iec958-stereo
notify-send "digital out active" -i :
;;
esac
|