hook on output change
Hi,
I have another sound card for my external monitor and I'd like to change my default output sink when switching from one monitor to the other:
echo set-default-sink 0 | pacmd (laptop) echo set-default-sink 3 | pacmd (ext. monitor)
What I need is a hook where I can issue these commands when I change to a workspace which is on the other monitor. Is this possible (4.5.1)?
Best regards
Actually my commands are wrong but the should be issued on **output** change. The correct command is 'move-sink-input index sink-index'. Sink 0 is my laptop and sink 3 is my monitor.