Bash profile now checks if IS_LAPTOP is set and launches i3 instead.

This commit is contained in:
Sheldon Lee 2022-06-17 20:20:03 +08:00
parent 7ce14fea34
commit 9ae8541b92

View File

@ -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