Files
dotfiles/zsh/.profile.d/runwm.sh
Fabio Scotto di Santolo 3bce5ef841 Cleanup ZSH config
2025-08-18 22:20:47 +02:00

10 lines
239 B
Bash
Executable File

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