Added profile script for start Sway session from tty
This commit is contained in:
9
profile/.profile.d/sway-startup.sh
Executable file
9
profile/.profile.d/sway-startup.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
|
||||
if [ -n "$DBUS_SESSION_BUS_ADDRESS" ]; then
|
||||
exec sway
|
||||
else
|
||||
exec dbus-launch sway
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user