Subversion Repositories My Stuff

Compare Revisions

Ignore whitespace Rev 4 → Rev 5

/trunk/Bash/117383-gentoo-start-icon.svg
0,0 → 1,388
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
 
<svg
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.0"
width="128"
height="128"
id="svg2250">
<defs
id="defs2252">
<radialGradient
cx="66.136703"
cy="0.75440001"
r="81.971497"
id="XMLID_25_"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.9459,0,0,1,1051.1319,-330.17143)">
<stop
id="stop95"
style="stop-color:#ffffff;stop-opacity:1"
offset="0.1302" />
<stop
id="stop97"
style="stop-color:#ffffff;stop-opacity:0.16862746"
offset="0.5" />
</radialGradient>
<filter
x="-0.29221493"
y="-0.057434313"
width="1.5844299"
height="1.1148686"
color-interpolation-filters="sRGB"
id="filter4446">
<feGaussianBlur
stdDeviation="2.4087233"
id="feGaussianBlur4448" />
</filter>
<filter
x="-0.29221493"
y="-0.057434313"
width="1.5844299"
height="1.1148686"
color-interpolation-filters="sRGB"
id="filter4442">
<feGaussianBlur
stdDeviation="2.4087233"
id="feGaussianBlur4444" />
</filter>
<linearGradient
x1="115.9771"
y1="72.399902"
x2="115.9771"
y2="120.3999"
id="XMLID_23_"
gradientUnits="userSpaceOnUse">
<stop
id="stop79"
style="stop-color:#31006e;stop-opacity:0"
offset="0" />
<stop
id="stop81"
style="stop-color:#31006e;stop-opacity:1"
offset="1" />
</linearGradient>
<clipPath
id="clipPath4458">
<use
id="use4460"
x="0"
y="0"
width="1"
height="1"
xlink:href="#XMLID_10_" />
</clipPath>
<filter
color-interpolation-filters="sRGB"
id="AI_Sfocatura_4">
<feGaussianBlur
stdDeviation="4"
id="feGaussianBlur6" />
</filter>
<radialGradient
cx="69.600098"
cy="145.3999"
r="141"
id="XMLID_21_"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(1047.3429,-330.17143)">
<stop
id="stop58"
style="stop-color:#722cc7;stop-opacity:0"
offset="0.3373" />
<stop
id="stop60"
style="stop-color:#722cc7;stop-opacity:1"
offset="0.57990003" />
<stop
id="stop62"
style="stop-color:#722cc7;stop-opacity:0"
offset="1" />
</radialGradient>
<radialGradient
cx="69.600098"
cy="68.399902"
r="85"
id="XMLID_20_"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(1047.3429,-330.17143)">
<stop
id="stop47"
style="stop-color:#9361ff;stop-opacity:1"
offset="0.5" />
<stop
id="stop49"
style="stop-color:#360085;stop-opacity:1"
offset="0.78109998" />
<stop
id="stop51"
style="stop-color:#9d70ff;stop-opacity:1"
offset="1" />
</radialGradient>
<linearGradient
x1="9.5995998"
y1="68.399902"
x2="129.6001"
y2="68.399902"
id="XMLID_18_"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-1,-4.371139e-8,4.371139e-8,-1,1186.5436,-193.37143)">
<stop
id="stop13"
style="stop-color:#360085;stop-opacity:1"
offset="0" />
<stop
id="stop15"
style="stop-color:#3c088f;stop-opacity:1"
offset="0.0105" />
<stop
id="stop17"
style="stop-color:#5124b1;stop-opacity:1"
offset="0.0533" />
<stop
id="stop19"
style="stop-color:#633bcd;stop-opacity:1"
offset="0.099" />
<stop
id="stop21"
style="stop-color:#714de3;stop-opacity:1"
offset="0.1477" />
<stop
id="stop23"
style="stop-color:#7b59f3;stop-opacity:1"
offset="0.20100001" />
<stop
id="stop25"
style="stop-color:#8061fc;stop-opacity:1"
offset="0.2622" />
<stop
id="stop27"
style="stop-color:#8263ff;stop-opacity:1"
offset="0.34909999" />
<stop
id="stop31"
style="stop-color:#8263ff;stop-opacity:1"
offset="0.58579999" />
<stop
id="stop33"
style="stop-color:#360085;stop-opacity:1"
offset="1" />
</linearGradient>
<filter
color-interpolation-filters="sRGB"
id="filter2904">
<feGaussianBlur
stdDeviation="2.32"
id="feGaussianBlur2906" />
</filter>
<linearGradient
x1="9.5995998"
y1="68.399902"
x2="129.6001"
y2="68.399902"
id="linearGradient2235"
xlink:href="#XMLID_18_"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-1,-4.371139e-8,4.371139e-8,-1,133.6007,132.4)" />
<radialGradient
cx="69.600098"
cy="68.399902"
r="85"
id="radialGradient2237"
xlink:href="#XMLID_20_"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.9824561,0,0,0.9824561,-4.3789474,-3.2)" />
<radialGradient
cx="69.600098"
cy="145.3999"
r="141"
id="radialGradient2239"
xlink:href="#XMLID_21_"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(-5.5999998,-4.4)" />
<linearGradient
x1="108.00493"
y1="72.341148"
x2="115.9771"
y2="102.0937"
id="linearGradient2241"
xlink:href="#XMLID_23_"
gradientUnits="userSpaceOnUse" />
<linearGradient
x1="108.00493"
y1="72.341148"
x2="115.9771"
y2="102.0937"
id="linearGradient2243"
xlink:href="#XMLID_23_"
gradientUnits="userSpaceOnUse" />
<linearGradient
x1="67.629204"
y1="-2.1941743"
x2="67.629204"
y2="78.850853"
id="linearGradient2802"
xlink:href="#XMLID_25_"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(0,2)" />
<linearGradient
id="linearGradient3004">
<stop
id="stop3006"
style="stop-color:#ffffff;stop-opacity:1"
offset="0" />
<stop
id="stop7609"
style="stop-color:#ffffff;stop-opacity:1"
offset="0.34214258" />
<stop
id="stop7599"
style="stop-color:#bebdf3;stop-opacity:1"
offset="0.51998252" />
<stop
id="stop7611"
style="stop-color:#8f82f9;stop-opacity:1"
offset="0.75408828" />
<stop
id="stop7613"
style="stop-color:#9f99c7;stop-opacity:1"
offset="0.8711412" />
<stop
id="stop3008"
style="stop-color:#524c76;stop-opacity:1"
offset="1" />
</linearGradient>
<linearGradient
x1="783.86316"
y1="-313.5238"
x2="1099.6853"
y2="1340.5599"
id="linearGradient7137"
xlink:href="#linearGradient3004"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.237124,0,0,1.237124,-1037.425,-1010.413)" />
<linearGradient
x1="464.01675"
y1="697.43707"
x2="368.62137"
y2="269.70941"
id="linearGradient7139"
xlink:href="#linearGradient3004"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.237124,0,0,1.237124,-161.0905,-377.3414)" />
<radialGradient
cx="49.529819"
cy="320.08572"
r="31.94874"
fx="49.529819"
fy="320.08572"
id="radialGradient7141"
xlink:href="#linearGradient3004"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(3.287367,0,0,2.519654,111.6891,-642.7214)" />
<radialGradient
cx="332.72311"
cy="590.5899"
r="218.02184"
fx="332.72311"
fy="590.5899"
id="radialGradient7143"
xlink:href="#linearGradient3004"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.0660395,4.190266,-3.573754,-0.05626827,2168.154,-1171.421)" />
</defs>
<g
transform="matrix(1.0517241,0,0,1.0172414,-7.5172423,-7.0379241)"
id="g8"
style="opacity:0.8;filter:url(#filter2904)">
<path
d="m 126,113.8 c 0,8.8 -7.2,16 -16,16 l -84,0 c -8.8,0 -16,-7.2 -16,-16 l 0,-83.999998 c 0,-8.8 7.2,-16 16,-16 l 84,0 c 8.8,0 16,7.2 16,16 L 126,113.8 z"
id="path10" />
</g>
<g
transform="translate(0,-4)"
id="g2221">
<path
d="m 4.000002,20 c 0,-8.8 7.2,-16 16,-16 L 108,4 c 8.8,0 16,7.2 16,16 l 0,88 c 0,8.8 -7.2,16 -16,16 l -87.999998,0 c -8.8,0 -16,-7.2 -16,-16 l 0,-88 z"
id="path35"
style="fill:url(#linearGradient2235)" />
<path
d="M 20.77193,8 C 13.729684,8 8,13.729684 8,20.77193 l 0,86.45614 C 8,114.27032 13.729684,120 20.77193,120 l 86.45614,0 C 114.27032,120 120,114.27032 120,107.22807 l 0,-86.45614 C 120,13.729684 114.27032,8 107.22807,8 l -86.45614,0 0,0 z"
id="path53"
style="fill:url(#radialGradient2237)" />
<path
d="m 64.026001,7.014 -0.053,0 c -23.021,-0.296 -47.076,4.131 -47.316,4.176 -2.455,0.458 -5.01,3.012 -5.467,5.467 -0.045,0.241 -4.4720008,24.295 -4.1760008,47.316 -0.296,23.074 4.1310008,47.129 4.1760008,47.369 0.457,2.454 3.013,5.01 5.468,5.469 0.24,0.044 24.294,4.47 47.316,4.174 23.075,0.296 47.128999,-4.13 47.368999,-4.174 2.454,-0.458 5.011,-3.015 5.469,-5.47 0.044,-0.239 4.47,-24.293 4.174,-47.315 0.296,-23.074 -4.13,-47.128 -4.174,-47.369 -0.459,-2.455 -3.015,-5.01 -5.469,-5.467 -0.24,-0.045 -24.294999,-4.472 -47.316999,-4.176 z"
id="path64"
style="fill:url(#radialGradient2239);filter:url(#AI_Sfocatura_4)" />
<g
transform="translate(-5.5999858,-4.4)"
id="g66"
style="opacity:0.6">
<defs
id="defs68">
<path
d="m 69.626,12.145 -0.052,0 c -22.727,-0.292 -46.472,4.077 -46.709,4.122 -2.424,0.451 -4.946,2.974 -5.397,5.397 -0.044,0.237 -4.414,23.983 -4.122,46.71 -0.292,22.777 4.078,46.523 4.122,46.761 0.451,2.423 2.974,4.945 5.398,5.398 0.237,0.044 23.982,4.413 46.709,4.121 22.779,0.292 46.524,-4.077 46.761,-4.121 2.423,-0.452 4.946,-2.976 5.398,-5.399 0.044,-0.236 4.413,-23.981 4.121,-46.709 0.292,-22.777 -4.077,-46.523 -4.121,-46.761 -0.453,-2.423 -2.976,-4.946 -5.398,-5.397 -0.238,-0.045 -23.984,-4.414 -46.71,-4.122 z"
id="XMLID_10_" />
</defs>
<g
clip-path="url(#clipPath4458)"
id="g4450">
<path
d="m 119.344,21.665 c -0.377,-1.278 -1.675,-2.576 -3.367,-3.591 -1.693,1.015 -2.989,2.312 -3.365,3.591 -0.07,0.237 -6.965,23.983 -6.504,46.71 -0.461,22.777 6.434,46.523 6.504,46.761 0.376,1.278 1.674,2.576 3.365,3.591 1.694,-1.016 2.991,-2.312 3.367,-3.592 0.069,-0.236 6.963,-23.981 6.503,-46.709 0.46,-22.778 -6.433,-46.524 -6.503,-46.761 z"
id="path83"
style="opacity:0.8;fill:url(#linearGradient2241);filter:url(#filter4442)" />
<path
d="m 119.344,21.665 c -0.377,-1.278 -1.675,-2.576 -3.367,-3.591 -1.693,1.015 -2.989,2.312 -3.365,3.591 -0.07,0.237 -6.965,23.983 -6.504,46.71 -0.461,22.777 6.434,46.523 6.504,46.761 0.376,1.278 1.674,2.576 3.365,3.591 1.694,-1.016 2.991,-2.312 3.367,-3.592 0.069,-0.236 6.963,-23.981 6.503,-46.709 0.46,-22.778 -6.433,-46.524 -6.503,-46.761 z"
transform="matrix(-1,0,0,1,139.2,0)"
id="path4438"
style="opacity:0.8;fill:url(#linearGradient2243);filter:url(#filter4446)" />
</g>
</g>
<path
d=""
id="path159"
style="fill:url(#XMLID_29_);stroke:#2c72c7;stroke-width:2;stroke-linejoin:round" />
<g
transform="matrix(0.13999535,0,0,0.13999535,22.374999,21.936328)"
id="g7090">
<g
transform="translate(-25.69105,-25.5213)"
id="layer2"
style="display:inline">
<path
d="M 25.756851,521.91391 C 25.825031,495.65357 48.148853,458.98977 79.868697,425.68116 101.06675,403.42137 122.59556,383.88231 169.52585,343.86782 137.06358,326.05537 86.575337,304.5643 61.242464,276.41883 51.868932,266.00461 34.879101,242.4107 38.174477,210.88878 44.890902,146.64282 124.18914,49.142619 236.90525,28.529375 c 37.50415,-6.858661 80.56354,-1.907781 116.00271,14.024919 111.18036,49.984243 247.14797,174.162266 263.8771,234.794926 5.88837,21.34165 4.75656,55.36025 -5.39475,74.31982 -12.58141,23.49823 -56.1358,71.22495 -115.72484,120.47315 -93.4994,77.2739 -224.52102,160.24847 -322.35291,174.21052 -31.611,4.51135 -63.90775,-0.19399 -86.572466,-12.98278 C 51.279241,613.36083 39.508186,586.6468 35.370326,578.63961 24.367104,557.34729 25.73287,530.37254 25.756851,521.91391 z M 288.89937,226.87362 c 1.20738,-14.88942 59.59326,-0.0658 55.90415,11.72547 -3.89197,12.43966 -57.28926,5.35537 -55.90415,-11.72547 z"
id="path2973"
style="fill:url(#linearGradient7137);fill-opacity:1;fill-rule:evenodd;stroke:none" />
</g>
<g
transform="translate(-25.69105,-25.5213)"
id="layer4"
style="display:inline">
<path
d="M 201.12502,319.26488 C 170.40092,345.206 149.97273,362.69737 124.3619,386.10521 62.686019,442.47585 20.779962,485.38384 42.384986,544.03745 67.307886,611.6985 121.94112,608.26771 186.00654,595.69143 351.14346,563.12161 622.59855,354.43165 608.76251,277.34931 597.56708,214.97818 445.90819,90.975251 356.11423,46.84913 328.062,33.063819 295.73224,25.934162 263.30502,27.459889 139.83437,33.287522 43.410732,145.70192 48.3364,206.6102 53.12843,265.866 202.89233,317.49757 201.12502,319.26488 z M 182.59146,112.40184 c -37.15326,41.33629 -13.39873,121.3113 48.21486,164.90276 72.09526,51.00721 188.8443,60.24272 212.0774,20.90556 43.33515,-73.37278 -3.98029,-150.9555 -74.61054,-185.56335 -69.7954,-34.198724 -162.52227,-26.01189 -185.68172,-0.24497 z"
id="path2975"
style="fill:url(#linearGradient7139);fill-opacity:1;fill-rule:evenodd;stroke:none" />
<path
d="m 309.29559,275.57053 c 52.15894,7.24994 97.11719,-13.63858 104.1475,-65.14342 5.35537,-39.2337 -54.68938,-82.09994 -90.78995,-91.98681 -30.14631,-8.25614 -95.59547,2.36034 -100.00778,59.37779 -4.58678,59.27202 56.23678,93.52508 86.65023,97.75244 z m -25.54268,-98.581 c -34.27878,53.10396 49.77027,69.43027 62.63837,59.7456 55.47708,-41.75261 -47.53597,-83.14191 -62.63837,-59.7456 z"
id="path4976"
style="fill:url(#radialGradient7141);fill-opacity:1;fill-rule:evenodd;stroke:none;display:inline" />
</g>
<g
transform="translate(-25.69105,-25.5213)"
id="layer5"
style="display:inline">
<path
d="M 253.35285,41.570018 C 192.71898,47.959829 181.10644,55.76371 126.17687,97.322591 107.767,111.25125 73.883463,145.14202 65.201668,185.34831 c -3.306505,15.31275 0.601944,28.53259 11.630184,37.80412 35.312998,29.68796 94.416058,53.77395 142.904478,77.05704 14.20232,6.81964 4.79874,19.18504 -18.10392,39.01252 -57.79173,50.03186 -135.926941,110.93446 -141.3817,157.34203 -2.570415,21.86837 4.916125,51.5832 31.459397,66.7898 31.006723,17.76369 95.372133,6.16955 138.351373,-9.835 62.80599,-23.38762 145.30781,-75.00368 210.80628,-125.74104 68.11013,-52.76042 131.43764,-119.77326 134.57017,-130.70294 3.84668,-13.42147 3.46325,-25.81795 -3.96035,-40.07068 C 559.81983,234.62227 544.23417,217.99109 527.49924,199.37578 482.59667,152.03725 435.087,110.44129 378.2447,78.565883 337.19672,55.547464 301.08129,36.540217 253.35285,41.570018 z m 89.06787,106.129442 c 43.80514,21.17863 88.78971,76.80693 -0.39035,108.8248 -24.25015,8.70642 -101.15792,-21.38222 -98.80358,-62.4438 3.43316,-60.65568 45.70723,-72.24041 99.19393,-46.381 z"
id="path2977"
style="fill:url(#radialGradient7143);fill-opacity:1;fill-rule:evenodd;stroke:none" />
</g>
</g>
<path
d="m 118,45.413803 c -1.19623,-13.482422 -3.07337,-22.798818 -3.1032,-22.95486 -0.4464,-2.409328 -3.96206,-5.898191 -6.34937,-6.346689 -0.23451,-0.04416 -22.609029,-4.388805 -45.009257,-4.098311 l -0.05143,0 C 41.087543,11.723449 18.712,16.068091 18.477485,16.112254 16.089143,16.561733 12.574514,20.049615 12.130171,22.458943 12.108571,22.57573 11.037829,27.464065 10,36.102315 c 0,5.785331 0,11.569681 0,17.355012 0,3.607613 2.396571,7.78051 5.328,9.289897 C 15.325943,62.645159 19.962744,76 59.337487,76 98.71326,76 112.9744,55.324924 112.97029,55.554571 115.73714,53.696788 118,49.2491 118,45.640505 c 0,-0.07557 0,-0.151135 0,-0.226702 z"
id="path99"
style="opacity:0.7;fill:url(#linearGradient2802);fill-opacity:1" />
</g>
</svg>
/trunk/Bash/kde-icon.sh
0,0 → 1,92
#!/bin/sh
 
