6 lines
242 B
Bash
Executable file
6 lines
242 B
Bash
Executable file
#!/bin/bash
|
|
|
|
CARD=$(pactl list cards short | head -n 1 | awk '{print $2}')
|
|
pactl set-card-profile $CARD output:hdmi-stereo+input:analog-stereo
|
|
HDMISINK=$(pactl list sinks short | grep hdmi | awk '{print $2}')
|
|
pactl set-default-sink $HDMISINK
|