Added profile script for start Sway session from tty

This commit is contained in:
Fabio Scotto di Santolo
2025-07-15 22:01:47 +02:00
parent ec06f7538b
commit c9345f9140
13 changed files with 11 additions and 1 deletions

View 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