#####################################################################
# Script to replace the standard KDE 4 start icon with Gentoo Logo
# The logo can be downloaded here:
# http://gentoo-art.org/CONTENT/content-files/117383-gentoo-start-icon.svg
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# Author: Andrzej Kardaƛ
# License: GPLv3
# The full version of the licencse can be obtainted by visiting:
# http://www.gnu.org/licenses/gpl.html
#######################################################################
 
ICON=gentoo-start-icon.svg
RESOLUTION=(16x16 22x22 32x32 48x48 64x64 128x128 256x256)
URL="http://gentoo-art.org/CONTENT/content-files/117383-gentoo-start-icon.svg"
WGET=/usr/bin/wget
MV=/bin/mv
CP=/bin/cp
RM=/bin/rm
 
if [ "${1}" = "global" ]; then
PATH="/usr/share/icons/"
elif [ "${1}" = "local" ]; then
PATH=`echo ~/.kde4/share/icons/`
else
echo
echo "Usage ./kde-icon.sh local | global [theme_name]"
echo "For example ./kde-icon.sh local OxygenRefit2-black-version"
echo
exit 1
fi
 
if [ "${#}" -eq 1 ]; then
echo "You didn't provide a theme_name I'm assuming we are changing the oxygen default icon theme"
echo
THEME="oxygen"
else
THEME=${2}
fi
 
