Update set_audio_sink and dhk

This commit is contained in:
Roland Thomas Jr 2024-03-18 17:53:49 -04:00
parent a8b85f5bb9
commit cba8a15157
Signed by: roland
GPG Key ID: 7C3C2B085A4C2872
2 changed files with 2 additions and 4 deletions

View File

@ -62,7 +62,6 @@ class TabbedWindow(QMainWindow):
lines = file.readlines() lines = file.readlines()
length = len(lines) length = len(lines)
# Add the numbers 1-100 to the layout
column = 0 column = 0
row = 0 row = 0
switch = False switch = False
@ -100,7 +99,7 @@ class TabbedWindow(QMainWindow):
column -= 1 column -= 1
continue continue
else: else:
label = QLabel(lines[i].strip()) label = QLabel(lines[i].strip().lstrip("+").strip())
layout1.addWidget(label, row, column) layout1.addWidget(label, row, column)
row += 1 row += 1
@ -122,7 +121,6 @@ class TabbedWindow(QMainWindow):
lines = file.readlines() lines = file.readlines()
length = len(lines) length = len(lines)
# Add the numbers 101-200 to the layout
column = 0 column = 0
row = 0 row = 0
for i in range(length): for i in range(length):

View File

@ -10,7 +10,7 @@ if [ "$DISPLAY" = ":0" ]; then
# if ! pactl set-default-sink alsa_output.0.hdmi-stereo; then # if ! pactl set-default-sink alsa_output.0.hdmi-stereo; then
# pactl set-default-sink alsa_output.1.hdmi-stereo # pactl set-default-sink alsa_output.1.hdmi-stereo
# fi # fi
pactl set-default-sink alsa_output.2.analog-stereo pactl set-default-sink alsa_output.1.analog-stereo
echo "$DISPLAY set audio" echo "$DISPLAY set audio"
elif [ "$DISPLAY" = ":10.0" ]; then elif [ "$DISPLAY" = ":10.0" ]; then
pactl set-default-sink xrdp-sink pactl set-default-sink xrdp-sink