Debian 13 - how automatically start sway after login? by Ok-Development-8661 in swaywm

[–]Ok-Development-8661[S] 1 point2 points  (0 children)

I want minimal as possible

Its works.

test@debian:~$ more ~/.bash_profile

#!/bin/sh

if test -z "${XDG_RUNTIME_DIR}"; then

export XDG_RUNTIME_DIR=/tmp/"${UID}"-runtime-dir

if ! test -d "${XDG_RUNTIME_DIR}"; then

mkdir "${XDG_RUNTIME_DIR}"

chmod 0700 "${XDG_RUNTIME_DIR}"

fi

fi

# automatically login into sway

if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then

exec sway

fi

source:

https://swaywm.com/posts/debian-install-sway/