# Contents of /etc/systemd/system/myservice.service [Unit] Description=sway Documentation=man::sway(5) OnFailure=getty@tty1.service Conflicts=getty@tty1.service After=graphical.target [Service] User=user ExecStart=/usr/bin/sway WorkingDirectory=~ TTYPath=/dev/tty1 PAMName=login TTYReset=yes TTYVHangup=yes TTYVTDiallocate=yes [Install] WantedBy=graphical.target