Add sway session user units
This commit is contained in:
parent
22b2135b86
commit
32e278a857
11
.config/systemd/user/sway-session.target
Normal file
11
.config/systemd/user/sway-session.target
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Sway compositor session
|
||||||
|
Documentation=man:systemd.special
|
||||||
|
RefuseManualStart=yes
|
||||||
|
StopWhenUnneeded=yes
|
||||||
|
BindsTo=graphical-session.target
|
||||||
|
Wants=graphical-session-pre.target
|
||||||
|
After=graphical-session-pre.target
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical-session.target
|
@ -1,11 +1,18 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Sway window manager
|
Description=sway - SirCmpwn's Wayland window manager
|
||||||
|
Documentation=man:sway(5)
|
||||||
|
BindsTo=sway-session.target
|
||||||
|
Before=sway-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Type=notify
|
||||||
|
EnvironmentFile=-%h/.config/sway/env
|
||||||
ExecStart=/usr/bin/sway
|
ExecStart=/usr/bin/sway
|
||||||
Restart=always
|
Restart=on-failure
|
||||||
RestartSec=10
|
RestartSec=1
|
||||||
|
TimeoutStopSec=10
|
||||||
|
NotifyAccess=all
|
||||||
|
ExecStopPost=/usr/bin/systemctl --user unset-environment SWAYSOCK DISPLAY I3SOCK WAYLAND_DISPLAY
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=wm.target
|
WantedBy=sway-session.target
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user