blob: 5e31ad03bf7b153f3a5307fddefb1ce0584f4cf9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
ssh=htpc
ssh $ssh systemctl stop kodi
ssh $ssh pactl load-module module-udev-detect
output=$(ssh $ssh pactl list short sinks | awk '/^1/ {print $2}')
ssh $ssh pactl set-default-sink "$output"
input=$(ssh $ssh pactl list short sources | awk '/bluez/ {print $2}')
ssh $ssh pactl set-default-source "$input"
ssh $ssh systemctl start kodi
|