Being notified whether a contact appears online/offline or not can be changed via the Skype Options or via the ~/.skype/your_skype_id/config.xml
. In this file, depending on what you chose, on can find the following lines:
<Notify>
<Chat>0</Chat>
<Offline>1</Offline>
<Online>1</Online>
</Notify>
where <Offline>n</Offline>
(resp. <Online>n</Online>
) corresponds to the "Contact came offline" (resp. "Contact came online") option and where n
obviously states whether it's on or not.
Thus my question is the following: Can one toggle the notifications on/off automatically?
It's important to note that Offline
and Online
appear only once on the XML
file.
So far all I can do is:
sed -i config.xml -e '197s!<Online>1</Online>!<Online>0</Online>!'
where 197
is the line number (which is case dependant, so it's pretty bad), and where I don't check the existing status of the notification, I only turn it off.
In short, what I would like to do is to change 0
to 1
(or 1
to 0
) automatically to both lines.