Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles/i3.py
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/i3.py')
-rw-r--r--profiles/i3.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/profiles/i3.py b/profiles/i3.py
index e99bc549..418749c0 100644
--- a/profiles/i3.py
+++ b/profiles/i3.py
@@ -1,6 +1,6 @@
# Common package for i3, lets user select which i3 configuration they want.
-import archinstall, os
+import archinstall
is_top_level_profile = False
@@ -8,6 +8,7 @@ is_top_level_profile = False
# of the profile to get a list of "what packages will be installed".
__packages__ = ['i3lock', 'i3status', 'i3blocks', 'xterm', 'lightdm-gtk-greeter', 'lightdm', 'dmenu']
+
def _prep_function(*args, **kwargs):
"""
Magic function called by the importing installer
@@ -17,8 +18,9 @@ def _prep_function(*args, **kwargs):
"""
supported_configurations = ['i3-wm', 'i3-gaps']
- desktop = archinstall.generic_select(supported_configurations, 'Select your desired configuration: ',
- allow_empty_input=False, sort=True)
+ desktop = archinstall.generic_select(
+ supported_configurations, 'Select your desired configuration: ', allow_empty_input=False, sort=True
+ )
# Temporarily store the selected desktop profile
# in a session-safe location, since this module will get reloaded
@@ -33,6 +35,7 @@ def _prep_function(*args, **kwargs):
else:
print('Deprecated (??): xorg profile has no _prep_function() anymore')
+
if __name__ == 'i3':
"""
This "profile" is a meta-profile.
@@ -46,7 +49,7 @@ if __name__ == 'i3':
There are plenty of desktop-turn-key-solutions based on Arch Linux,
this is therefore just a helper to get started
"""
-
+
# Install common packages for all i3 configurations
archinstall.storage['installation_session'].add_additional_packages(__packages__[:4])