Begin implementing PipeWire option

This commit is contained in:
Dylan M. Taylor 2021-04-06 17:31:28 -04:00 committed by Dylan Taylor
parent 39e354f395
commit 9436ca7805
8 changed files with 49 additions and 2 deletions

View File

@ -0,0 +1,5 @@
import archinstall
__packages__ = ["pipewire", "pipewire-alsa", "pipewire-docs", "pipewire-jack", "pipewire-media-session", "pipewire-pulse", "gst-plugin-pipewire", "libpulse"]
installation.add_additional_packages(__packages__)

View File

@ -25,6 +25,12 @@ def _prep_function(*args, **kwargs):
# through importlib.util.spec_from_file_location("awesome", "/somewhere/awesome.py")
# or through conventional import awesome
if __name__ == 'awesome':
# Install the pipewire audio server if the user wants to use it
pipewire_choice = input("Would you like to install the pipewire audio server? [Y/n] ").lower()
if choice == "y":
pipewire = archinstall.Application(installation, 'pipewire')
pipewire.install()
# Install the application awesome from the template under /applications/
awesome = archinstall.Application(installation, 'awesome')
awesome.install()

View File

@ -22,6 +22,12 @@ def _prep_function(*args, **kwargs):
# through importlib.util.spec_from_file_location("cinnamon", "/somewhere/cinnamon.py")
# or through conventional import cinnamon
if __name__ == 'cinnamon':
# Install the pipewire audio server if the user wants to use it
pipewire_choice = input("Would you like to install the pipewire audio server? [Y/n] ").lower()
if choice == "y":
pipewire = archinstall.Application(installation, 'pipewire')
pipewire.install()
# Install dependency profiles
installation.install_profile('xorg')

View File

@ -23,13 +23,19 @@ def _prep_function(*args, **kwargs):
# through importlib.util.spec_from_file_location("gnome", "/somewhere/gnome.py")
# or through conventional import gnome
if __name__ == 'gnome':
# Install the pipewire audio server if the user wants to use it
pipewire_choice = input("Would you like to install the pipewire audio server? [Y/n] ").lower()
if choice == "y":
pipewire = archinstall.Application(installation, 'pipewire')
pipewire.install()
# Install dependency profiles
installation.install_profile('xorg')
# Install the application gnome from the template under /applications/
gnome = archinstall.Application(installation, 'gnome')
gnome.install()
installation.enable_service('gdm') # Gnome Display Manager
# We could also start it via xinitrc since we do have Xorg,
# but for gnome that's deprecated and wayland is preferred.

View File

@ -29,7 +29,13 @@ def _post_install(*args, **kwargs):
return True
if __name__ == 'i3-wm':
if __name__ == 'i3-wm':
# Install the pipewire audio server if the user wants to use it
pipewire_choice = input("Would you like to install the pipewire audio server? [Y/n] ").lower()
if choice == "y":
pipewire = archinstall.Application(installation, 'pipewire')
pipewire.install()
# Install dependency profiles
installation.install_profile('xorg')
# gaps is installed by deafult so we are overriding it here

View File

@ -29,6 +29,12 @@ def _post_install(*args, **kwargs):
return True
if __name__ == 'i3-wm':
# Install the pipewire audio server if the user wants to use it
pipewire_choice = input("Would you like to install the pipewire audio server? [Y/n] ").lower()
if choice == "y":
pipewire = archinstall.Application(installation, 'pipewire')
pipewire.install()
# Install dependency profiles
installation.install_profile('xorg')
# we are installing lightdm to auto start i3

View File

@ -32,6 +32,12 @@ def _post_install(*args, **kwargs):
# through importlib.util.spec_from_file_location("kde", "/somewhere/kde.py")
# or through conventional import kde
if __name__ == 'kde':
# Install the pipewire audio server if the user wants to use it
pipewire_choice = input("Would you like to install the pipewire audio server? [Y/n] ").lower()
if choice == "y":
pipewire = archinstall.Application(installation, 'pipewire')
pipewire.install()
# Install dependency profiles
installation.install_profile('xorg')

View File

@ -23,6 +23,12 @@ def _prep_function(*args, **kwargs):
# through importlib.util.spec_from_file_location("xfce4", "/somewhere/xfce4.py")
# or through conventional import xfce4
if __name__ == 'xfce4':
# Install the pipewire audio server if the user wants to use it
pipewire_choice = input("Would you like to install the pipewire audio server? [Y/n] ").lower()
if choice == "y":
pipewire = archinstall.Application(installation, 'pipewire')
pipewire.install()
# Install dependency profiles
installation.install_profile('xorg')