Skip to content

Instantly share code, notes, and snippets.

@Ethorbit
Created June 13, 2023 04:55
Show Gist options
  • Save Ethorbit/56db18f9490fa1e13c6ed258402158e1 to your computer and use it in GitHub Desktop.
Save Ethorbit/56db18f9490fa1e13c6ed258402158e1 to your computer and use it in GitHub Desktop.
Systemd service to set the default Steam Deck desktop session
[Unit]
Description=Forces gamescope to be the desktop session on boot
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'grep gamescope /etc/sddm.conf.d/zz-steamos-autologin.conf || sudo -u deck /usr/sbin/steamos-session-select gamescope'
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment