# How to switch colors using keyboard shortcuts in GIMP

colorsgimp

I'm making screencasts (like the ones on Khan Academy) with GIMP as a virtual blackboard.

Right now, switching foreground colors is a bit of a hassle–I have to move my pen over to the palette in my toolbox, click on a color, then move my pen back over to the image window. This takes time, especially when switching colors rapidly.

How can I assign keyboard shortcuts to colors in my palette, so I can access them easier?

In my case (which brought me to your question) D for resetting and X for swapping colors is sufficient. Combined with O you can maybe set up some nice workarounds.