From b602bab527f3c728b97eb37b6e4c398c5efcea7b Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 1 Mar 2020 09:27:41 +0100 Subject: [PATCH] systemd: quirks for Guybrush --- systemd/graphical-session@.target | 1 + systemd/quirks-guybrush.service | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 systemd/quirks-guybrush.service diff --git a/systemd/graphical-session@.target b/systemd/graphical-session@.target index 31a2f11..7781fe3 100644 --- a/systemd/graphical-session@.target +++ b/systemd/graphical-session@.target @@ -14,3 +14,4 @@ Wants=xiccd@%i.service Wants=xsettingsd@%i.service Wants=xss-lock@%i.service Wants=tmux.service +Wants=quirks-guybrush.service diff --git a/systemd/quirks-guybrush.service b/systemd/quirks-guybrush.service new file mode 100644 index 0000000..d4279e1 --- /dev/null +++ b/systemd/quirks-guybrush.service @@ -0,0 +1,10 @@ +[Unit] +Description=Apply quirks for Guybrush +ConditionHost=guybrush +After=pulseaudio.service + +[Service] +Type=oneshot +RemainAfterExit=false +ExecStart=/usr/bin/pactl load-module module-alsa-source device=hw:0,7 channels=4 +ExecStart=/usr/bin/pactl load-module module-alsa-sink device=hw:0,0 channels=4