Launch sway with some environment variables.

This commit is contained in:
Sheldon Lee 2022-10-08 23:26:01 +01:00
parent 0da6feaf0a
commit 9f17e55782

View File

@ -17,7 +17,8 @@ export _JAVA_AWT_WM_NONREPARENTING=1
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
if [[ ! -z "$IS_LAPTOP" ]]; then if [[ ! -z "$IS_LAPTOP" ]]; then
exec dbus-run-session sway WLR_DRM_DEVICES=/dev/dri/card1:/dev/dri/card0 dbus-run-session sway
#dbus-run-session sway
else else
exec start-sway.sh exec start-sway.sh
fi fi