keyboard shortcut to change system settings

Hi, does anyone know how can I create a keyboard shortcut that will change some system settings. Like I'd like to change the toggle for the F keys to function as F keys and switch a couple of the modifier keys around in system settings with a single keyboard shortcut. Is this possible? Thanks.

I'm also wondering about this, ever find a solution?

Great solution for automatically switching the FN keys: