Merge pull request #291 from nejsan/patch-1

Set icon to `compton` in compton.desktop
This commit is contained in:
Richard Grenville 2015-09-20 16:41:58 +08:00
commit 6deda6a95f
4 changed files with 80 additions and 1 deletions

View File

@ -7,6 +7,7 @@ PREFIX ?= /usr
BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/share/man/man1
APPDIR ?= $(PREFIX)/share/applications
ICODIR ?= $(PREFIX)/share/icons/hicolor/
PACKAGES = x11 xcomposite xfixes xdamage xrender xext xrandr
LIBS = -lm -lrt
@ -155,6 +156,8 @@ install: $(BINS) docs
ifneq "$(MANPAGES)" ""
@install -m644 $(MANPAGES) "$(DESTDIR)$(MANDIR)"/
endif
@install -m644 media/compton.svg "$(DESTDIR)$(ICODIR)/scalable/apps"/
@install -m644 media/icons/48x48/compton.png "$(DESTDIR)$(ICODIR)/48x48/apps"/
@install -m644 compton.desktop "$(DESTDIR)$(APPDIR)"/
ifneq "$(DOCDIR)" ""
@install -d "$(DESTDIR)$(DOCDIR)"

View File

@ -7,5 +7,5 @@ Comment=A X compositor
Categories=Utility;
TryExec=compton
Exec=compton
# Icon=xcompmgr
Icon=compton
# Thanks to quequotion for providing this file!

76
media/compton.svg Normal file
View File

