Files
dotfiles/profile/.profile.d/sway-startup.sh
Fabio Scotto di Santolo c1a23dba10 Fix Mako configuration
2025-07-16 11:13:13 +02:00

10 lines
199 B
Bash
Executable File

#!/usr/bin/env bash
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
if [ -n "$DBUS_SESSION_BUS_ADDRESS" ]; then
exec sway
else
exec dbus-launch --exit-with-session sway
fi
fi