Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles/awesome.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-08-20 19:47:39 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-08-20 19:47:39 +0000
commitf6f5875892e4ec6978323026b5f7819ddce1bb83 (patch)
treeb71535281671592f7966ab0f24812a9bc34558b4 /profiles/awesome.py
parent056b800c8eb42c4112dce54bd1a7336d52ead2ab (diff)
Added a unattended installer. Fixed list_profiles() to not include .py ending in the profile name, it's already in the ['path'] defintion. Renamed desktop.py to awesome.py as it more accurately describes what's being installed. desktop should be reserved to a default desktop environment that's more new-user-friendly.
Diffstat (limited to 'profiles/awesome.py')
-rw-r--r--profiles/awesome.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/profiles/awesome.py b/profiles/awesome.py
new file mode 100644
index 00000000..67e4fd25
--- /dev/null
+++ b/profiles/awesome.py
@@ -0,0 +1,27 @@
+# A desktop environemtn using "Awesome" window manager.
+
+import archinstall
+
+arguments = {
+ 'keyboard_layout' : 'sv-latin1',
+ "editor" : "nano",
+ "mediaplayer" : "lollypop gstreamer gst-plugins-good gnome-keyring",
+ "filebrowser" : "nemo gpicview-gtk3",
+ "webbrowser" : "chromium",
+ "window_manager" : "awesome",
+ "virtulization" : "qemu ovmf",
+ "utils" : "openssh sshfs git htop pkgfile scrot dhclient wget smbclient cifs-utils libu2f-host",
+ "audio" : "pulseaudio pulseaudio-alsa pavucontrol"
+}
+
+installation.add_additional_packages("{webbrowser} {utils} {mediaplayer} {window_manager} {virtulization} {filebrowser} {editor}".format(**arguments))
+
+with open(f'{installation.mountpoint}/etc/X11/xinit/xinitrc', 'a') as X11:
+ X11.write('setxkbmap se\n')
+
+with open(f'{installation.mountpoint}/etc/vconsole.conf', 'a') as vconsole:
+ vconsole.write('KEYMAP={keyboard_layout}\n'.format(**arguments))
+ vconsole.write('FONT=lat9w-16\n')
+
+awesome = archinstall.Application(installation, 'awesome')
+awesome.install() \ No newline at end of file