From 4103c2d849619e73839d47178f6a4fd407706a6f Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Wed, 4 Jun 2025 22:45:17 +0300 Subject: [PATCH] Autostart sway on login --- .profile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.profile b/.profile index 891292f..6894bf2 100644 --- a/.profile +++ b/.profile @@ -34,3 +34,6 @@ export BORG_REPO="/media/backup/" export BORG_PASSCOMMAND="cat ${HOME}/.keys/borg-passphrase.txt" export PYTHON_KEYRING_BACKEND="keyring.backends.null.Keyring" . "$HOME/.cargo/env" + +# If running from tty1 start sway inside a tmux session +[ "$(tty)" = "/dev/tty1" ] && exec tmux new-session "sway --unsupported-gpu"