PRIME Indicator Plus
===============
Indicator applet stolen from here: https://github.com/andrebrait/prime-indicator and updated to support gentoo based operating systems.
The required packages including nvidia-drivers will be installed automatically with the setup script. This program allows quick switching 
between the built in nvidia eGPU and the intel iGPU. 

There's currently support for the following Desktop Environments:

* Budgie
* Cinnamon
* GNOME
* KDE
* LXDE
* LXQt
* MATE
* Unity
* XFCE

In order to configure your desktop environment edit the program as follows:
nano usr/lib/prime-indicator/prime-indicator
and replace DESKTOP = "kde" with the desktop environment you're using.

All dependencies will be installed automatically when you run setup.sh.

This package is configured to be used with sddm, if you have a different desktop environment you will need to configure 
the Xstop script from sddm, found in usr/lib/sddm/scripts to run after X is shut down in your own login environment.


Troubleshooting
===============


### PRIME Indicator only shows a question mark icon
If you're using `UEFI`, try disabling `Secure Boot` as NVIDIA's proprietary driver does NOT work with `Secure Boot` enabled and it might result in neither GPU being recognized.

### The icons look awful!
I've added some icon options! Edit the config file which resides in `$HOME/.config/prime-indicator/prime-indicator.cfg` and change the option `iconset` in the `Appearance` section to one of the following options:
* `theme-default`: uses icons provided by the icon theme you're using. Falls back to the color option if none is provided (default)
* `symbolic`: attempts to color the icons based on the GTK theme the system is using (depends on the theme's configuration, might not work at all)
* `color`: full color icons (blue Intel logo and green NVIDIA logo)
* `custom(<RGB Hex Color Code>)`: allows you to determine the color the icons should have using hexadecimal RGB values in the #`RR``GG``BB` format. You can select the color you want using many different utilities such as this [HTML Color Picker](http://www.w3schools.com/colors/colors_picker.asp). Example: `custom(#bebebe)` colors the icons gray.


Installation
============
```shell
chmod a+x setup.sh
sudo ./setup.sh
```
