Skip to content

Instantly share code, notes, and snippets.

@robmsmt
Forked from NeoTheFox/gpuswitch.service
Created September 30, 2018 19:16
Show Gist options
  • Save robmsmt/20a6bc2f4b56814440edbd39b42c2f55 to your computer and use it in GitHub Desktop.
Save robmsmt/20a6bc2f4b56814440edbd39b42c2f55 to your computer and use it in GitHub Desktop.
[Unit]
Description=GPU Switcher
After=systemd-user-sessions.service plymouth-quit.service
Before=display-manager.service
[Service]
ExecStart=/usr/local/bin/autogpuswitch.sh
Restart=no
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=graphical.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment