dotfiles/.config/systemd/user/sway.service
surtur ef2e74ed8d
sway: start a session with systemd
* bind waybar to sway.session
* edit zprofile and sway config play nice with systemd
2021-06-11 23:35:09 +02:00

16 lines
461 B
SYSTEMD

[Unit]
Description=sway - SirCmpwn's Wayland window manager
# as per https://github.com/swaywm/sway/wiki/Systemd-integration#running-sway-itself-as-a---user-service
Documentation=man:sway(5)
BindsTo=graphical-session.target
Wants=graphical-session-pre.target
After=graphical-session-pre.target
[Service]
Type=simple
EnvironmentFile=-%h/.config/sway/env
ExecStartPre=-source %h/.zprofile
ExecStart=/usr/bin/sway
Restart=on-failure
RestartSec=2
TimeoutStopSec=10