index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-04-05 16:21:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-05 16:21:43 +0000 |
commit | dc522b74b92cac38446501b8bb4fefc006ffda32 (patch) | |
tree | 467a4dc7a2e820d8c47298a323a904eb9ddfd30e /profiles/i3-gaps.py | |
parent | 9959e0a29978616fa1f5a1bbaf2441f3180766b4 (diff) | |
parent | 9404dbe967beaa060101c4d53758ee308f754740 (diff) |
-rw-r--r-- | profiles/i3-gaps.py | 28 |
diff --git a/profiles/i3-gaps.py b/profiles/i3-gaps.py new file mode 100644 index 00000000..bf8227ba --- /dev/null +++ b/profiles/i3-gaps.py @@ -0,0 +1,28 @@ +import archinstall + +def _prep_function(*args, **kwargs): + """ + Magic function called by the importing installer + before continuing any further. It also avoids executing any + other code in this stage. So it's a safe way to ask the user + for more input before any other installer steps start. + """ + + # KDE requires a functioning Xorg installation. + profile = archinstall.Profile(None, 'xorg') + with profile.load_instructions(namespace='xorg.py') as imported: + if hasattr(imported, '_prep_function'): + return imported._prep_function() + else: + print('Deprecated (??): xorg profile has no _prep_function() anymore') + +if __name__ == 'i3-wm': + # Install dependency profiles + installation.install_profile('xorg') + # gaps is installed by deafult so we are overriding it here + installation.add_additional_packages("lightdm-gtk-greeter lightdm") + # install the i3 group now + i3 = archinstall.Application(installation, 'i3-gaps') + i3.install() + # Auto start lightdm for all users + installation.enable_service('lightdm') |