Skip to content

Instantly share code, notes, and snippets.

View dsd's full-sized avatar

Daniel Drake dsd

View GitHub Profile
@dsd
dsd / gist:3096a4ff05b59e1106c5d8b99b483006
Created August 26, 2025 07:31
systemd service to launch mutter in root session (by Gemini AI)
[Unit]
Description=Mutter Wayland Compositor with Root Shell
# This service should start after logind is ready and devices are settled.
After=systemd-logind.service systemd-udev-settle.service
[Service]
# Run the service as the root user.
User=root
# Add root to the 'video' and 'input' groups for direct hardware access.
SupplementaryGroups=video input