what you need sounds like the bumblebee package. Bumblebee basically decides which graphics card to use if you tell bumblebee to decide for you. 
How to install: (detailed guide, please CAREFULLY read)
https://wiki.archlinux.org/index.php/Bumblebee
Installation overview and explanation:
Install the needed packages via your package manager:
- assuming you are on a 64bit-system and want to run 32-bit
applications (not exclusively, but also). If not, you do not need to install any of the packages beginning with 
lib32 so called mutilib packages. 
- Be aware that you might need to add mutilib sources for you package manager in order to be able to download them (depending on your package manager). 
 
pacman is a package manager, yours could be e.g. apt or yum etc. 
pacman -S bumblebee mesa mesa-demos xf86-video-intel lib32-virtualgl lib32-nvidia-utils lib32-mesa-libgl
Be aware of:
- Do NOT install 
nvidia-libgl this might cause a blackscreen or worse at startup! 
- Do NOT run the 
nvidia X server settings application and not nvidia-xconfig
- If you do so the X will fail at 
target graphical interface reached 
- Here's how to resolve this issue: 
mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak 
- reason: xorg.conf is not needed for the default intel card.
 
 
After installation:
- Activate the bumblebee daemon via 
sudo systemctl enable bumblebeed.service (Mind the d at the end!) 
sudo reboot now 
Usage example:
optirun <your application>
although in most cases primusrun is preferable:
primusrun <your application>
The reason is it avoids some of optiruns overhead and thus is more performant.
To check the status of bumblebee while running:
optirun --status
It should say something like: Bumblebee status: Ready (3.2.1). X is PID 26489, 1 applications using bumblebeed.
Anomaly: it seems depending on which linux kernel you use, switching off the nvidia-card again might prove a hard thing to do. Shouldnt bother you though except if power-consumption is crucial, then you gotta reboot.
Please ask if you have any questions or can contribute to improve this answer.