Skip to content
Snippets Groups Projects
Unverified Commit 91ef9040 authored by Dang Huynh's avatar Dang Huynh
Browse files

main/postmarketos-ui-sway: new aport - new user interface

parent 94d5efbc
No related branches found
No related tags found
No related merge requests found
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="GPL3+"
depends="consolekit sway swaylock swayidle xorg-server-xwayland"
makedepends=""
install="$pkgname.post-install"
subpackages=""
source="start_sway.sh"
options="!check"
package() {
install -Dm644 "$srcdir"/start_sway.sh \
"$pkgdir"/etc/profile.d/start_sway.sh
}
sha512sums="e09d20db93e50b7027577195c3388dd4ea72f172f158ad2a3b4ed28bcab64bff09964ec4b3d3bca1681927a3cc60d2432992e4fb4ba16d9d1741a74e56430cdf start_sway.sh"
#!/bin/sh
# Autologin on tty1, let busybox autoconfigure 2-6
autologin="$(getent passwd 10000 | cut -d ":" -f 1)"
for i in 1 2 3 4 5 6; do
old="^tty$i::respawn:/sbin/getty 38400 tty$i"
new="# tty$i::respawn:/sbin/getty 38400 tty$i"
[ "$i" == "1" ] && new="tty1::respawn:/bin/login -f $autologin"
sed -i -e "s.$old.$new.g" /etc/inittab
done
if test -z "${XDG_RUNTIME_DIR}"; then
export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
if ! test -d "${XDG_RUNTIME_DIR}"; then
mkdir "${XDG_RUNTIME_DIR}"
chmod 0700 "${XDG_RUNTIME_DIR}"
fi
if [ $(tty) = "/dev/tty1" ]; then
udevadm trigger
udevadm settle
sleep 2
dbus-run-session ck-launch-session sway 2>&1 | logger -t "$(whoami):sway"
fi
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment