profile.linux: Auto-start Sway on TTY1 after login
This commit is contained in:
parent
06ff5311bd
commit
9c3db8283d
1 changed files with 15 additions and 1 deletions
|
|
@ -1 +1,15 @@
|
||||||
export XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/tmp/runtime-`id -u`}
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Make compositor behave on Alpine
|
||||||
|
if [ -z "$XDG_RUNTIME_DIR" ]; then
|
||||||
|
export XDG_RUNTIME_DIR=/tmp/runtime-$UID
|
||||||
|
mkdir -p /tmp/runtime-$UID
|
||||||
|
|
||||||
|
export XDG_SESSION_TYPE=wayland
|
||||||
|
export XDG_CURRENT_DESKTOP=sway
|
||||||
|
export LIBSEAT_BACKEND=seatd
|
||||||
|
|
||||||
|
if [ -z "$WAYLAND_DISPLAY" ] && [ "$(tty)" == '/dev/tty1' ]; then
|
||||||
|
exec dbus-run-session sway -d |& tee /tmp/sway-$UID.log
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue