daemon that buzzes when you switch the keyboard layout :)

I'm new to C ++, but I want to write a daemon that runs mp3 file and buzzing when I switch the language.
What should I read?
In order to do it.
for Fedora
xxkb changes icon when you change language in xorg.
Get it's source and modify. Let it not change icon but play mp3.
Topic archived. No new replies allowed.