I am writing in order not to forget, and in the future I will use it, I hope someone will also be useful. I was puzzled to replace skype pop-ups with standard ubuntovskie notifications, it hurts my eyes. There is a task, there is a desire to solve it. As it turned out, the solution is quite simple. And so, the solution.
On a Ubuntu 9.10 laptop, the repository and Skype itself are taken from Ubuntu Tweak. Creating the notes themselves turned out to be a simple matter, here’s an example of the command:
notify-send "Hello world!"
To make notify-send appear, install libnotify-bin:
sudo aptitude install libnotify-bin
Skype has a notification setting. Select an event, for example, "Message received." Click the “More Settings” button, disable the “Display pop-up notification” checkbox, and in the “Run the following script” line we write:
')
notify-send "%sname: %smessage" -i skype
The variables% sname and% smessage will be replaced in the notification with the contact's name and message, respectively. Additional parameter
-i skype instructs the system to set the application icon in the notification window, in this case, the Skype icon.
"File transfer request" can be issued in a similar way:
notify-send "%sname %fname (%fsize)" -i skype
In fact, everything is simple and clear, you should edit the necessary events and configure the notify-send parameters.
Below is a list of available variables in the row for events.
Global options:% type - event type
% sskype - Skype contact name (where applicable)
% sname - the display name of the contact (where applicable)
Chat messages:% smessage - the actual message text
File transfer:% fpath - file path
% fname - file name
% fsize - file size (in bytes)
% fprogress - download status (in bytes)
% fspeed - download speed (bytes per second)
UPD: Thanks
shlyapa . It is more sympathetic to divide the note into the header (displayed in bold) and the message:
notify-send "%sname" "%smessage" -i skype
Link to an article on my blog
Setting up pop-up messages in Skype for Linux