A feature to switch per app basis of the function keys (F1,F2 or Brightness, Volume)

This function will be similar to the Touchbar's 'Function Keys' setting in the System Preferences/Keyboard/Shorcuts. I will alway's wan't to use F1, F2, F3 key's on my stock Apple Keyboard when using VmWare and or Virtual Box or VNC etc. Similar functionality can be achieved now, but it's hard to setup, because i need to create lot's of shortcuts (F1...F12, Alt+F1...Alt+F12, Crtl+F1...Ctrl+F12, Alt+Ctrl+F1...Alt+Ctrl+F12).