echo "Checking if full theme path: ${PATH}${THEME} exists"
echo
if [ -d ${PATH}${THEME} ]; then
echo "Path seems ok"
echo
else
echo "Can not find the provided path check script parameters"
echo
exit 1
fi
 
echo "Checking if you have write access to theme path"
echo
if [ -w ${PATH}${THEME} ]; then
echo "Your rights seems ok"
echo
else
echo "You do not have write access to the theme path you will not be able to change the icons"
echo "Maybe you should run the script as root"
echo
exit 1
fi
 
echo "Downloading the logo icon"
echo
${WGET} --output-document=${ICON} ${URL} || die "downloading of the icon failed"
 
echo "Making backup of existing icons"
echo
for i in "${RESOLUTION[@]}";
do
echo procesing ${PATH}${THEME}/$i/places/start-here-kde.png
${MV} ${PATH}${THEME}/$i/places/start-here-kde.png ${PATH}/${THEME}/$i/places/start-here-kde.png.bak
done
 
echo "Placing new Icon"
echo
for i in "${RESOLUTION[@]}";
do
echo procesing ${PATH}${THEME}/$i/places/start-here-kde.svg
${CP} ${ICON} ${PATH}${THEME}/$i/places/start-here-kde.svg
done
echo "I'm Removing the downloaded icon"
${RM} -f ${ICON}
echo
echo "That's all!"
echo "To see the changes you need to change the icon set using KDE system settings"
echo
Property changes:
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property