feat: Add Gamescope and Sunshine configuration files and update session management

This commit is contained in:
2025-10-28 19:24:43 +01:00
parent 9fa68f3bc5
commit 7a7f2711fe
10 changed files with 139 additions and 71 deletions
@@ -1,29 +0,0 @@
[Unit]
Description=Weston Wayland compositor for user gameuser
Wants=graphical.target
Conflicts=getty@tty1.service
After=getty@tty1.service
After=rc-local.service plymouth-start.service systemd-user-sessions.service
[Service]
Slice=gamescope.slice
User=gameuser
PAMName=login
TTYPath=/dev/tty1
TTYReset=yes
TTYVHangup=yes
StandardInput=tty
StandardOutput=journal
StandardError=journal
UtmpIdentifier=tty1
UtmpMode=user
Environment=XDG_SEAT=seat0
Environment=XDG_RUNTIME_DIR=/run/user/%U
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/bus
ExecStartPre=/usr/bin/chvt 1
ExecStart=/usr/bin/bash /usr/local/bin/launch_session.sh
Restart=always
KeyringMode=shared
[Install]
WantedBy=graphical.target
@@ -1,3 +0,0 @@
[Slice]
CPUWeight=100
AllowedCPUs={{ general_cores }}
@@ -0,0 +1,10 @@
[Unit]
Description=User session service
After=graphical-session.target systemd-user-sessions.service
[Service]
ExecStart=/usr/bin/bash /usr/local/bin/launch_session.sh
Restart=on-failure
[Install]
WantedBy=default.target