dotties/.profile.linux
Andrea Rogers a7cd6a3997 profile.linux: Start Sway on tty1 on Arch, too!
The updated profile.linux also makes sure not to "exec" sway if the
"command" command cannot find it.
2024-10-15 17:57:32 -05:00

15 lines
426 B
Bash

#!/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
fi
if [ -z "$WAYLAND_DISPLAY" ] && [ "$(tty)" == '/dev/tty1' ] && command -v sway; then
exec dbus-run-session sway -d |& tee /tmp/sway-$UID.log
fi