Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles/xorg.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-09-30 12:31:47 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-09-30 12:31:47 +0000
commit534679e88f0b9db9d2550de73197f521494a3274 (patch)
tree90cc368ce9d7f576f5475f9a2a4e96b83de9d63e /profiles/xorg.py
parent7f7cb6b89b38f32beb411e112001e3230aa972ed (diff)
Added gnome as a profile (and application for application specific steps). Also tweaked xorg to not be so intrusive when used for anything other than awesome WM. Tweaked awesome WM to accomodate this change.
Diffstat (limited to 'profiles/xorg.py')
-rw-r--r--profiles/xorg.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/profiles/xorg.py b/profiles/xorg.py
index 38492c5c..1cba7a81 100644
--- a/profiles/xorg.py
+++ b/profiles/xorg.py
@@ -93,13 +93,19 @@ def _prep_function(*args, **kwargs):
__builtins__['_gfx_driver_packages'] = select_driver(AVAILABLE_DRIVERS)
+ # TODO: Add language section and/or merge it with the locale selected
+ # earlier in for instance guided.py installer.
+
return True
# Ensures that this code only gets executed if executed
# through importlib.util.spec_from_file_location("xorg", "/somewhere/xorg.py")
# or through conventional import xorg
if __name__ == 'xorg':
- installation.add_additional_packages("xorg-server xorg-xinit")
+ try:
+ installation.add_additional_packages(f"xorg-server xorg-xinit {' '.join(_gfx_driver_packages)}")
+ except:
+ installation.add_additional_packages(f"xorg-server xorg-xinit") # Prep didn't run, so there's no driver to install
# with open(f'{installation.mountpoint}/etc/X11/xinit/xinitrc', 'a') as X11:
# X11.write('setxkbmap se\n')