add toggle Adio script
This commit is contained in:
parent
254e3714b3
commit
153bbb387a
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
|
||||||
|
dp="alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2"
|
||||||
|
headphone="alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo"
|
||||||
|
|
||||||
|
current="$(pactl get-default-sink)"
|
||||||
|
|
||||||
|
if [ "$current" = $headphone ]; then
|
||||||
|
pactl set-default-sink $dp
|
||||||
|
else
|
||||||
|
pactl set-default-sink $headphone
|
||||||
|
fi
|
Loading…
Reference in New Issue