Use psutil instead of upower/acpi

This commit is contained in:
Piotr Miller
2021-02-22 14:49:36 +01:00
parent 7ae1fe5f0c
commit 5c90aecd2d
12 changed files with 1724 additions and 65 deletions

View File

@@ -20,8 +20,6 @@ app_dirs = []
dependencies = {
"pyalsa": False,
"psutil": False,
"upower": False,
"acpi": False,
"netifaces": False,
"amixer": False
}
@@ -29,8 +27,6 @@ dependencies = {
icons_path = "" # "icons_light", "icons_dark" or "" (GTK icons)
commands = {
"get_battery": "upower -i $(upower -e | grep BAT) | grep --color=never -E 'state|to\\\\ full|to\\\\ empty|percentage'",
"get_battery_alt": "acpi",
"get_bt_name": "bluetoothctl show | awk '/Name/{print $2}'",
"get_bt_status": "bluetoothctl show | awk '/Powered/{print $2}'",
"get_brightness": "light -G",

View File

@@ -0,0 +1,211 @@
<?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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
id="svg2424"
sodipodi:version="0.32"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
version="1.0"
sodipodi:docname="battery-empty-charging-symbolic.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/thayer/archlinux-logo-contest/archer-full-detail.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs2426">
<linearGradient
gradientUnits="userSpaceOnUse"
id="path1082_2_"
y2="129.3468"
x2="112.49853"
y1="6.1372099"
x1="112.49854"
gradientTransform="translate(287,-83)">
<stop
id="stop193"
offset="0"
style="stop-color:#ffffff;stop-opacity:0" />
<stop
id="stop195"
offset="1"
style="stop-color:#ffffff;stop-opacity:0.27450982;" />
<midPointStop
id="midPointStop197"
style="stop-color:#FFFFFF"
offset="0" />
<midPointStop
id="midPointStop199"
style="stop-color:#FFFFFF"
offset="0.5" />
<midPointStop
id="midPointStop201"
style="stop-color:#000000"
offset="1" />
</linearGradient>
<linearGradient
id="linearGradient3388">
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="0"
id="stop3390" />
<stop
style="stop-color:#000000;stop-opacity:0.37113401;"
offset="1"
id="stop3392" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient4346">
<stop
style="stop-color:#00bdec;stop-opacity:1"
offset="0"
id="stop4348" />
<stop
style="stop-color:#40bfde;stop-opacity:1"
offset="1"
id="stop4350" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4346"
id="linearGradient4352"
x1="400.6142"
y1="634.15063"
x2="616.48553"
y2="666.97791"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient5323">
<stop
style="stop-color:#6e6e6e;stop-opacity:1"
offset="0"
id="stop5325" />
<stop
style="stop-color:#4d4d4d;stop-opacity:1"
offset="1"
id="stop5327" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5323"
id="linearGradient5329"
x1="291.83591"
y1="238.08237"
x2="650.81366"
y2="348.96875"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#path1082_2_"
id="linearGradient2216"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
x1="541.33502"
y1="104.50665"
x2="606.91248"
y2="303.14029" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
gridtolerance="10000"
guidetolerance="10"
objecttolerance="10"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="20.746079"
inkscape:cx="9.9476973"
inkscape:cy="7.2719109"
inkscape:document-units="px"
inkscape:current-layer="g2210"
inkscape:window-width="1360"
inkscape:window-height="710"
inkscape:window-x="0"
inkscape:window-y="0"
showgrid="false"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true"
inkscape:document-rotation="0"
inkscape:lockguides="true">
<sodipodi:guide
position="-9.1314141,0"
orientation="0,1"
id="guide1583"
inkscape:locked="true" />
<sodipodi:guide
position="-4.326,16"
orientation="0,1"
id="guide1585"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="0,54.808341"
orientation="1,0"
id="guide1005"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="16,7.9020841"
orientation="-1,0"
id="guide851"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="-12.339681,0"
orientation="0,1"
id="guide853"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
</sodipodi:namedview>
<metadata
id="metadata2429">
<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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-269.51781,-265.60124)">
<g
id="g2424"
transform="matrix(1.3473684,0,0,1.3473684,-632.88236,-513.34366)">
<g
id="g2210"
transform="matrix(0.25,0,0,0.25,502.3126,469.21738)">
<path
style="opacity:1;fill:#444444;fill-opacity:1;stroke:none;stroke-width:2.40441"
d="m 686.07879,438.59195 v 5.93732 h -7.4226 v 35.62518 h 29.68786 v -35.62518 h -7.4226 v -5.93732 z m 4.26685,4.26812 h 6.30896 v 5.93732 h 7.42133 v 27.08894 h -21.0159 v -27.08894 h 7.28561 z"
id="path878-5-1-2-7-6-6-5-37"
inkscape:connector-curvature="0" />
<path
style="fill:#ff6400;stroke-width:2.26366;fill-opacity:1"
d="m 693.50011,453.43569 v 6.79098 h 6.79099 l -6.79099,11.3184 v -6.79108 h -6.79098 z"
id="path837" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@@ -0,0 +1,207 @@
<?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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
id="svg2424"
sodipodi:version="0.32"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
version="1.0"
sodipodi:docname="battery-full-charging-symbolic.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/thayer/archlinux-logo-contest/archer-full-detail.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs2426">
<linearGradient
gradientUnits="userSpaceOnUse"
id="path1082_2_"
y2="129.3468"
x2="112.49853"
y1="6.1372099"
x1="112.49854"
gradientTransform="translate(287,-83)">
<stop
id="stop193"
offset="0"
style="stop-color:#ffffff;stop-opacity:0" />
<stop
id="stop195"
offset="1"
style="stop-color:#ffffff;stop-opacity:0.27450982;" />
<midPointStop
id="midPointStop197"
style="stop-color:#FFFFFF"
offset="0" />
<midPointStop
id="midPointStop199"
style="stop-color:#FFFFFF"
offset="0.5" />
<midPointStop
id="midPointStop201"
style="stop-color:#000000"
offset="1" />
</linearGradient>
<linearGradient
id="linearGradient3388">
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="0"
id="stop3390" />
<stop
style="stop-color:#000000;stop-opacity:0.37113401;"
offset="1"
id="stop3392" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient4346">
<stop
style="stop-color:#00bdec;stop-opacity:1"
offset="0"
id="stop4348" />
<stop
style="stop-color:#40bfde;stop-opacity:1"
offset="1"
id="stop4350" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4346"
id="linearGradient4352"
x1="400.6142"
y1="634.15063"
x2="616.48553"
y2="666.97791"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient5323">
<stop
style="stop-color:#6e6e6e;stop-opacity:1"
offset="0"
id="stop5325" />
<stop
style="stop-color:#4d4d4d;stop-opacity:1"
offset="1"
id="stop5327" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5323"
id="linearGradient5329"
x1="291.83591"
y1="238.08237"
x2="650.81366"
y2="348.96875"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#path1082_2_"
id="linearGradient2216"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
x1="541.33502"
y1="104.50665"
x2="606.91248"
y2="303.14029" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
gridtolerance="10000"
guidetolerance="10"
objecttolerance="10"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="20.746079"
inkscape:cx="9.9476973"
inkscape:cy="7.2719109"
inkscape:document-units="px"
inkscape:current-layer="g2210"
inkscape:window-width="1360"
inkscape:window-height="710"
inkscape:window-x="0"
inkscape:window-y="0"
showgrid="false"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true"
inkscape:document-rotation="0"
inkscape:lockguides="true">
<sodipodi:guide
position="-9.1314141,0"
orientation="0,1"
id="guide1583"
inkscape:locked="true" />
<sodipodi:guide
position="-4.326,16"
orientation="0,1"
id="guide1585"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="0,54.808341"
orientation="1,0"
id="guide1005"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="16,7.9020841"
orientation="-1,0"
id="guide851"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="-12.339681,0"
orientation="0,1"
id="guide853"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
</sodipodi:namedview>
<metadata
id="metadata2429">
<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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-269.51781,-265.60124)">
<g
id="g2424"
transform="matrix(1.3473684,0,0,1.3473684,-632.88236,-513.34366)">
<g
id="g2210"
transform="matrix(0.25,0,0,0.25,502.3126,469.21738)">
<path
id="path878-5-1-2-7-6-6-5-3-7-0-3"
style="fill:#444444;fill-opacity:1;stroke:none;stroke-width:0.809906"
d="M 5.5 1 L 5.5 3 L 3 3 L 3 15 L 13 15 L 13 3 L 10.5 3 L 10.5 1 L 5.5 1 z M 8 4.6269531 L 8 7.6269531 L 11 7.6269531 L 8 12.626953 L 8 9.6269531 L 5 9.6269531 L 8 4.6269531 z "
transform="matrix(2.96875,0,0,2.96875,669.75015,435.62319)" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@@ -0,0 +1,207 @@
<?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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
id="svg2424"
sodipodi:version="0.32"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
version="1.0"
sodipodi:docname="battery-good-charging-symbolic.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/thayer/archlinux-logo-contest/archer-full-detail.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs2426">
<linearGradient
gradientUnits="userSpaceOnUse"
id="path1082_2_"
y2="129.3468"
x2="112.49853"
y1="6.1372099"
x1="112.49854"
gradientTransform="translate(287,-83)">
<stop
id="stop193"
offset="0"
style="stop-color:#ffffff;stop-opacity:0" />
<stop
id="stop195"
offset="1"
style="stop-color:#ffffff;stop-opacity:0.27450982;" />
<midPointStop
id="midPointStop197"
style="stop-color:#FFFFFF"
offset="0" />
<midPointStop
id="midPointStop199"
style="stop-color:#FFFFFF"
offset="0.5" />
<midPointStop
id="midPointStop201"
style="stop-color:#000000"
offset="1" />
</linearGradient>
<linearGradient
id="linearGradient3388">
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="0"
id="stop3390" />
<stop
style="stop-color:#000000;stop-opacity:0.37113401;"
offset="1"
id="stop3392" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient4346">
<stop
style="stop-color:#00bdec;stop-opacity:1"
offset="0"
id="stop4348" />
<stop
style="stop-color:#40bfde;stop-opacity:1"
offset="1"
id="stop4350" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4346"
id="linearGradient4352"
x1="400.6142"
y1="634.15063"
x2="616.48553"
y2="666.97791"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient5323">
<stop
style="stop-color:#6e6e6e;stop-opacity:1"
offset="0"
id="stop5325" />
<stop
style="stop-color:#4d4d4d;stop-opacity:1"
offset="1"
id="stop5327" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5323"
id="linearGradient5329"
x1="291.83591"
y1="238.08237"
x2="650.81366"
y2="348.96875"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#path1082_2_"
id="linearGradient2216"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
x1="541.33502"
y1="104.50665"
x2="606.91248"
y2="303.14029" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
gridtolerance="10000"
guidetolerance="10"
objecttolerance="10"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="20.746079"
inkscape:cx="9.9476973"
inkscape:cy="7.2719109"
inkscape:document-units="px"
inkscape:current-layer="g2210"
inkscape:window-width="1360"
inkscape:window-height="710"
inkscape:window-x="0"
inkscape:window-y="0"
showgrid="false"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true"
inkscape:document-rotation="0"
inkscape:lockguides="true">
<sodipodi:guide
position="-9.1314141,0"
orientation="0,1"
id="guide1583"
inkscape:locked="true" />
<sodipodi:guide
position="-4.326,16"
orientation="0,1"
id="guide1585"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="0,54.808341"
orientation="1,0"
id="guide1005"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="16,7.9020841"
orientation="-1,0"
id="guide851"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="-12.339681,0"
orientation="0,1"
id="guide853"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
</sodipodi:namedview>
<metadata
id="metadata2429">
<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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-269.51781,-265.60124)">
<g
id="g2424"
transform="matrix(1.3473684,0,0,1.3473684,-632.88236,-513.34366)">
<g
id="g2210"
transform="matrix(0.25,0,0,0.25,502.3126,469.21738)">
<path
id="path878-5-1-2-7-6-6-5-3-2-6"
style="fill:#eeeeee;fill-opacity:1;stroke:none;stroke-width:0.809906"
d="M 5.5 1 L 5.5 3 L 3 3 L 3 15 L 13 15 L 13 3 L 10.5 3 L 10.5 1 L 5.5 1 z M 6.9375 2.4375 L 9.0625 2.4375 L 9.0625 4.4375 L 11.5625 4.4375 L 11.5625 5.21875 L 4.4824219 5.21875 L 4.4824219 4.4375 L 6.9375 4.4375 L 6.9375 2.4375 z M 8 5.4453125 L 8 8.4453125 L 11 8.4453125 L 8 13.445312 L 8 10.445312 L 5 10.445312 L 8 5.4453125 z "
transform="matrix(2.96875,0,0,2.96875,669.75015,435.62319)" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@@ -0,0 +1,211 @@
<?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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
id="svg2424"
sodipodi:version="0.32"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
version="1.0"
sodipodi:docname="battery-low-charging-symbolic.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/thayer/archlinux-logo-contest/archer-full-detail.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs2426">
<linearGradient
gradientUnits="userSpaceOnUse"
id="path1082_2_"
y2="129.3468"
x2="112.49853"
y1="6.1372099"
x1="112.49854"
gradientTransform="translate(287,-83)">
<stop
id="stop193"
offset="0"
style="stop-color:#ffffff;stop-opacity:0" />
<stop
id="stop195"
offset="1"
style="stop-color:#ffffff;stop-opacity:0.27450982;" />
<midPointStop
id="midPointStop197"
style="stop-color:#FFFFFF"
offset="0" />
<midPointStop
id="midPointStop199"
style="stop-color:#FFFFFF"
offset="0.5" />
<midPointStop
id="midPointStop201"
style="stop-color:#000000"
offset="1" />
</linearGradient>
<linearGradient
id="linearGradient3388">
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="0"
id="stop3390" />
<stop
style="stop-color:#000000;stop-opacity:0.37113401;"
offset="1"
id="stop3392" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient4346">
<stop
style="stop-color:#00bdec;stop-opacity:1"
offset="0"
id="stop4348" />
<stop
style="stop-color:#40bfde;stop-opacity:1"
offset="1"
id="stop4350" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4346"
id="linearGradient4352"
x1="400.6142"
y1="634.15063"
x2="616.48553"
y2="666.97791"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient5323">
<stop
style="stop-color:#6e6e6e;stop-opacity:1"
offset="0"
id="stop5325" />
<stop
style="stop-color:#4d4d4d;stop-opacity:1"
offset="1"
id="stop5327" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5323"
id="linearGradient5329"
x1="291.83591"
y1="238.08237"
x2="650.81366"
y2="348.96875"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#path1082_2_"
id="linearGradient2216"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
x1="541.33502"
y1="104.50665"
x2="606.91248"
y2="303.14029" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
gridtolerance="10000"
guidetolerance="10"
objecttolerance="10"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="20.746079"
inkscape:cx="9.9476973"
inkscape:cy="7.2719109"
inkscape:document-units="px"
inkscape:current-layer="g2210"
inkscape:window-width="1360"
inkscape:window-height="710"
inkscape:window-x="0"
inkscape:window-y="0"
showgrid="false"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true"
inkscape:document-rotation="0"
inkscape:lockguides="true">
<sodipodi:guide
position="-9.1314141,0"
orientation="0,1"
id="guide1583"
inkscape:locked="true" />
<sodipodi:guide
position="-4.326,16"
orientation="0,1"
id="guide1585"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="0,54.808341"
orientation="1,0"
id="guide1005"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="16,7.9020841"
orientation="-1,0"
id="guide851"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="-12.339681,0"
orientation="0,1"
id="guide853"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
</sodipodi:namedview>
<metadata
id="metadata2429">
<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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-269.51781,-265.60124)">
<g
id="g2424"
transform="matrix(1.3473684,0,0,1.3473684,-632.88236,-513.34366)">
<g
id="g2210"
transform="matrix(0.25,0,0,0.25,502.3126,469.21738)">
<path
id="path878-5-1-2-7-6-6-5-6-8"
style="fill:#444444;fill-opacity:1;stroke:none;stroke-width:0.809906"
d="M 5.5 1 L 5.5 3 L 3 3 L 3 15 L 13 15 L 13 3 L 10.5 3 L 10.5 1 L 5.5 1 z M 6.9375 2.4375 L 9.0625 2.4375 L 9.0625 4.4375 L 11.5625 4.4375 L 11.5625 10.78125 L 9.2226562 10.78125 L 8 12.820312 L 8 10.78125 L 4.4824219 10.78125 L 4.4824219 4.4375 L 6.9375 4.4375 L 6.9375 2.4375 z "
transform="matrix(2.96875,0,0,2.96875,669.75015,435.62319)" />
<path
id="path2431-5"
style="fill:#444444;fill-opacity:1;stroke:none;stroke-width:2.7479"
d="m 693.50015,449.93349 -8.90625,14.84375 h 8.90625 v 2.85279 h 3.62976 l 5.27649,-8.79029 h -8.90625 z" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.4 KiB

