distribution/packages/wayland/compositor/sway/system.d/sway.service
2024-03-26 17:22:28 +00:00

22 lines
630 B
Desktop File

[Unit]
Description=Sway Wayland Compositor
Before=graphical.target essway.service
After=multi-user.target rocknix-automount.service
ConditionKernelCommandLine=!installer
[Service]
Environment=HOME=/storage
Environment=XDG_RUNTIME_DIR=/var/run/0-runtime-dir
Environment=WLR_BACKENDS=drm,libinput
EnvironmentFile=-/storage/.config/profile.d/095-sway
EnvironmentFile=/usr/share/sway/sway-daemon.conf
EnvironmentFile=-/run/sway/sway-daemon.conf
WorkingDirectory=/storage
ExecStartPre=-/usr/lib/sway/sway-config
ExecStart=/usr/bin/sway.sh
Restart=always
RestartSec=5
[Install]
Alias=display-manager.service
WantedBy=graphical.target