diff options
Diffstat (limited to '.config/systemd/user/wsys-xorg.service')
-rw-r--r-- | .config/systemd/user/wsys-xorg.service | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.config/systemd/user/wsys-xorg.service b/.config/systemd/user/wsys-xorg.service new file mode 100644 index 0000000..a1784ed --- /dev/null +++ b/.config/systemd/user/wsys-xorg.service @@ -0,0 +1,25 @@ +# Ensure you are allowed to run X.org as a regular non-console user! + +# /etc/X11/Xwrapper.conf +# allowed_users=anybody +# needs_root_rights=yes + +[Unit] +Description=Xorg server at display :1 + +Requires=wsys-xorg.socket +After=wsys-xorg.socket +Before=wsys.target + +[Service] +Type=simple +SuccessExitStatus=0 1 + +ExecStart=/usr/bin/Xorg :1 -nolisten tcp -noreset -verbose 2 "vt1" +ExecStartPost=systemctl --user import-environment DISPLAY +ExecStartPost=systemctl --user import-environment XAUTHORITY +ExecStartPost=systemctl --user --no-block start wsys-xorg.target +ExecStartPost=systemctl --user --no-block start wsys.target + +ExecStopPre=systemctl --user stop wsys.target +ExecStopPre=systemctl --user stop wsys-xorg.target |