View File

@@ -0,0 +1,211 @@
<?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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
id="svg2424"
sodipodi:version="0.32"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
version="1.0"
sodipodi:docname="battery-empty-charging-symbolic.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/thayer/archlinux-logo-contest/archer-full-detail.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs2426">
<linearGradient
gradientUnits="userSpaceOnUse"
id="path1082_2_"
y2="129.3468"
x2="112.49853"
y1="6.1372099"
x1="112.49854"
gradientTransform="translate(287,-83)">
<stop
id="stop193"
offset="0"
style="stop-color:#ffffff;stop-opacity:0" />
<stop
id="stop195"
offset="1"
style="stop-color:#ffffff;stop-opacity:0.27450982;" />
<midPointStop
id="midPointStop197"
style="stop-color:#FFFFFF"
offset="0" />
<midPointStop
id="midPointStop199"
style="stop-color:#FFFFFF"
offset="0.5" />
<midPointStop
id="midPointStop201"
style="stop-color:#000000"
offset="1" />
</linearGradient>
<linearGradient
id="linearGradient3388">
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="0"
id="stop3390" />
<stop
style="stop-color:#000000;stop-opacity:0.37113401;"
offset="1"
id="stop3392" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient4346">
<stop
style="stop-color:#00bdec;stop-opacity:1"
offset="0"
id="stop4348" />
<stop
style="stop-color:#40bfde;stop-opacity:1"
offset="1"
id="stop4350" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4346"
id="linearGradient4352"
x1="400.6142"
y1="634.15063"
x2="616.48553"
y2="666.97791"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient5323">
<stop
style="stop-color:#6e6e6e;stop-opacity:1"
offset="0"
id="stop5325" />
<stop
style="stop-color:#4d4d4d;stop-opacity:1"
offset="1"
id="stop5327" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5323"
id="linearGradient5329"
x1="291.83591"
y1="238.08237"
x2="650.81366"
y2="348.96875"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#path1082_2_"
id="linearGradient2216"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
x1="541.33502"
y1="104.50665"
x2="606.91248"
y2="303.14029" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
gridtolerance="10000"
guidetolerance="10"
objecttolerance="10"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="20.746079"
inkscape:cx="9.9476973"
inkscape:cy="7.2719109"
inkscape:document-units="px"
inkscape:current-layer="g2210"
inkscape:window-width="1360"
inkscape:window-height="710"
inkscape:window-x="0"
inkscape:window-y="0"
showgrid="false"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true"
inkscape:document-rotation="0"
inkscape:lockguides="true">
<sodipodi:guide
position="-9.1314141,0"
orientation="0,1"
id="guide1583"
inkscape:locked="true" />
<sodipodi:guide
position="-4.326,16"
orientation="0,1"
id="guide1585"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="0,54.808341"
orientation="1,0"
id="guide1005"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="16,7.9020841"
orientation="-1,0"
id="guide851"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="-12.339681,0"
orientation="0,1"
id="guide853"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
</sodipodi:namedview>
<metadata
id="metadata2429">
<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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-269.51781,-265.60124)">
<g
id="g2424"
transform="matrix(1.3473684,0,0,1.3473684,-632.88236,-513.34366)">
<g
id="g2210"
transform="matrix(0.25,0,0,0.25,502.3126,469.21738)">
<path
style="opacity:1;fill:#eeeeee;fill-opacity:1;stroke:none;stroke-width:2.40441"
d="m 686.07879,438.59195 v 5.93732 h -7.4226 v 35.62518 h 29.68786 v -35.62518 h -7.4226 v -5.93732 z m 4.26685,4.26812 h 6.30896 v 5.93732 h 7.42133 v 27.08894 h -21.0159 v -27.08894 h 7.28561 z"
id="path878-5-1-2-7-6-6-5-37"
inkscape:connector-curvature="0" />
<path
style="fill:#ff6400;stroke-width:2.26366;fill-opacity:1"
d="m 693.50011,453.43569 v 6.79098 h 6.79099 l -6.79099,11.3184 v -6.79108 h -6.79098 z"
id="path837" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@@ -0,0 +1,207 @@
<?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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
id="svg2424"
sodipodi:version="0.32"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
version="1.0"
sodipodi:docname="battery-full-charging-symbolic.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/thayer/archlinux-logo-contest/archer-full-detail.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs2426">
<linearGradient
gradientUnits="userSpaceOnUse"
id="path1082_2_"
y2="129.3468"
x2="112.49853"
y1="6.1372099"
x1="112.49854"
gradientTransform="translate(287,-83)">
<stop
id="stop193"
offset="0"
style="stop-color:#ffffff;stop-opacity:0" />
<stop
id="stop195"
offset="1"
style="stop-color:#ffffff;stop-opacity:0.27450982;" />
<midPointStop
id="midPointStop197"
style="stop-color:#FFFFFF"
offset="0" />
<midPointStop
id="midPointStop199"
style="stop-color:#FFFFFF"
offset="0.5" />
<midPointStop
id="midPointStop201"
style="stop-color:#000000"
offset="1" />
</linearGradient>
<linearGradient
id="linearGradient3388">
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="0"
id="stop3390" />
<stop
style="stop-color:#000000;stop-opacity:0.37113401;"
offset="1"
id="stop3392" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient4346">
<stop
style="stop-color:#00bdec;stop-opacity:1"
offset="0"
id="stop4348" />
<stop
style="stop-color:#40bfde;stop-opacity:1"
offset="1"
id="stop4350" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4346"
id="linearGradient4352"
x1="400.6142"
y1="634.15063"
x2="616.48553"
y2="666.97791"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient5323">
<stop
style="stop-color:#6e6e6e;stop-opacity:1"
offset="0"
id="stop5325" />
<stop
style="stop-color:#4d4d4d;stop-opacity:1"
offset="1"
id="stop5327" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5323"
id="linearGradient5329"
x1="291.83591"
y1="238.08237"
x2="650.81366"
y2="348.96875"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#path1082_2_"
id="linearGradient2216"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
x1="541.33502"
y1="104.50665"
x2="606.91248"
y2="303.14029" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
gridtolerance="10000"
guidetolerance="10"
objecttolerance="10"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="20.746079"
inkscape:cx="9.9476973"
inkscape:cy="7.2719109"
inkscape:document-units="px"
inkscape:current-layer="g2210"
inkscape:window-width="1360"
inkscape:window-height="710"
inkscape:window-x="0"
inkscape:window-y="0"
showgrid="false"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true"
inkscape:document-rotation="0"
inkscape:lockguides="true">
<sodipodi:guide
position="-9.1314141,0"
orientation="0,1"
id="guide1583"
inkscape:locked="true" />
<sodipodi:guide
position="-4.326,16"
orientation="0,1"
id="guide1585"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="0,54.808341"
orientation="1,0"
id="guide1005"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="16,7.9020841"
orientation="-1,0"
id="guide851"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="-12.339681,0"
orientation="0,1"
id="guide853"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
</sodipodi:namedview>
<metadata
id="metadata2429">
<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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-269.51781,-265.60124)">
<g
id="g2424"
transform="matrix(1.3473684,0,0,1.3473684,-632.88236,-513.34366)">
<g
id="g2210"
transform="matrix(0.25,0,0,0.25,502.3126,469.21738)">
<path
id="path878-5-1-2-7-6-6-5-3-7-0-3"
style="fill:#eeeeee;fill-opacity:1;stroke:none;stroke-width:0.809906"
d="M 5.5 1 L 5.5 3 L 3 3 L 3 15 L 13 15 L 13 3 L 10.5 3 L 10.5 1 L 5.5 1 z M 8 4.6269531 L 8 7.6269531 L 11 7.6269531 L 8 12.626953 L 8 9.6269531 L 5 9.6269531 L 8 4.6269531 z "
transform="matrix(2.96875,0,0,2.96875,669.75015,435.62319)" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@@ -0,0 +1,207 @@
<?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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
id="svg2424"
sodipodi:version="0.32"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
version="1.0"
sodipodi:docname="battery-good-charging-symbolic.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/thayer/archlinux-logo-contest/archer-full-detail.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs2426">
<linearGradient
gradientUnits="userSpaceOnUse"
id="path1082_2_"
y2="129.3468"
x2="112.49853"
y1="6.1372099"
x1="112.49854"
gradientTransform="translate(287,-83)">
<stop
id="stop193"
offset="0"
style="stop-color:#ffffff;stop-opacity:0" />
<stop
id="stop195"
offset="1"
style="stop-color:#ffffff;stop-opacity:0.27450982;" />
<midPointStop
id="midPointStop197"
style="stop-color:#FFFFFF"
offset="0" />
<midPointStop
id="midPointStop199"
style="stop-color:#FFFFFF"
offset="0.5" />
<midPointStop
id="midPointStop201"
style="stop-color:#000000"
offset="1" />
</linearGradient>
<linearGradient
id="linearGradient3388">
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="0"
id="stop3390" />
<stop
style="stop-color:#000000;stop-opacity:0.37113401;"
offset="1"
id="stop3392" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient4346">
<stop
style="stop-color:#00bdec;stop-opacity:1"
offset="0"
id="stop4348" />
<stop
style="stop-color:#40bfde;stop-opacity:1"
offset="1"
id="stop4350" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4346"
id="linearGradient4352"
x1="400.6142"
y1="634.15063"
x2="616.48553"
y2="666.97791"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient5323">
<stop
style="stop-color:#6e6e6e;stop-opacity:1"
offset="0"
id="stop5325" />
<stop
style="stop-color:#4d4d4d;stop-opacity:1"
offset="1"
id="stop5327" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5323"
id="linearGradient5329"
x1="291.83591"
y1="238.08237"
x2="650.81366"
y2="348.96875"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#path1082_2_"
id="linearGradient2216"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
x1="541.33502"
y1="104.50665"
x2="606.91248"
y2="303.14029" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
gridtolerance="10000"
guidetolerance="10"
objecttolerance="10"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="20.746079"
inkscape:cx="9.9476973"
inkscape:cy="7.2719109"
inkscape:document-units="px"
inkscape:current-layer="g2210"
inkscape:window-width="1360"
inkscape:window-height="710"
inkscape:window-x="0"
inkscape:window-y="0"
showgrid="false"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true"
inkscape:document-rotation="0"
inkscape:lockguides="true">
<sodipodi:guide
position="-9.1314141,0"
orientation="0,1"
id="guide1583"
inkscape:locked="true" />
<sodipodi:guide
position="-4.326,16"
orientation="0,1"
id="guide1585"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="0,54.808341"
orientation="1,0"
id="guide1005"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="16,7.9020841"
orientation="-1,0"
id="guide851"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="-12.339681,0"
orientation="0,1"
id="guide853"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
</sodipodi:namedview>
<metadata
id="metadata2429">
<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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-269.51781,-265.60124)">
<g
id="g2424"
transform="matrix(1.3473684,0,0,1.3473684,-632.88236,-513.34366)">
<g
id="g2210"
transform="matrix(0.25,0,0,0.25,502.3126,469.21738)">
<path
id="path878-5-1-2-7-6-6-5-3-2-6"
style="fill:#eeeeee;fill-opacity:1;stroke:none;stroke-width:0.809906"
d="M 5.5 1 L 5.5 3 L 3 3 L 3 15 L 13 15 L 13 3 L 10.5 3 L 10.5 1 L 5.5 1 z M 6.9375 2.4375 L 9.0625 2.4375 L 9.0625 4.4375 L 11.5625 4.4375 L 11.5625 5.21875 L 4.4824219 5.21875 L 4.4824219 4.4375 L 6.9375 4.4375 L 6.9375 2.4375 z M 8 5.4453125 L 8 8.4453125 L 11 8.4453125 L 8 13.445312 L 8 10.445312 L 5 10.445312 L 8 5.4453125 z "
transform="matrix(2.96875,0,0,2.96875,669.75015,435.62319)" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@@ -0,0 +1,211 @@
<?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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
id="svg2424"
sodipodi:version="0.32"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
version="1.0"
sodipodi:docname="battery-low-charging-symbolic.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/thayer/archlinux-logo-contest/archer-full-detail.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs2426">
<linearGradient
gradientUnits="userSpaceOnUse"
id="path1082_2_"
y2="129.3468"
x2="112.49853"
y1="6.1372099"
x1="112.49854"
gradientTransform="translate(287,-83)">
<stop
id="stop193"
offset="0"
style="stop-color:#ffffff;stop-opacity:0" />
<stop
id="stop195"
offset="1"
style="stop-color:#ffffff;stop-opacity:0.27450982;" />
<midPointStop
id="midPointStop197"
style="stop-color:#FFFFFF"
offset="0" />
<midPointStop
id="midPointStop199"
style="stop-color:#FFFFFF"
offset="0.5" />
<midPointStop
id="midPointStop201"
style="stop-color:#000000"
offset="1" />
</linearGradient>
<linearGradient
id="linearGradient3388">
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="0"
id="stop3390" />
<stop
style="stop-color:#000000;stop-opacity:0.37113401;"
offset="1"
id="stop3392" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient4346">
<stop
style="stop-color:#00bdec;stop-opacity:1"
offset="0"
id="stop4348" />
<stop
style="stop-color:#40bfde;stop-opacity:1"
offset="1"
id="stop4350" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4346"
id="linearGradient4352"
x1="400.6142"
y1="634.15063"
x2="616.48553"
y2="666.97791"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient5323">
<stop
style="stop-color:#6e6e6e;stop-opacity:1"
offset="0"
id="stop5325" />
<stop
style="stop-color:#4d4d4d;stop-opacity:1"
offset="1"
id="stop5327" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5323"
id="linearGradient5329"
x1="291.83591"
y1="238.08237"
x2="650.81366"
y2="348.96875"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#path1082_2_"
id="linearGradient2216"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
x1="541.33502"
y1="104.50665"
x2="606.91248"
y2="303.14029" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
gridtolerance="10000"
guidetolerance="10"
objecttolerance="10"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="20.746079"
inkscape:cx="9.9476973"
inkscape:cy="7.2719109"
inkscape:document-units="px"
inkscape:current-layer="g2210"
inkscape:window-width="1360"
inkscape:window-height="710"
inkscape:window-x="0"
inkscape:window-y="0"
showgrid="false"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true"
inkscape:document-rotation="0"
inkscape:lockguides="true">
<sodipodi:guide
position="-9.1314141,0"
orientation="0,1"
id="guide1583"
inkscape:locked="true" />
<sodipodi:guide
position="-4.326,16"
orientation="0,1"
id="guide1585"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="0,54.808341"
orientation="1,0"
id="guide1005"
inkscape:locked="true"
inkscape:label=""
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="16,7.9020841"
orientation="-1,0"
id="guide851"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="-12.339681,0"
orientation="0,1"
id="guide853"
inkscape:label=""
inkscape:locked="true"
inkscape:color="rgb(0,0,255)" />
</sodipodi:namedview>
<metadata
id="metadata2429">
<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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-269.51781,-265.60124)">
<g
id="g2424"
transform="matrix(1.3473684,0,0,1.3473684,-632.88236,-513.34366)">
<g
id="g2210"
transform="matrix(0.25,0,0,0.25,502.3126,469.21738)">
<path
id="path878-5-1-2-7-6-6-5-6-8"
style="fill:#eeeeee;fill-opacity:1;stroke:none;stroke-width:0.809906"
d="M 5.5 1 L 5.5 3 L 3 3 L 3 15 L 13 15 L 13 3 L 10.5 3 L 10.5 1 L 5.5 1 z M 6.9375 2.4375 L 9.0625 2.4375 L 9.0625 4.4375 L 11.5625 4.4375 L 11.5625 10.78125 L 9.2226562 10.78125 L 8 12.820312 L 8 10.78125 L 4.4824219 10.78125 L 4.4824219 4.4375 L 6.9375 4.4375 L 6.9375 2.4375 z "
transform="matrix(2.96875,0,0,2.96875,669.75015,435.62319)" />
<path
id="path2431-5"
style="fill:#eeeeee;fill-opacity:1;stroke:none;stroke-width:2.7479"
d="m 693.50015,449.93349 -8.90625,14.84375 h 8.90625 v 2.85279 h 3.62976 l 5.27649,-8.79029 h -8.90625 z" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.4 KiB

