Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles/sway.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-11 07:58:29 +0000
committerGitHub <noreply@github.com>2021-04-11 07:58:29 +0000
commit0d14b4b9dc99e519818de091533ca9fb2f2d223c (patch)
tree76e88548c260ba603dcf2eb05e2e659fc12c7c07 /profiles/sway.py
parent3d659dead8cf06e71ad9c36db1abec3f22335414 (diff)
parent09f252d0315469ad699066279e04c4e3424ea967 (diff)
Merge pull request #273 from dylanmtaylor/patch-2
Restructure Graphics Driver Selection for 2.2.0
Diffstat (limited to 'profiles/sway.py')
-rw-r--r--profiles/sway.py28
1 files changed, 13 insertions, 15 deletions
diff --git a/profiles/sway.py b/profiles/sway.py
index edc3b744..10e30753 100644
--- a/profiles/sway.py
+++ b/profiles/sway.py
@@ -10,13 +10,9 @@ def _prep_function(*args, **kwargs):
for more input before any other installer steps start.
"""
- # KDE requires a functioning Xorg installation.
- profile = archinstall.Profile(None, 'wayland')
- with profile.load_instructions(namespace='wayland.py') as imported:
- if hasattr(imported, '_prep_function'):
- return imported._prep_function()
- else:
- print('Deprecated (??): wayland profile has no _prep_function() anymore')
+ __builtins__['_gfx_driver_packages'] = archinstall.lib.gfx_drivers.select_driver()
+
+ return True
def _post_install(*args, **kwargs):
choice = input("Would you like to autostart sway on login [Y/n]: ")
@@ -30,18 +26,20 @@ def _post_install(*args, **kwargs):
f.write(x)
f.close()
else:
- installation.log("to start sway run the command sway")
- installation.log("we use the default configartion shipped by arch linux, if you wish to change it you should chroot into the installation and modify it")
+ installation.log("To start Sway, run the 'sway' command after logging in.")
+
# Ensures that this code only gets executed if executed
# through importlib.util.spec_from_file_location("kde", "/somewhere/kde.py")
# or through conventional import kde
if __name__ == 'sway':
+
+ installation.add_additional_packages(_gfx_driver_packages)
+
# Install dependency profiles
if _gfx_driver_packages == 'nvidia':
- raise archinstall.lib.exceptions.HardwareIncompatibilityError("sway does not the prorpitery nvidia driver try using nouveau")
- else:
- installation.install_profile('wayland')
+ # NOTE: This is technically runnable with the --my-next-gpu-wont-be-nvidia option
+ raise archinstall.lib.exceptions.HardwareIncompatibilityError("Sway does not officially support the proprietary Nvidia driver, you may have to use nouveau.")
- # Install the application kde from the template under /applications/
- sway = archinstall.Application(installation, 'sway')
- sway.install()
+ # Install the application kde from the template under /applications/
+ sway = archinstall.Application(installation, 'sway')
+ sway.install()