Using Adium's emoticons in Licq
This step-by-step guide will show you how you can use emoticons themes from Adium Xtras in Licq.
- First, create a directory to do all work in (e.g. ~/adium). This makes it easier to clean up afterwards (the tarballs contain some extra Mac OS X stuff that we don't want).
- Download emoticons_xml-from-Emoticons_plist.xsl and save it in ~/adium.
- Head over to Adium Xtras emoticons section and download the theme you're interested in. Save this in ~/adium as well. We'll use the Adiumy Emoticons as an example.
- Now it's just a question of unpacking the theme, converting the Emoticons.plist to a format that Licq understands and then moving the files to a directory where Licq will find them. The commands below will show you how all this is done.
~/adium$ ls adiumy_emoticons_2_5016_3012.zip emoticons_xml-from-Emoticons_plist.xsl ~/adium$ unzip adiumy_emoticons_2_5016_3012.zip ~/adium$ mv Adiumy.AdiumEmoticonset Adiumy ~/adium$ cd Adiumy ~/adium/Adiumy$ xsltproc -o emoticons.xml ../emoticons_xml-from-Emoticons_plist.xsl Emoticons.plist ~/adium/Adiumy$ rm -f .DS_Store Emoticons.plist ~/adium/Adiumy$ cd .. ~/adium$ mkdir -p ~/.licq/qt-gui/emoticons ~/adium$ mv Adiumy ~/.licq/qt-gui/emoticons/ ~/adium$ cd .. && rm -rf adium
Now, had the emoticons been in png-format (or jpeg or gif), you would have been done now. But since Adiumy is in tiff-format, two more steps are needed: converting the images to png and updating emoticons.xml.
~/.licq/qt-gui/emoticons/Adiumy$ for f in *.tiff; do convert $f `basename $f .tiff`.png; done ~/.licq/qt-gui/emoticons/Adiumy$ rm -f *.tiff ~/.licq/qt-gui/emoticons/Adiumy$ sed -i 's/.tiff/.png/g' emoticons.xml
Done!
Note 1: If you want the theme to be accessible for all users on your machine, and not just you, move the directory to ${prefix}/share/licq/qt-gui/emoticons/ instead (${prefix} is e.g. /usr).
Note 2: xsltproc is a part of libxslt and convert is part of ImageMagick.
Note 3: If you use kde-gui from Debian you need to replace qt-gui with kde-gui in the above commands.