View File

@@ -218,8 +218,6 @@ def main():
common.app_dirs = get_app_dirs()
common.dependencies["upower"] = is_command("upower")
common.dependencies["acpi"] = is_command("acpi")
common.dependencies["amixer"] = is_command("amixer")
config_file = os.path.join(common.config_dir, args.config)

View File

@@ -153,8 +153,8 @@ class Controls(Gtk.EventBox):
def get_bat_output(self):
if "battery" in self.settings["components"]:
try:
msg, value = get_battery()
GLib.idle_add(self.update_battery, value)
value, time, charging = get_battery()
GLib.idle_add(self.update_battery, value, charging)
except Exception as e:
print(e)
@@ -165,8 +165,7 @@ class Controls(Gtk.EventBox):
return True
# No point in checking battery data more often that every 5 seconds:
# `upower` / `acpi` response does not change that quickly.
# No point in checking battery data more often that every 5 seconds
def refresh_bat(self):
thread = threading.Thread(target=self.get_bat_output)
thread.daemon = True
@@ -200,8 +199,8 @@ class Controls(Gtk.EventBox):
if self.bri_label:
self.bri_label.set_text("{}%".format(value))
def update_battery(self, value):
icon_name = bat_icon_name(value)
def update_battery(self, value, charging):
icon_name = bat_icon_name(value, charging)
if icon_name != self.bat_icon_name:
update_image(self.bat_image, icon_name, self.icon_size, self.icons_path)
@@ -433,8 +432,8 @@ class PopupWindow(Gtk.Window):
self.bat_icon_name = "view-refresh-symbolic"
self.bat_image = Gtk.Image.new_from_icon_name(self.bat_icon_name, Gtk.IconSize.MENU)
msg, level = get_battery()
icon_name = bat_icon_name(level)
level, msg, charging = get_battery()
icon_name = bat_icon_name(level, charging)
if icon_name != self.bat_icon_name:
update_image(self.bat_image, icon_name, self.icon_size, self.icons_path)
@@ -442,7 +441,7 @@ class PopupWindow(Gtk.Window):
inner_hbox.pack_start(self.bat_image, False, False, 6)
self.bat_label = Gtk.Label(msg)
self.bat_label = Gtk.Label("{}% {}".format(level, msg))
inner_hbox.pack_start(self.bat_label, False, True, 6)
if "battery" in settings["commands"] and settings["commands"]["battery"]:
@@ -510,6 +509,7 @@ class PopupWindow(Gtk.Window):
e_box.connect('button-press-event', self.switch_menu_box)
Gdk.threads_add_timeout_seconds(GLib.PRIORITY_LOW, settings["interval"], self.refresh)
Gdk.threads_add_timeout_seconds(GLib.PRIORITY_LOW, 5, self.refresh_bat)
def on_window_exit(self, w, e):
self.hide()
@@ -567,17 +567,22 @@ class PopupWindow(Gtk.Window):
update_image(self.bt_image, icon_name, self.icon_size, self.icons_path)
self.bt_icon_name = icon_name
self.bat_label.set_text(bt_name())
self.bt_label.set_text(bt_name())
return True
def refresh_bat(self):
if self.get_visible():
if "battery" in self.settings["components"]:
msg, level = get_battery()
icon_name = bat_icon_name(level)
level, msg, charging = get_battery()
icon_name = bat_icon_name(level, charging)
if icon_name != self.bat_icon_name:
update_image(self.bat_image, icon_name, self.icon_size, self.icons_path)
self.bat_icon_name = icon_name
self.bat_label.set_text(msg)
self.bat_label.set_text("{}% {}".format(level, msg))
return True
@@ -642,14 +647,22 @@ def vol_icon_name(value, switch):
return icon_name
def bat_icon_name(value):
def bat_icon_name(value, is_charging):
icon_name = "battery-empty-symbolic"
if value > 95:
icon_name = "battery-full-symbolic"
elif value > 50:
icon_name = "battery-good-symbolic"
elif value > 20:
icon_name = "battery-low-symbolic"
if is_charging:
if value > 95:
icon_name = "battery-full-charging-symbolic"
elif value > 50:
icon_name = "battery-good-charging-symbolic"
elif value > 20:
icon_name = "battery-low-charging-symbolic"
else:
if value > 95:
icon_name = "battery-full-symbolic"
elif value > 50:
icon_name = "battery-good-symbolic"
elif value > 20:
icon_name = "battery-low-symbolic"
return icon_name

