cnping

Minimal Graphical Ping Tool
git clone https://git.sinitax.com/cnlohr/cnping
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

commit af431dd8731800675af6453d0bfcbaa233397e5d
parent 23ffbf3a02eb3d4c1835d4158bbf6a3c527ecb01
Author: mrbesen <y.g.2@gmx.de>
Date:   Sun,  4 Dec 2022 13:56:15 +0100

new icon and update linuxinstall target

Diffstat:
MMakefile | 15+++++++++++++++
Afreedesktop/icons/hicolor/1024x1024/apps/com.github.cntools.cnping.png | 0
Mfreedesktop/icons/hicolor/16x16/apps/com.github.cntools.cnping.png | 0
Mfreedesktop/icons/hicolor/256x256/apps/com.github.cntools.cnping.png | 0
Mfreedesktop/icons/hicolor/32x32/apps/com.github.cntools.cnping.png | 0
Mfreedesktop/icons/hicolor/48x48/apps/com.github.cntools.cnping.png | 0
Afreedesktop/icons/hicolor/scalable/apps/com.github.cntools.cnping.svg | 119+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7 files changed, 134 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -2,6 +2,9 @@ CFLAGS?=-s -Os -I/opt/X11/include -Wall LDFLAGS?=-s -L/opt/X11/lib/ CC?=gcc +ICONSPATH=freedesktop/icons/hicolor/ +APPNAME=com.github.cntools.cnping + all : cnping #CFLAGS:=$(CFLAGS) -DCNFGOGL @@ -47,7 +50,19 @@ searchnet : ping.o searchnet.o linuxinstall : cnping sudo rm -f /usr/local/bin/cnping sudo cp cnping /usr/local/bin/ + sudo cp -r $(ICONSPATH) /usr/local/share/icons + sudo cp freedesktop/${APPNAME}.desktop /usr/local/share/applications + sudo cp freedesktop/${APPNAME}.metainfo.xml /usr/local/share/metainfo sudo setcap cap_net_raw+ep /usr/local/bin/cnping # sudo chmod +t /usr/local/bin/cnping #One option - set the stuid bit. # sudo install cnping /usr/local/bin/ #Another option - using install. + +# this target requires imagemagick +updateicons : ${ICONSPATH}scalable/apps/${APPNAME}.svg + convert $^ -resize 16x16 ${ICONSPATH}16x16/apps/${APPNAME}.png + convert $^ -resize 32x32 ${ICONSPATH}32x32/apps/${APPNAME}.png + convert $^ -resize 48x48 ${ICONSPATH}48x48/apps/${APPNAME}.png + convert $^ -resize 256x256 ${ICONSPATH}256x256/apps/${APPNAME}.png + convert $^ -resize 1024x1024 ${ICONSPATH}1024x1024/apps/${APPNAME}.png + diff --git a/freedesktop/icons/hicolor/1024x1024/apps/com.github.cntools.cnping.png b/freedesktop/icons/hicolor/1024x1024/apps/com.github.cntools.cnping.png Binary files differ. diff --git a/freedesktop/icons/hicolor/16x16/apps/com.github.cntools.cnping.png b/freedesktop/icons/hicolor/16x16/apps/com.github.cntools.cnping.png Binary files differ. diff --git a/freedesktop/icons/hicolor/256x256/apps/com.github.cntools.cnping.png b/freedesktop/icons/hicolor/256x256/apps/com.github.cntools.cnping.png Binary files differ. diff --git a/freedesktop/icons/hicolor/32x32/apps/com.github.cntools.cnping.png b/freedesktop/icons/hicolor/32x32/apps/com.github.cntools.cnping.png Binary files differ. diff --git a/freedesktop/icons/hicolor/48x48/apps/com.github.cntools.cnping.png b/freedesktop/icons/hicolor/48x48/apps/com.github.cntools.cnping.png Binary files differ. diff --git a/freedesktop/icons/hicolor/scalable/apps/com.github.cntools.cnping.svg b/freedesktop/icons/hicolor/scalable/apps/com.github.cntools.cnping.svg @@ -0,0 +1,119 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<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" + width="1024" + height="1024" + viewBox="0 0 1024 1024" + version="1.1" + id="svg8" + inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)" + sodipodi:docname="cnping_icon.svg"> + <defs + id="defs2" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.7" + inkscape:cx="120.5472" + inkscape:cy="561.74634" + inkscape:document-units="px" + inkscape:current-layer="g4661" + showgrid="false" + units="px" + inkscape:pagecheckerboard="true" + borderlayer="true" + inkscape:snap-page="true" + inkscape:window-width="2528" + inkscape:window-height="1381" + inkscape:window-x="1952" + inkscape:window-y="28" + inkscape:window-maximized="1" + inkscape:snap-bbox="true" + inkscape:bbox-paths="true" + inkscape:bbox-nodes="true" + inkscape:snap-bbox-edge-midpoints="true" + inkscape:snap-bbox-midpoints="true" /> + <metadata + id="metadata5"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title /> + </cc:Work> + </rdf:RDF> + </metadata> + <rect + style="opacity:1;fill:#000080;fill-opacity:1;stroke:none;stroke-width:7;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + id="rect3713" + width="1024" + height="1024" + x="0" + y="0" + inkscape:label="background" /> + <path + style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:7;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M 500,400.78544 V 754.71513 H 250 V 584.00028 H 0 V 1024 H 245.71484 508.57227 740 749.28516 1024 V 637.39258 H 750 V 400.78544 Z" + id="rect4539" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ccccccccccccccc" + inkscape:label="pingbars" /> + <g + id="g4661" + inkscape:label="text"> + <rect + y="53.999687" + x="500" + height="50" + width="460" + id="rect4591-56" + style="opacity:1;fill:#d0d0d0;fill-opacity:1;stroke:none;stroke-width:8.57454491;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + inkscape:label="host" /> + <rect + y="234" + x="55" + height="50" + width="290" + id="rect4591-5-3-2" + style="opacity:1;fill:#d0d0d0;fill-opacity:1;stroke:none;stroke-width:6.80818272;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + inkscape:label="pingstats4" /> + <rect + y="173.99968" + x="55" + height="50" + width="290" + id="rect4591-5-3" + style="opacity:1;fill:#d0d0d0;fill-opacity:1;stroke:none;stroke-width:6.80818272;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + inkscape:label="pingstats3" /> + <rect + y="113.99994" + x="55" + height="50" + width="290" + id="rect4591-5" + style="opacity:1;fill:#d0d0d0;fill-opacity:1;stroke:none;stroke-width:6.80818272;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + inkscape:label="pingstats2" /> + <rect + y="53.999687" + x="55" + height="50" + width="290" + id="rect4591" + style="opacity:1;fill:#d0d0d0;fill-opacity:1;stroke:none;stroke-width:6.80818272;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + inkscape:label="pingstats1" /> + </g> +</svg>