Skip to content

Commit dac90ff

Browse files
committed
build-x86-images.sh: switch to pipewire on non-base images
closes #301
1 parent 4e1edcf commit dac90ff

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

build-x86-images.sh

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,26 @@ cleanup() {
3636
rm -r "$INCLUDEDIR"
3737
}
3838

39+
setup_pipewire() {
40+
PKGS="$PKGS pipewire alsa-pipewire"
41+
mkdir -p "$INCLUDEDIR"/etc/xdg/autostart
42+
ln -s /usr/share/applications/pipewire.desktop "$INCLUDEDIR"/etc/xdg/autostart/
43+
mkdir -p "$INCLUDEDIR"/etc/pipewire/pipewire.conf.d
44+
ln -s /usr/share/examples/wireplumber/10-wireplumber.conf "$INCLUDEDIR"/etc/pipewire/pipewire.conf.d/
45+
ln -s /usr/share/examples/pipewire/20-pipewire-pulse.conf "$INCLUDEDIR"/etc/pipewire/pipewire.conf.d/
46+
mkdir -p "$INCLUDEDIR"/etc/alsa/conf.d
47+
ln -s /usr/share/alsa/alsa.conf.d/50-pipewire.conf "$INCLUDEDIR"/etc/alsa/conf.d
48+
ln -s /usr/share/alsa/alsa.conf.d/99-pipewire-default.conf "$INCLUDEDIR"/etc/alsa/conf.d
49+
}
50+
3951
build_variant() {
4052
variant="$1"
4153
shift
4254
IMG=void-live-${ARCH}-${DATE}-${variant}.iso
4355
GRUB_PKGS="grub-i386-efi grub-x86_64-efi"
4456
A11Y_PKGS="espeakup void-live-audio brltty"
4557
PKGS="dialog cryptsetup lvm2 mdadm void-docs-browse xtools-minimal xmirror $A11Y_PKGS $GRUB_PKGS"
46-
XORG_PKGS="xorg-minimal xorg-input-drivers xorg-video-drivers setxkbmap xauth font-misc-misc terminus-font dejavu-fonts-ttf alsa-plugins-pulseaudio"
58+
XORG_PKGS="xorg-minimal xorg-input-drivers xorg-video-drivers setxkbmap xauth font-misc-misc terminus-font dejavu-fonts-ttf"
4759
SERVICES="sshd"
4860

4961
LIGHTDM_SESSION=''
@@ -58,7 +70,7 @@ build_variant() {
5870
LIGHTDM_SESSION=enlightenment
5971
;;
6072
xfce)
61-
PKGS="$PKGS $XORG_PKGS lightdm lightdm-gtk3-greeter xfce4 gnome-themes-standard gnome-keyring network-manager-applet gvfs-afc gvfs-mtp gvfs-smb udisks2 firefox"
73+
PKGS="$PKGS $XORG_PKGS lightdm lightdm-gtk3-greeter xfce4 gnome-themes-standard gnome-keyring network-manager-applet gvfs-afc gvfs-mtp gvfs-smb udisks2 firefox xfce4-pulseaudio-plugin"
6274
SERVICES="$SERVICES dbus elogind lightdm NetworkManager polkitd"
6375
LIGHTDM_SESSION=xfce
6476
;;
@@ -100,6 +112,10 @@ build_variant() {
100112
echo "$LIGHTDM_SESSION" > "$INCLUDEDIR"/etc/lightdm/.session
101113
fi
102114

115+
if [ "$variant" != base ]; then
116+
setup_pipewire
117+
fi
118+
103119
./mklive.sh -a "$ARCH" -o "$IMG" -p "$PKGS" -S "$SERVICES" -I "$INCLUDEDIR" ${REPO} "$@"
104120
}
105121

0 commit comments

Comments
 (0)