mirror of
https://github.com/pigmonkey/spark.git
synced 2026-07-24 00:20:07 +00:00
install pulseaudio
Existing users will want to remove the old udev rule for device
switching, and the /etc/asound.conf file it generated.
# rm /etc/udev/rules.d/00-local.rules
# rm /etc/asound.conf
A new /etc/asound.conf is provided by the pulseaudio-alsa package. If
our old file is not removed prior to installation, the new file will be
installed at /etc/asound.conf.pacnew. This will need to be moved to the
proper location.
This commit is contained in:
parent
f37266f7f0
commit
bee218efb9
1 changed files with 9 additions and 4 deletions
|
|
@ -2,8 +2,13 @@
|
|||
- name: Install alsa-utils
|
||||
pacman: name=alsa-utils state=present
|
||||
|
||||
- name: Copy udev rule for USB audio device switching
|
||||
copy: src=udev.rules dest=/etc/udev/rules.d/00-local.rules
|
||||
- name: Install PulseAudio
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- pulseaudio
|
||||
- pulseaudio-alsa
|
||||
|
||||
- name: Push volume control script
|
||||
copy: src=volume.sh dest=/usr/local/bin/volume mode=0755
|
||||
- name: Switch output to newly connected devices
|
||||
lineinfile: dest=/etc/pulse/default.pa
|
||||
state=present
|
||||
line=load-module module-switch-on-connect
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue