17 lines
430 B
Bash
17 lines
430 B
Bash
#!/bin/bash
|
|
|
|
# Ensure runtime directory exists
|
|
mkdir -p /run/wayland
|
|
chmod 0700 /run/wayland
|
|
|
|
# Set env vars for Wayland/Sway
|
|
export XDG_RUNTIME_DIR=/run/wayland
|
|
export WAYLAND_DISPLAY=wayland-1
|
|
export WLR_BACKENDS=drm,libinput
|
|
# Fallback to headless if DRM is not available (useful for testing on mac/desktop without actual DRM)
|
|
# export WLR_BACKENDS=headless
|
|
|
|
# Run sway
|
|
echo "Starting Sway..."
|
|
exec sway -d -c /etc/sway/config
|