From cba8a151571565c3f52daaf7f4f04f9292816355 Mon Sep 17 00:00:00 2001 From: Roland Thomas Date: Mon, 18 Mar 2024 17:53:49 -0400 Subject: [PATCH] Update set_audio_sink and dhk --- .config/qtile/dhk | 4 +--- .local/bin/set_audio_sink | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.config/qtile/dhk b/.config/qtile/dhk index 0872d46..b2589ff 100755 --- a/.config/qtile/dhk +++ b/.config/qtile/dhk @@ -62,7 +62,6 @@ class TabbedWindow(QMainWindow): lines = file.readlines() length = len(lines) - # Add the numbers 1-100 to the layout column = 0 row = 0 switch = False @@ -100,7 +99,7 @@ class TabbedWindow(QMainWindow): column -= 1 continue else: - label = QLabel(lines[i].strip()) + label = QLabel(lines[i].strip().lstrip("+").strip()) layout1.addWidget(label, row, column) row += 1 @@ -122,7 +121,6 @@ class TabbedWindow(QMainWindow): lines = file.readlines() length = len(lines) - # Add the numbers 101-200 to the layout column = 0 row = 0 for i in range(length): diff --git a/.local/bin/set_audio_sink b/.local/bin/set_audio_sink index 4f5f322..e16c8c9 100755 --- a/.local/bin/set_audio_sink +++ b/.local/bin/set_audio_sink @@ -10,7 +10,7 @@ if [ "$DISPLAY" = ":0" ]; then # if ! pactl set-default-sink alsa_output.0.hdmi-stereo; then # pactl set-default-sink alsa_output.1.hdmi-stereo # fi - pactl set-default-sink alsa_output.2.analog-stereo + pactl set-default-sink alsa_output.1.analog-stereo echo "$DISPLAY set audio" elif [ "$DISPLAY" = ":10.0" ]; then pactl set-default-sink xrdp-sink