Files
dotfiles/zsh/.profile.d/runwm.sh
Fabio Scotto di Santolo 21abf469cb Fix Sway script launcher
2025-08-27 15:47:59 +02:00

10 lines
224 B
Bash
Executable File

#!/usr/bin/env bash
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
if [ -n "$DBUS_SESSION_BUS_ADDRESS" ]; then
exec dbus-run-session sway
else
echo "Cannot found dbus session: Sway don't work"
fi
fi