plugfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

gfxswitch (272B)


      1 #!/bin/sh
      2 # Nick Farrow 2020
      3 
      4 STAT=$(optimus-manager --print-mode 2>/dev/null | grep mode | tr " " \\n | tail -1)
      5 [ "$STAT" != "nvidia" ] && CHANGETO="nvidia" || CHANGETO="intel"
      6 echo "Switching from $STAT to $CHANGETO..."
      7 
      8 optimus-manager --switch $CHANGETO --no-confirm