Files
dotfiles/zsh/.profile.d/sway-startup.sh
Fabio Scotto di Santolo 6249ebcb1f Initial commit
2025-07-25 11:02:18 +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