@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1024px" height="1024px" viewBox="0 0 1024 1024" enable-background="new 0 0 1024 1024" xml:space="preserve">
<g id="Gear_Shadow">
<path opacity="0.15" fill="#4D4D4D" d="M578.36,85.13c-12.18-1.9-24.53-3.28-37.02-4.13h-58.66c-12.56,0.85-24.98,2.25-37.23,4.16
l-17.91,89.79c-33.35,8.74-64.74,22.12-93.35,39.78l-76.69-51.23c-36.03,26.43-67.86,58.28-94.25,94.34l52.54,78.77
c-16.01,27.81-28.71,58.05-36.5,90.05l-94.08,18.58C81.78,467.02,80,489.31,80,512c0,22.76,1.79,45.13,5.23,66.96l20,20l80.96,16
c7.96,24.45,18.65,47.71,31.52,69.43l-54.44,81.8c13.29,18.15,27.96,35.24,43.85,51.1l19.5,19.5
c15.86,15.89,32.94,30.56,51.08,43.85l81.89-54.57c21.72,12.86,44.99,23.71,69.44,31.72l16.02,80.97l20,20
c21.84,3.44,44.2,5.23,66.96,5.23c22.69,0,44.99-1.78,66.76-5.19l18.59-94.08c32-7.79,62.26-20.26,90.07-36.27l78.69,52.35
c36.1-26.42,68-58.28,94.45-94.36l-51.05-76.6c17.66-28.62,30.82-60.02,39.56-93.37l89.78-17.92c1.92-12.25,3.31-24.67,4.16-37.23
v-58.66c-0.85-12.49-2.23-24.84-4.13-37.02l-20-20l-72.49-14.46c-8.28-28.39-19.99-55.26-34.91-80.1l49.1-73.5
c-13.34-18.2-28.07-35.32-44.02-51.22l-19-19c-15.91-15.95-33.04-30.68-51.25-44.02l-73.41,48.96
c-24.84-14.92-51.71-26.47-80.09-34.7l-14.45-72.48L578.36,85.13z"/>
</g>
<g id="Gear_1_">
<g>
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="206.9023" y1="817.0986" x2="817.0984" y2="206.9026">
<stop offset="0" style="stop-color:#00FFFF"/>
<stop offset="1" style="stop-color:#D9E021"/>
</linearGradient>
<path fill="url(#SVGID_1_)" d="M938.84,578.56c1.92-12.25,3.31-24.67,4.16-37.23v-58.66c-0.85-12.49-2.23-24.84-4.13-37.02
l-88-17.56c-8.28-34.66-21.56-67.28-39.4-97.01l49.1-73.5c-26.41-36.02-58.24-67.85-94.27-94.24l-73.41,48.96
c-29.72-17.85-62.34-30.9-97-39.18l-17.54-88c-12.18-1.9-24.53-3.28-37.02-4.13h-58.66c-12.56,0.85-24.98,2.25-37.23,4.16
l-17.91,89.79c-33.35,8.74-64.74,22.12-93.35,39.78l-76.69-51.23c-36.03,26.43-67.86,58.28-94.25,94.34l52.54,78.77
c-16.01,27.81-28.71,58.05-36.5,90.05l-94.08,18.58C81.78,467.02,80,489.31,80,512c0,22.76,1.79,45.13,5.23,66.96l95.91,18.95
c8.2,30.72,20.74,59.76,36.56,86.48l-54.44,81.8c26.44,36.11,58.33,68.01,94.43,94.46l81.89-54.57
c26.72,15.82,55.77,28.59,86.49,36.79l18.97,95.91c21.84,3.44,44.2,5.23,66.96,5.23c22.69,0,44.99-1.78,66.76-5.19l18.59-94.08
c32-7.79,62.26-20.26,90.07-36.27l78.69,52.35c36.1-26.42,68-58.28,94.45-94.36l-51.05-76.6c17.66-28.62,30.82-60.02,39.56-93.37
L938.84,578.56z"/>
</g>
<g>
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="206.9023" y1="817.0986" x2="817.0984" y2="206.9026">
<stop offset="0" style="stop-color:#00E6E6"/>
<stop offset="1" style="stop-color:#77E1E3"/>
</linearGradient>
<path fill="url(#SVGID_2_)" d="M938.84,578.56c1.92-12.25,3.31-24.67,4.16-37.23v-58.66c-0.85-12.49-2.23-24.84-4.13-37.02
l-88-17.56c-8.28-34.66-21.56-67.28-39.4-97.01l49.1-73.5c-26.41-36.02-58.24-67.85-94.27-94.24l-73.41,48.96
c-29.72-17.85-62.34-30.9-97-39.18l-17.54-88c-12.18-1.9-24.53-3.28-37.02-4.13h-58.66c-12.56,0.85-24.98,2.25-37.23,4.16
l-17.91,89.79c-33.35,8.74-64.74,22.12-93.35,39.78l-76.69-51.23c-36.03,26.43-67.86,58.28-94.25,94.34l52.54,78.77
c-16.01,27.81-28.71,58.05-36.5,90.05l-94.08,18.58C81.78,467.02,80,489.31,80,512c0,22.76,1.79,45.13,5.23,66.96l95.91,18.95
c8.2,30.72,20.74,59.76,36.56,86.48l-54.44,81.8c26.44,36.11,58.33,68.01,94.43,94.46l81.89-54.57
c26.72,15.82,55.77,28.59,86.49,36.79l18.97,95.91c21.84,3.44,44.2,5.23,66.96,5.23c22.69,0,44.99-1.78,66.76-5.19l18.59-94.08
c32-7.79,62.26-20.26,90.07-36.27l78.69,52.35c36.1-26.42,68-58.28,94.45-94.36l-51.05-76.6c17.66-28.62,30.82-60.02,39.56-93.37
L938.84,578.56z"/>
</g>
</g>
<g id="C_Shadow">
<linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="559.1299" y1="479.3999" x2="826.0795" y2="746.3495">
<stop offset="0" style="stop-color:#4D4D4D"/>
<stop offset="1" style="stop-color:#4D4D4D;stop-opacity:0"/>
</linearGradient>
<path opacity="0.5" fill="url(#SVGID_3_)" d="M939.57,573.54L720,353.97c-6.64-6.63-13.23-13.38-20.03-19.97l-69.18,69.33
c-28.98-28.91-67.48-44.84-108.42-44.84c-84.64,0-153.51,68.86-153.51,153.51c0,84.64,68.86,153.51,153.51,153.51
c40.94,0,79.44-15.92,108.42-44.84L686,676h0.25l27.57,27.57c14.67-14.68,32.28-26.37,51.54-34.1
c19.38-7.78,40.28-11.45,61.14-10.91c9.38-19.73,16.9-40.49,22.56-62.08l89.78-17.92C939.1,576.89,939.33,575.21,939.57,573.54z"/>
<linearGradient id="SVGID_4_" gradientUnits="userSpaceOnUse" x1="540.2842" y1="707.1182" x2="764.223" y2="931.057">
<stop offset="0" style="stop-color:#4D4D4D"/>
<stop offset="1" style="stop-color:#4D4D4D;stop-opacity:0"/>
</linearGradient>
<path opacity="0.5" fill="url(#SVGID_4_)" d="M713.97,703.85c-0.07-0.07-0.15-0.15-0.22-0.22c0.17-0.17,0.33-0.32,0.5-0.49
c-0.14,0.14-0.29,0.28-0.44,0.43L686.25,676H686l14,14.03c-47.48,47.37-110.56,73.46-177.63,73.46
c-59.95,0-116.68-20.85-161.96-59.09l220.86,221.65l16.07-81.33c32-7.79,62.26-20.26,90.07-36.27l78.69,52.35
c20.03-14.65,38.75-30.99,55.98-48.79L713.97,703.85z"/>
</g>
<g id="C">
<g>
<g>
<path fill="#FFFFFF" d="M522.37,763.49c-67.18,0-130.33-26.16-177.83-73.66c-47.5-47.5-73.66-110.66-73.66-177.83
c0-67.18,26.16-130.33,73.66-177.83s110.66-73.66,177.83-73.66c67.07,0,130.15,26.09,177.63,73.46l-69.21,69.36
c-28.98-28.91-67.48-44.84-108.42-44.84c-84.64,0-153.51,68.86-153.51,153.51c0,84.64,68.86,153.51,153.51,153.51
c40.94,0,79.44-15.92,108.42-44.84L700,690.03C652.52,737.4,589.44,763.49,522.37,763.49z"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB