diff --git a/main/postmarketos-ui-sway/60-lightdm-autologin.conf b/main/postmarketos-ui-sway/60-lightdm-autologin.conf new file mode 100644 index 000000000..23e90345b --- /dev/null +++ b/main/postmarketos-ui-sway/60-lightdm-autologin.conf @@ -0,0 +1,5 @@ +# This file gets removed with postmarketos-ui-sway, even if modified! +[Seat:*] +autologin-user=username +autologin-user-timeout=0 +autologin-session=sway diff --git a/main/postmarketos-ui-sway/APKBUILD b/main/postmarketos-ui-sway/APKBUILD new file mode 100644 index 000000000..e01791e32 --- /dev/null +++ b/main/postmarketos-ui-sway/APKBUILD @@ -0,0 +1,24 @@ +# Contributor: Danct12 +# Contributor: Asriel Dreemurr +# Maintainer: Danct12 +pkgname=postmarketos-ui-sway +pkgver=1 +pkgrel=0 +pkgdesc="(Wayland) Tiling WM, drop-in replacement for i3wm (DOES NOT RUN WITHOUT HW ACCELERATION!)" +url="https://postmarketos.org" +arch="noarch" +license="MIT" +depends="dbus sway swaylock swayidle xorg-server-xwayland postmarketos-artwork-wallpapers + rxvt-unicode mesa-dri-swrast xorg-server lightdm lightdm-gtk-greeter elogind" +install="$pkgname.post-install" +source="60-lightdm-autologin.conf postmarketos_background" +options="!check" # no testsuite + +package() { + install -Dm644 "$srcdir"/60-lightdm-autologin.conf \ + "$pkgdir"/usr/share/lightdm/lightdm.conf.d/60-autologin.conf + install -Dm644 "$srcdir"/postmarketos_background \ + "$pkgdir"/etc/sway/config.d/postmarketos_background +} +sha512sums="5cf8c2e04ec1e1f7a330a3c81f82bc8c9eff4af0b61fb1b4f4a3b2f00fd0f149ab4e517ba38b4be97b22b6316c20861977e99548a9ecf0d89d81faf916c4e714 60-lightdm-autologin.conf +1a70c9a0709d4474317b75ad4929673509a1198e4b95378f8dd02f795b2585ad296b409f06c66d4375c5b6732643f86d04a5220a32de794f464b9375af8487ec postmarketos_background" diff --git a/main/postmarketos-ui-sway/postmarketos-ui-sway.post-install b/main/postmarketos-ui-sway/postmarketos-ui-sway.post-install new file mode 100644 index 000000000..a7791b1e4 --- /dev/null +++ b/main/postmarketos-ui-sway/postmarketos-ui-sway.post-install @@ -0,0 +1,5 @@ +#!/bin/sh + +sed -i "s/username/$(getent passwd 10000 | cut -d: -f1)/g" /usr/share/lightdm/lightdm.conf.d/60-autologin.conf + +rc-update add lightdm default diff --git a/main/postmarketos-ui-sway/postmarketos-ui-sway.post-upgrade b/main/postmarketos-ui-sway/postmarketos-ui-sway.post-upgrade new file mode 100644 index 000000000..a7791b1e4 --- /dev/null +++ b/main/postmarketos-ui-sway/postmarketos-ui-sway.post-upgrade @@ -0,0 +1,5 @@ +#!/bin/sh + +sed -i "s/username/$(getent passwd 10000 | cut -d: -f1)/g" /usr/share/lightdm/lightdm.conf.d/60-autologin.conf + +rc-update add lightdm default diff --git a/main/postmarketos-ui-sway/postmarketos_background b/main/postmarketos-ui-sway/postmarketos_background new file mode 100644 index 000000000..edc287f58 --- /dev/null +++ b/main/postmarketos-ui-sway/postmarketos_background @@ -0,0 +1,2 @@ +# Default postmarketOS background (aka branding) +output * bg /usr/share/wallpapers/postmarketos.jpg fill