Config files to make everyday life easier...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nvidia.sh 237B

1234567891011121314
  1. function nvidia {
  2. case "${1^^}" in
  3. "OFF")
  4. pkexec tee /proc/acpi/bbswitch <<< OFF
  5. ;;
  6. "ON")
  7. pkexec tee /proc/acpi/bbswitch <<< ON
  8. ;;
  9. *)
  10. printf "\nTo enable or disable your discrete GPU, use ON or OFF."
  11. ;;
  12. esac
  13. }