aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2025-10-01 23:01:17 +0100
committerBlake Romero <blake@blkrom.com>2025-10-01 23:01:17 +0100
commitea8daabbd122c59e08122b7e8246d7df9fd07fd5 (patch)
tree36e91e1ce75eb5123c51e8ab6dc6749c00482cc7
parentadbe51a41ab7e9b61ff6fffb17be4ab8b7cc06d2 (diff)
Auto start sway on login
-rwxr-xr-xdot-profile5
1 files changed, 5 insertions, 0 deletions
diff --git a/dot-profile b/dot-profile
index 050b24f..fcf834b 100755
--- a/dot-profile
+++ b/dot-profile
@@ -61,3 +61,8 @@ fi
# GUI THEMES
export QT_QPA_PLATFORMTHEME=gtk3
+# START SWAY
+if [ -z $DISPLAY ] && [ $(tty) = /dev/tty1 ]; then
+ export XDG_CURRENT_DESKTOP=sway
+ dbus-run-session sway
+fi