1
0
mirror of https://github.com/gjkcz/ansible-void.git synced 2025-11-30 22:00:27 +01:00

Add sound support with PipeWire

This commit is contained in:
2023-05-01 18:15:29 +02:00
parent 0cc1da08f0
commit b15337e2ae
3 changed files with 329 additions and 0 deletions

View File

@@ -183,6 +183,44 @@
notify: Update dconf database
- name: PipeWire
hosts: all
tasks:
- name: Install PipeWire
community.general.xbps:
name:
- pipewire
- wireplumber
state: present
- name: Ensure configuration directories exist
file:
path: '/etc/pipewire/pipewire.conf.d/'
state: directory
- name: Copy PipeWire configuration
copy:
src: '{{ item.src }}'
dest: '{{ item.dest }}'
loop:
- src: 'files/pipewire/pipewire.conf'
dest: '/etc/pipewire/pipewire.conf'
- src: 'files/pipewire/10-wireplumber.conf'
dest: '/etc/pipewire/pipewire.conf.d/10-wireplumber.conf'
- name: Symlink PipeWire to autostart
file:
src: '{{ item.src }}'
dest: '{{ item.dest }}'
state: link
loop:
- src: '/usr/share/applications/pipewire.desktop'
dest: '/etc/xdg/autostart/pipewire.desktop'
- src: '/usr/share/applications/pipewire-pulse.desktop'
dest: '/etc/xdg/autostart/pipewire-pulse.desktop'
- name: GRUB
hosts: all