aboutsummaryrefslogtreecommitdiff
path: root/.config/systemd/user/wsys-xorg.service
diff options
context:
space:
mode:
Diffstat (limited to '.config/systemd/user/wsys-xorg.service')
-rw-r--r--.config/systemd/user/wsys-xorg.service20
1 files changed, 20 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..8c7a43a
--- /dev/null
+++ b/.config/systemd/user/wsys-xorg.service
@@ -0,0 +1,20 @@
+# 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 :0
+
+Requires=wsys-xorg.socket
+After=wsys-xorg.socket
+Before=wsys.target
+
+[Service]
+Type=simple
+SuccessExitStatus=0 1
+
+ExecStart=/usr/bin/Xorg :0 -nolisten tcp -noreset -verbose 2 "vt1"
+ExecStartPost=systemctl --user import-environment DISPLAY
+ExecStartPost=systemctl --user import-environment XAUTHORITY