Files
dotfiles/zsh/.profile.d/sway-startup.sh
Fabio Scotto di Santolo 122528e763 Merge profile and ZSH packages
2025-07-18 14:33:59 +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