aboutsummaryrefslogtreecommitdiff
path: root/.config/systemd/user/wsys-xorg.service
blob: a1784ed9a574524df21109e7b64d60e4049c222f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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