Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dardo82/face2a4c8c9fab881982 to your computer and use it in GitHub Desktop.
Save dardo82/face2a4c8c9fab881982 to your computer and use it in GitHub Desktop.
Kodi SiO2 Big Fonts
#!/bin/sh
cd Library/Application\ Support/Kodi/addons/skin.sio2/1080i
cp Font.xml Font.xml.orig
awk -F'<|>' '{\
if($0~/<fontset id="Default">/)f=1;\
if(f==1)fs=fs"\n"$0;\
if($0~/<\/fontset>/)f=0;\
gsub(/>[0-9]+</,"\\>"$3*2"\\<",fs);\
if($0!~/<\/fonts>/)print $0;\
else fs=fs"\n"$0\
} END{gsub(/Default/,"Large",fs);\
gsub(/\\/,"",fs);print fs\
}' Font.xml.orig > Font.xml
@dardo82
Copy link
Author

dardo82 commented Jun 24, 2015

basename Kodi--Enlarge---Fonts-for-AppleTv--Interface--Completely--Automatically.sh .sh|awk '{gsub(/[a-z]+/,"",$0);gsub(/--/,"");sub(/-/," ",$0);sub(/K/,"CH",$0);sub(/$/,"!",$0);print $0}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment