|
9 years ago -1 |
If you are using Linux Mint XFCE with default panel size 32 and xfce4-pulseaudio-plugin you may have noticed that the icon of this plugin is too big and looks too ugly. After running this script it will look nice. Also this script supports updating mint-xicons package and it won't affect on other sound icons. All it does is adding four symbolic svg sound icons to theme.
If you plan to change panel size and revert changes, all you have to do is to remove mint-x-icons and install it again from mint ppa
Before (the right one)
After
So the script: (Copy and paste it to script.sh
, save it in ~/icon-patch
, open terminal in this folder and enter: chmod +x script.sh; ./script.sh)
#!/bin/bash
echo -e "Enter 1, 2 or 3\n\t1)update package \n\t2)use local \n\t3)quit"
read answer;
if [ $answer == "1" ]
then
rm -f mint-x-icons*.deb
apt-get download mint-x-icons
package=$(ls mint-x-icons*.deb|head -n 1)
elif [ $answer == "2" ]
then
set $answer = "1"
package=$(ls mint-x-icons*.deb|head -n 1)
if [ $package == "" ]
then
echo "no package found"
exit
fi
elif [ $answer != "3" ]
then
exit
fi
fackage=$(basename $package .deb)
rm -rf $fackage/*
mkdir $fackage 2>/dev/null
dpkg-deb -e $package
dpkg-deb -x $package $fackage
mv DEBIAN $fackage/
cd $fackage/usr/share/icons/Mint-X/
sed '/^Directories/ s/$/\,status\/symbolic/' index.theme > tmp
mv tmp index.theme
echo "
[status/symbolic]
Size=16
Context=Status
MinSize=8
MaxSize=512
Type=Scalable
" >> index.theme
mkdir -p status/symbolic 2>/dev/null
cd status/symbolic
echo '<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="20"
width="20"
version="1.1"
id="svg2"
inkscape:version="0.91 r"
sodipodi:docname="audio-volume-high-symbolic.svg">
<metadata
id="metadata18">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs16" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="714"
inkscape:window-height="480"
id="namedview14"
showgrid="false"
inkscape:zoom="11.8"
inkscape:cx="10"
inkscape:cy="13.933092"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="0"
inkscape:current-layer="svg2" />
<g
id="g4"
transform="translate(2.000025,2.0004)"
style="fill:#bebebe">
<path
d="M 12.492,0 11.138,1.3505 C 12.915,3.0454 14,5.4 14,7.985 c 0,2.6155 -1.1103,4.9943 -2.9231,6.6936 l 1.385,1.321 c 2.174,-2.045 3.538,-4.873 3.538,-8.015 0,-3.126 -1.351,-5.9422 -3.508,-7.985 z"
id="path6"
inkscape:connector-curvature="0" />
<path
d="M 10.375,1.9963 8.9375,3.3468 C 10.204,4.537 11,6.17 11,7.985 c 0,1.8296 -0.80872,3.4754 -2.0938,4.6679 l 1.4058,1.351 C 11.97,12.4699 13,10.3419 13,7.9847 13,5.6517 12.004,3.5264 10.375,1.996 Z"
id="path8"
inkscape:connector-curvature="0" />
<path
d="m 5.25,12.991 c -0.054405,8e-6 -0.070953,-0.01227 -0.125,-0.03125 -0.070536,-0.02768 -0.15686,-0.06679 -0.21875,-0.125 l -1.9687,-1.835 -1.9688,0 c -0.54264,0 -0.9687,-0.431 -0.9687,-1 l 0,-3.969 c 0,-0.569 0.42617,-1.02 0.96875,-1.031 l 2,0 1.9375,-1.8525 c 0.22386,-0.19707 0.49462,-0.19639 0.71875,0 0.22413,0.19639 0.37645,0.57679 0.375,0.96875 l 0,7.75 c 0.00323,0.33586 -0.10849,0.66414 -0.28125,0.875 -0.12957,0.15814 -0.30553,0.24998 -0.46875,0.25 z"
id="path10"
inkscape:connector-curvature="0" />
<path
d="M 8.25,3.9927 6.8125,5.343 C 7.5365,6.023 8,6.948 8,7.985 8,9.038 7.524,9.974 6.7812,10.657 l 1.4375,1.3505 C 9.3231,10.9835 10,9.5545 10,7.9835 10,6.4285 9.336,5.0115 8.25,3.9912 Z"
id="path12"
inkscape:connector-curvature="0" />
</g>
</svg>
' > audio-volume-high-symbolic.svg
echo '<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="20"
width="20"
version="1.1"
id="svg3346"
inkscape:version="0.91 r"
sodipodi:docname="audio-volume-low-symbolic.svg">
<metadata
id="metadata3362">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs3360" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="714"
inkscape:window-height="480"
id="namedview3358"
showgrid="false"
inkscape:zoom="11.8"
inkscape:cx="0.0571822"
inkscape:cy="10"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="0"
inkscape:current-layer="svg3346" />
<g
id="g3348"
transform="translate(2.000025,2.0004)"
style="fill:#bebebe">
<path
d="M 12.492,0 11.138,1.3505 C 12.915,3.0454 14,5.4 14,7.985 c 0,2.6155 -1.1103,4.9943 -2.9231,6.6936 l 1.385,1.321 c 2.174,-2.045 3.538,-4.873 3.538,-8.015 0,-3.126 -1.351,-5.9422 -3.508,-7.985 z"
id="path3350"
inkscape:connector-curvature="0"
style="opacity:0.45" />
<path
d="M 10.375,1.9963 8.9375,3.3468 C 10.204,4.537 11,6.17 11,7.985 c 0,1.8296 -0.80872,3.4754 -2.0938,4.6679 l 1.4058,1.351 C 11.97,12.4699 13,10.3419 13,7.9847 13,5.6517 12.004,3.5264 10.375,1.996 Z"
id="path3352"
inkscape:connector-curvature="0"
style="opacity:0.45" />
<path
d="m 5.25,12.991 c -0.054405,8e-6 -0.070953,-0.01227 -0.125,-0.03125 -0.070536,-0.02768 -0.15686,-0.06679 -0.21875,-0.125 l -1.9687,-1.835 -1.9688,0 c -0.54264,0 -0.9687,-0.431 -0.9687,-1 l 0,-3.969 c 0,-0.569 0.42617,-1.02 0.96875,-1.031 l 2,0 1.9375,-1.8525 c 0.22386,-0.19707 0.49462,-0.19639 0.71875,0 0.22413,0.19639 0.37645,0.57679 0.375,0.96875 l 0,7.75 c 0.00323,0.33586 -0.10849,0.66414 -0.28125,0.875 -0.12957,0.15814 -0.30553,0.24998 -0.46875,0.25 z"
id="path3354"
inkscape:connector-curvature="0" />
<path
d="M 8.25,3.9927 6.8125,5.343 C 7.5365,6.023 8,6.948 8,7.985 8,9.038 7.524,9.974 6.7812,10.657 l 1.4375,1.3505 C 9.3231,10.9835 10,9.5545 10,7.9835 10,6.4285 9.336,5.0115 8.25,3.9912 Z"
id="path3356"
inkscape:connector-curvature="0" />
</g>
</svg>
' > audio-volume-low-symbolic.svg
echo '<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="20"
width="20"
version="1.1"
id="svg3364"
inkscape:version="0.91 r"
sodipodi:docname="audio-volume-medium-symbolic.svg">
<metadata
id="metadata3380">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs3378" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1318"
inkscape:window-height="837"
id="namedview3376"
showgrid="false"
inkscape:zoom="11.8"
inkscape:cx="-2.1186441"
inkscape:cy="10"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="0"
inkscape:current-layer="svg3364" />
<g
id="g3366"
transform="translate(2.000025,2.0004)"
style="fill:#bebebe">
<path
d="M 12.492,0 11.138,1.3505 C 12.915,3.0454 14,5.4 14,7.985 c 0,2.6155 -1.1103,4.9943 -2.9231,6.6936 l 1.385,1.321 c 2.174,-2.045 3.538,-4.873 3.538,-8.015 0,-3.126 -1.351,-5.9422 -3.508,-7.985 z"
id="path3368"
inkscape:connector-curvature="0"
style="opacity:0.45" />
<path
d="M 10.375,1.9963 8.9375,3.3468 C 10.204,4.537 11,6.17 11,7.985 c 0,1.8296 -0.80872,3.4754 -2.0938,4.6679 l 1.4058,1.351 C 11.97,12.4699 13,10.3419 13,7.9847 13,5.6517 12.004,3.5264 10.375,1.996 Z"
id="path3370"
inkscape:connector-curvature="0" />
<path
d="m 5.25,12.991 c -0.054405,8e-6 -0.070953,-0.01227 -0.125,-0.03125 -0.070536,-0.02768 -0.15686,-0.06679 -0.21875,-0.125 l -1.9687,-1.835 -1.9688,0 c -0.54264,0 -0.9687,-0.431 -0.9687,-1 l 0,-3.969 c 0,-0.569 0.42617,-1.02 0.96875,-1.031 l 2,0 1.9375,-1.8525 c 0.22386,-0.19707 0.49462,-0.19639 0.71875,0 0.22413,0.19639 0.37645,0.57679 0.375,0.96875 l 0,7.75 c 0.00323,0.33586 -0.10849,0.66414 -0.28125,0.875 -0.12957,0.15814 -0.30553,0.24998 -0.46875,0.25 z"
id="path3372"
inkscape:connector-curvature="0" />
<path
d="M 8.25,3.9927 6.8125,5.343 C 7.5365,6.023 8,6.948 8,7.985 8,9.038 7.524,9.974 6.7812,10.657 l 1.4375,1.3505 C 9.3231,10.9835 10,9.5545 10,7.9835 10,6.4285 9.336,5.0115 8.25,3.9912 Z"
id="path3374"
inkscape:connector-curvature="0" />
</g>
</svg>
' > audio-volume-medium-symbolic.svg
echo '<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="20"
width="20"
version="1.1"
id="svg3382"
inkscape:version="0.91 r"
sodipodi:docname="audio-volume-muted-symbolic.svg">
<metadata
id="metadata3390">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs3388" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1023"
id="namedview3386"
showgrid="false"
inkscape:zoom="11.8"
inkscape:cx="-10.550847"
inkscape:cy="10"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg3382" />
<path
d="m 14.49975,2.0005 -1.375,1.3438 c 1.776,1.6948 2.875,4.0702 2.875,6.6562 0,2.6155 -1.1248,4.9882 -2.9375,6.6875 l 1.407,1.312 c 2.175,-2.045 3.531,-4.859 3.531,-8 0,-3.126 -1.343,-5.9572 -3.5,-8 z m -2.125,2 -1.4375,1.3438 c 1.2665,1.1902 2.0625,2.8412 2.0625,4.6562 0,1.8296 -0.80872,3.4638 -2.0938,4.6562 l 1.4058,1.344 c 1.658,-1.534 2.688,-3.644 2.688,-6 0,-2.334 -0.996,-4.4696 -2.625,-6 z m -5.1249999,1 c -0.1237,-10e-5 -0.2318,0.0577 -0.3438,0.1562 l -1.9374,1.8438 -2,0 c -0.54263,0.011 -0.9688,0.462 -0.9688,1.031 l 0,3.969 c 0,0.56894 0.42606,1 0.96875,1 l 1.9688,0 1.9688,1.8438 c 0.06189,0.05821 0.14821,0.09732 0.21875,0.125 0.0538,0.019 0.0704,0.031 0.1248,0.031 0.1632,0 0.3392,-0.092 0.4688,-0.25 0.1727,-0.211 0.2844,-0.539 0.2812,-0.875 l 0,-7.75 c 0.0013,-0.3922 -0.151,-0.7726 -0.3751,-0.969 -0.1121,-0.0981 -0.2513,-0.1561 -0.375,-0.1562 z m 2.9999999,1 -1.4374999,1.3438 c 0.724,0.68 1.1875,1.619 1.1875,2.656 0,1.052 -0.476,1.974 -1.2188,2.656 l 1.4375999,1.344 c 1.1043,-1.022 1.7812,-2.4292 1.7812,-4.0002 0,-1.556 -0.664,-2.98 -1.75,-4 z"
id="path3384"
inkscape:connector-curvature="0"
style="opacity:0.45;fill:#bebebe" />
</svg>
' > audio-volume-muted-symbolic.svg
cd ../../../../../../../
dpkg-deb -b $fackage
echo -e "DONE\nInstall now (y/n)?"
read answer2
case $answer2 in
'y')
sudo dpkg -i $package
exit
;;
*)
exit
;;
esac