I think I have not written that I have moved to wicd from network manager. It looks much simpler and more efficient.
I want to bring my empathy when network is connected. This is how I have done it:
1. create /usr/bin/runEmpathy as:
sudo -u smirzai /usr/bin/empathy -h &
2. Add this line in related section for desired wireless in file /etc/wicd/wireless-setting.conf:
afterscript = /usr/bin/runEmpathy