Fix: wrong colors on Raspberry Pi with i3-wm — 10 July, 2015

I had a Raspberry Pi laying around I today I decided to install Arch Linux on it with a light and simple Window Manager.

I also use i3wm on my laptop so I've used the same config with only small changes, reloaded i3wm and TADA:

It was an ugly mess, I found it strange because the terminal colors were fine, the same for GUI apps, only i3 had that weird behaviour.

After some research I managed to find a solution, just add this to /boot/config.txt:

framebuffer_depth=32
framebuffer_ignore_alpha=1
framebuffer_swap=1

If you want to get some details about the problem you can read this