Pulseaudio switch audio device


/ Published in: Bash
Save to your folder(s)

This script is mean to be associated with a keyboard shortcut , his purpose is to switch from internal output to hdmi output. It also switch output for all source (meaning all software currently outputing sound).

you can modify :
notify_show : 1 to show , 0 to not show
notify_delay : the time to show the notification in ms
hdmi_card_num : the number of your hdmi card , this can be found using "pacmd list-sinks" and looking to the index number corresponding to the hdmi sink

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.