From 9ae8541b9213d1accad084baa50b18cc5508d384 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Fri, 17 Jun 2022 20:20:03 +0800 Subject: [PATCH] Bash profile now checks if IS_LAPTOP is set and launches i3 instead. --- .bash_profile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.bash_profile b/.bash_profile index 52944f7..06627d7 100644 --- a/.bash_profile +++ b/.bash_profile @@ -5,7 +5,10 @@ [[ -f ~/.bashrc ]] && . ~/.bashrc if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then - XDG_CURRENT_DESKTOP=sway exec dbus-run-session sway - exec startx + if [[ ! -z "$IS_LAPTOP" ]]; then + exec startx + else + exec start-sway.sh + fi fi