View File

@@ -5,6 +5,7 @@ import sys
import json
import subprocess
import stat
import psutil
import gi
@@ -354,48 +355,27 @@ def set_brightness(slider):
def get_battery():
if nwg_panel.common.dependencies["upower"]:
cmd = nwg_panel.common.commands["get_battery"]
elif nwg_panel.common.dependencies["acpi"]:
cmd = nwg_panel.common.commands["get_battery_alt"]
else:
return None, None
b = psutil.sensors_battery()
percent = int(round(b.percent, 0))
charging = b.power_plugged
time = seconds2string(b.secsleft) if not charging else ""
msg = ""
perc_val = 0
if cmd.split()[0] == "upower":
bat = []
try:
bat = cmd2string(cmd).splitlines()
except:
pass
state, time, percentage = "", "", ""
for line in bat:
line = line.strip()
if "time to empty" in line:
line = line.replace("time to empty", "time_to_empty")
parts = line.split()
return percent, time, charging
if "percentage:" in parts[0]:
percentage = parts[1]
perc_val = int(percentage.split("%")[0])
if "state:" in parts[0]:
state = parts[1]
if "time_to_empty:" in parts[0]:
time = " ".join(parts[1:])
msg = "{} {} {}".format(percentage, state, time)
elif cmd.split()[0] == "acpi":
bat = ""
try:
bat = cmd2string(cmd).splitlines()[0]
except:
pass
if bat:
parts = bat.split()
msg = " ".join(parts[2:])
perc_val = int(parts[3].split("%")[0])
return msg, perc_val
def seconds2string(seconds):
min, sec = divmod(seconds, 60)
hrs, min = divmod(min, 60)
hrs = str(hrs)
if len(hrs) < 2:
hrs = "0{}".format(hrs)
min = str(min)
if len(min) < 2:
min = "0{}".format(min)
return "{}:{}".format(hrs, min)
def list_interfaces():