Is there a way to configure Empathy so that when a new IM arrives I can open it using a keyboard shortcut rather than having to click the envelope icon of the Indicator Applet?
Is there a way to configure Empathy so that when a new IM arrives I can open it using a keyboard shortcut rather than having to click the envelope icon of the Indicator Applet?
It isn't exactly what you want, but in Empathy there is an unfortunately-labelled box in preferences: “Display incoming events in the notification area.”
Make sure that isn't checked and new messages will open right away in the background.
This answer to another Empathy question might meet your needs.
The solution I ended up using is as follows:
N.B.: The options name may differ as my actual version is not in english.
You can do it using the xdotool package.
sudo apt-get install xdotool
Open a new bash script called
messaging.sh
, and paste the following code into it.Save it, mark it as executable (you can do this in the file properties).
All it really does is move the mouse on top of the icon, click the icon, and move the mouse back where it was. I have it bound to F11 and so far it's great.
Important: the number
951
inside the script depends on the resolution and will not work on your monitor. It is thex
coordinate of the messaging menu icon in your screen, you have to tweak it until it works.I think the default shortcut for the messaging menu is Super+M (Super = Windows-key).
There is at least one Compiz extension that uses that shortcut too. In that case you have to remove that shortcut in Compiz, and then restart the indicator-applet (e.g. log out & back in).