Begin implementing PipeWire option
This commit is contained in:
parent
39e354f395
commit
9436ca7805
|
|
@ -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__)
|
||||||
|
|
@ -25,6 +25,12 @@ def _prep_function(*args, **kwargs):
|
||||||
# through importlib.util.spec_from_file_location("awesome", "/somewhere/awesome.py")
|
# through importlib.util.spec_from_file_location("awesome", "/somewhere/awesome.py")
|
||||||
# or through conventional import awesome
|
# or through conventional import awesome
|
||||||
if __name__ == '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/
|
# Install the application awesome from the template under /applications/
|
||||||
awesome = archinstall.Application(installation, 'awesome')
|
awesome = archinstall.Application(installation, 'awesome')
|
||||||
awesome.install()
|
awesome.install()
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,12 @@ def _prep_function(*args, **kwargs):
|
||||||
# through importlib.util.spec_from_file_location("cinnamon", "/somewhere/cinnamon.py")
|
# through importlib.util.spec_from_file_location("cinnamon", "/somewhere/cinnamon.py")
|
||||||
# or through conventional import cinnamon
|
# or through conventional import cinnamon
|
||||||
if __name__ == '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
|
# Install dependency profiles
|
||||||
installation.install_profile('xorg')
|
installation.install_profile('xorg')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,13 +23,19 @@ def _prep_function(*args, **kwargs):
|
||||||
# through importlib.util.spec_from_file_location("gnome", "/somewhere/gnome.py")
|
# through importlib.util.spec_from_file_location("gnome", "/somewhere/gnome.py")
|
||||||
# or through conventional import gnome
|
# or through conventional import gnome
|
||||||
if __name__ == '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
|
# Install dependency profiles
|
||||||
installation.install_profile('xorg')
|
installation.install_profile('xorg')
|
||||||
|
|
||||||
# Install the application gnome from the template under /applications/
|
# Install the application gnome from the template under /applications/
|
||||||
gnome = archinstall.Application(installation, 'gnome')
|
gnome = archinstall.Application(installation, 'gnome')
|
||||||
gnome.install()
|
gnome.install()
|
||||||
|
|
||||||
installation.enable_service('gdm') # Gnome Display Manager
|
installation.enable_service('gdm') # Gnome Display Manager
|
||||||
# We could also start it via xinitrc since we do have Xorg,
|
# We could also start it via xinitrc since we do have Xorg,
|
||||||
# but for gnome that's deprecated and wayland is preferred.
|
# but for gnome that's deprecated and wayland is preferred.
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,13 @@ def _post_install(*args, **kwargs):
|
||||||
|
|
||||||
return True
|
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
|
# Install dependency profiles
|
||||||
installation.install_profile('xorg')
|
installation.install_profile('xorg')
|
||||||
# gaps is installed by deafult so we are overriding it here
|
# gaps is installed by deafult so we are overriding it here
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@ def _post_install(*args, **kwargs):
|
||||||
return True
|
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
|
# Install dependency profiles
|
||||||
installation.install_profile('xorg')
|
installation.install_profile('xorg')
|
||||||
# we are installing lightdm to auto start i3
|
# we are installing lightdm to auto start i3
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,12 @@ def _post_install(*args, **kwargs):
|
||||||
# through importlib.util.spec_from_file_location("kde", "/somewhere/kde.py")
|
# through importlib.util.spec_from_file_location("kde", "/somewhere/kde.py")
|
||||||
# or through conventional import kde
|
# or through conventional import kde
|
||||||
if __name__ == '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
|
# Install dependency profiles
|
||||||
installation.install_profile('xorg')
|
installation.install_profile('xorg')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,12 @@ def _prep_function(*args, **kwargs):
|
||||||
# through importlib.util.spec_from_file_location("xfce4", "/somewhere/xfce4.py")
|
# through importlib.util.spec_from_file_location("xfce4", "/somewhere/xfce4.py")
|
||||||
# or through conventional import xfce4
|
# or through conventional import xfce4
|
||||||
if __name__ == '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
|
# Install dependency profiles
|
||||||
installation.install_profile('xorg')
|
installation.install_profile('xorg')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue