Created
August 4, 2012 19:30
-
-
Save dive/3259488 to your computer and use it in GitHub Desktop.
Fix the size of avatars in the Skype conversation screen for Retina Macbook Pro screen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# by Artyom Loenko aka dive ([email protected]) | |
# Usage: | |
# - download this script | |
# - open Terminal.app | |
# - goto to Folder where script downloaded | |
# - run 'chmod +x fix_skype_conversation_icons_retina.sh' | |
# - then run './fix_skype_conversation_icons_retina.sh' | |
# - restart Skype and select PanamericanaRetina Style from Skype Settings on Messaging tab | |
if [ ! -d "${HOME}/Library/Application Support/Skype/ChatStyles" ] | |
then | |
echo "+ create ${HOME}/Library/Application Support/Skype/ChatStyles folder" | |
mkdir "${HOME}/Library/Application Support/Skype/ChatStyles" | |
fi | |
echo "+ copy Panamericana.SkypeChatStyle to Application Support" | |
cp -R \ | |
/Applications/Skype.app/Contents/Resources/ChatStyles/Panamericana.SkypeChatStyle \ | |
~/Library/Application\ Support/Skype/ChatStyles/PanamericanaRetina.SkypeChatStyle | |
echo "+ rename Panamericana to PanamericanaRetina" | |
defaults write \ | |
~/Library/Application\ Support/Skype/ChatStyles/PanamericanaRetina.SkypeChatStyle/Contents/Info.plist CFBundleIdentifier com.skype.skype.panamericanaretina.style | |
echo "+ fix conversation avatars size for Retina screen" | |
echo "<div class=\"item message in %messageStatus%\" id=\"%itemId%\"> \ | |
<div class=\"container\"> \ | |
<div class=\"head\"> \ | |
<span class=\"sender\"><span class=\"profile\" \ data-sender=\"%senderScreenName%\"></span><img src=\"%userIconPath%\" class=\"avatar\" alt=\"\" data-sender=\"%senderScreenName%\" width=\"35\" /><a href=\"%senderLinkURL%\">%sender%</a></span> \ | |
<span class=\"time\">%time%</span> \ | |
<button class=\"actions\" title=\"%tooltipActions%\"></button> \ | |
</div> \ | |
<div class=\"body\">%message%</div> \ | |
</div> \ | |
</div>" > ~/Library/Application\ Support/Skype/ChatStyles/PanamericanaRetina.SkypeChatStyle/Contents/Resources/templates/InMessage.html | |
echo "+ Done. PLEASE, RESTART YOUR SKYPE AND SELECT PanamericanaRetina FROM 'STYLE' -> 'MESSAGING' SETTINGS OF SKYPE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment