From 50e9387cc12fe48883b5e19fecccdf4d9440bf38 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Wed, 15 Sep 2021 18:31:23 -0700 Subject: [PATCH] switch to pipewire I uninstalled pulseaudio, pulseaudio-bluetooth and pulseaudio-alsa before running this. I think that is unnecessary and the pipewire-pulse package will resolve any conflicts. But who knows. For my audio needs, pipewire seems to be a drop-in replacement now. I notice no difference. Closes #95 --- roles/bluetooth/tasks/main.yml | 8 -------- roles/sound/handlers/main.yml | 2 +- roles/sound/tasks/main.yml | 25 +++---------------------- 3 files changed, 4 insertions(+), 31 deletions(-) diff --git a/roles/bluetooth/tasks/main.yml b/roles/bluetooth/tasks/main.yml index 59cb004..93636f4 100644 --- a/roles/bluetooth/tasks/main.yml +++ b/roles/bluetooth/tasks/main.yml @@ -1,12 +1,4 @@ --- -- name: Install PulseAudio bluetooth with LDAC/aptX support - pacman: - name: - - libldac - - pulseaudio-bluetooth - notify: - - restart pulse as user - - name: Install bluetooth libraries and tools pacman: name: diff --git a/roles/sound/handlers/main.yml b/roles/sound/handlers/main.yml index 7c0e8b8..7b96790 100644 --- a/roles/sound/handlers/main.yml +++ b/roles/sound/handlers/main.yml @@ -1,7 +1,7 @@ --- - name: restart pulse as user systemd: - name: pulseaudio.service + name: pipewire-pulse.service scope: user state: restarted become: yes diff --git a/roles/sound/tasks/main.yml b/roles/sound/tasks/main.yml index cf4249a..4157e69 100644 --- a/roles/sound/tasks/main.yml +++ b/roles/sound/tasks/main.yml @@ -4,34 +4,15 @@ name: alsa-utils state: present -- name: Install PulseAudio +- name: Install Pipewire pacman: name: - - pulseaudio - - pulseaudio-alsa + - pipewire + - pipewire-pulse - pavucontrol state: present -- name: Switch output to newly connected devices - lineinfile: - dest: /etc/pulse/default.pa - state: present - line: "load-module module-switch-on-connect" - - name: Install pasystray pacman: name: pasystray state: present - -- name: Install pulseaudio-ctl - aur: - name: pulseaudio-ctl - user: "{{ user.name }}" - tags: - - aur - -- name: Push pamute - copy: - src: pamute/pamute - dest: /usr/local/bin/pamute - mode: 0755