#! /bin/bash
function wait
{
sleep 10
}
function monitor
{
xset q | grep -q "Monitor is On"
}
while true
do
while monitor
do
wait
done
while ! monitor
do
wait
done
pactl set-card-profile 0 output:hdmi-stereo
done
Jester