diff options
author | streetturtle <streetturtle@gmail.com> | 2020-05-18 22:19:57 -0400 |
---|---|---|
committer | streetturtle <streetturtle@gmail.com> | 2020-05-18 22:19:57 -0400 |
commit | 94d68ccaea8adf22fa6a21ccddfa773741ec45ac (patch) | |
tree | e68989b56911ed787689de012971113972ae75dd /todo-widget | |
parent | afc5a5dd4959f40177d9c663f722fdfd829afdbc (diff) |
Fix #138
Diffstat (limited to 'todo-widget')
-rw-r--r-- | todo-widget/checkbox-checked-symbolic.svg | 148 | ||||
-rw-r--r-- | todo-widget/list-add-symbolic.svg | 157 | ||||
-rw-r--r-- | todo-widget/todo.lua | 10 | ||||
-rw-r--r-- | todo-widget/window-close-symbolic.svg | 95 |
4 files changed, 405 insertions, 5 deletions
diff --git a/todo-widget/checkbox-checked-symbolic.svg b/todo-widget/checkbox-checked-symbolic.svg new file mode 100644 index 0000000..afeca62 --- /dev/null +++ b/todo-widget/checkbox-checked-symbolic.svg @@ -0,0 +1,148 @@ +<?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" + sodipodi:docname="checkbox-checked-symbolic.svg" + inkscape:export-filename="/home/sam/dev/RESOURCES/gnome-icon-theme-symbolic/src/gnome-stencils.png" + inkscape:export-xdpi="90" + inkscape:export-ydpi="90" + height="16" + id="svg7384" + version="1.1" + inkscape:version="0.91 r13725" + width="16"> + <metadata + id="metadata90"> + <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>Gnome Symbolic Icon Theme</dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <sodipodi:namedview + inkscape:bbox-nodes="false" + inkscape:bbox-paths="true" + bordercolor="#666666" + borderopacity="1" + inkscape:current-layer="layer9" + inkscape:cx="6.52031" + inkscape:cy="7.7686" + gridtolerance="10" + inkscape:guide-bbox="true" + guidetolerance="10" + id="namedview88" + inkscape:object-nodes="false" + inkscape:object-paths="false" + objecttolerance="10" + pagecolor="#3a3b39" + inkscape:pageopacity="1" + inkscape:pageshadow="2" + showborder="false" + showgrid="false" + showguides="true" + inkscape:snap-bbox="true" + inkscape:snap-bbox-midpoints="false" + inkscape:snap-global="true" + inkscape:snap-grids="true" + inkscape:snap-nodes="true" + inkscape:snap-others="false" + inkscape:snap-to-guides="true" + inkscape:window-height="1375" + inkscape:window-maximized="1" + inkscape:window-width="2560" + inkscape:window-x="0" + inkscape:window-y="27" + inkscape:zoom="1"> + <inkscape:grid + dotted="false" + empspacing="2" + enabled="true" + id="grid4866" + originx="-159.99995px" + originy="120px" + snapvisiblegridlinesonly="true" + spacingx="1px" + spacingy="1px" + type="xygrid" + visible="true" /> + </sodipodi:namedview> + <title + id="title9167">Gnome Symbolic Icon Theme</title> + <defs + id="defs7386" /> + <g + inkscape:groupmode="layer" + id="layer9" + inkscape:label="status" + style="display:inline" + transform="translate(-401.00015,-337)"> + <path + inkscape:connector-curvature="0" + d="M 404.46875,338 C 403.10458,338 402,339.10458 402,340.46875 l 0,9.0625 c 0,1.36417 1.10458,2.46875 2.46875,2.46875 l 9.0625,0 C 414.89542,352 416,350.89542 416,349.53125 l 0,-9.0625 C 416,339.10458 414.89542,338 413.53125,338 l -9.0625,0 z m 0,1 9.0625,0 c 0.83222,0 1.46875,0.63653 1.46875,1.46875 l 0,9.0625 C 415,350.36347 414.36347,351 413.53125,351 l -9.0625,0 C 403.63653,351 403,350.36347 403,349.53125 l 0,-9.0625 C 403,339.63653 403.63653,339 404.46875,339 z" + id="rect9618-8" + style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:0.99115032;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans" /> + <path + inkscape:connector-curvature="0" + d="m 415.17698,339.82322 -5.67683,5.55178 -1.9375,-1.9375 -2.125,2.125 3,3 1.0625,1.0625 1.0625,-1.0625 4.61433,-4.73928 z" + id="path8913-6-7-1-5-1" + sodipodi:nodetypes="ccccccccc" + style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:3;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans" /> + </g> + <g + inkscape:groupmode="layer" + id="layer10" + inkscape:label="devices" + style="display:inline" + transform="translate(-401.00015,-337)" /> + <g + inkscape:groupmode="layer" + id="layer11" + inkscape:label="apps" + transform="translate(-401.00015,-337)" /> + <g + inkscape:groupmode="layer" + id="layer13" + inkscape:label="places" + style="display:inline" + transform="translate(-401.00015,-337)" /> + <g + inkscape:groupmode="layer" + id="layer14" + inkscape:label="mimetypes" + transform="translate(-401.00015,-337)" /> + <g + inkscape:groupmode="layer" + id="layer15" + inkscape:label="emblems" + style="display:inline" + transform="translate(-401.00015,-337)" /> + <g + inkscape:groupmode="layer" + id="g71291" + inkscape:label="emotes" + style="display:inline" + transform="translate(-401.00015,-337)" /> + <g + inkscape:groupmode="layer" + id="g4953" + inkscape:label="categories" + style="display:inline" + transform="translate(-401.00015,-337)" /> + <g + inkscape:groupmode="layer" + id="layer12" + inkscape:label="actions" + style="display:inline" + transform="translate(-401.00015,-337)" /> +</svg> diff --git a/todo-widget/list-add-symbolic.svg b/todo-widget/list-add-symbolic.svg new file mode 100644 index 0000000..9cc2d3a --- /dev/null +++ b/todo-widget/list-add-symbolic.svg @@ -0,0 +1,157 @@ +<?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: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="svg2" + sodipodi:version="0.32" + inkscape:version="0.48.1 r9760" + version="1.0" + sodipodi:docname="list-add.svg" + inkscape:output_extension="org.inkscape.output.svg.inkscape"> + <defs + id="defs4"> + <inkscape:perspective + sodipodi:type="inkscape:persp3d" + inkscape:vp_x="0 : 8 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_z="16 : 8 : 1" + inkscape:persp3d-origin="8 : 5.3333333 : 1" + id="perspective18" /> + <linearGradient + id="StandardGradient" + x1="7.1984468" + y1="3" + x2="7.1984468" + y2="13.008396" + gradientUnits="userSpaceOnUse"> + <stop + style="stop-color:#000000;stop-opacity:0.86274511;" + offset="0" + id="stop3283" /> + <stop + style="stop-color:#000000;stop-opacity:0.47058824;" + offset="1" + id="stop3285" /> + </linearGradient> + <inkscape:perspective + id="perspective3648" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <linearGradient + inkscape:collect="always" + xlink:href="#StandardGradient" + id="linearGradient3627" + gradientUnits="userSpaceOnUse" + x1="7.1984468" + y1="3" + x2="7.1984468" + y2="13.008396" + gradientTransform="translate(-20,0)" /> + <clipPath + clipPathUnits="userSpaceOnUse" + id="clipPath3649"> + <path + style="fill:#ff00ff;fill-opacity:1;stroke:none;display:inline" + d="m -20,0 0,16 16,0 0,-16 -16,0 z m 6.03125,3 4,0 0,3 L -7,6 l 0,4 -2.96875,0 0,3 -4,0 0,-3 -3.03125,0 0,-4 3.03125,0 0,-3 z" + id="path3651" /> + </clipPath> + <linearGradient + inkscape:collect="always" + xlink:href="#StandardGradient" + id="linearGradient3273" + gradientUnits="userSpaceOnUse" + x1="7.1984468" + y1="3" + x2="7.1984468" + y2="13.008396" /> + <linearGradient + inkscape:collect="always" + xlink:href="#StandardGradient" + id="linearGradient3277" + gradientUnits="userSpaceOnUse" + x1="7.1984468" + y1="3" + x2="7.1984468" + y2="13.008396" /> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#9a9a9a" + borderopacity="1" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="17.631088" + inkscape:cx="-7.1895071" + inkscape:cy="5.6066362" + inkscape:document-units="px" + inkscape:current-layer="layer3" + showgrid="true" + inkscape:showpageshadow="false" + showguides="true" + inkscape:guide-bbox="true" + inkscape:window-width="1920" + inkscape:window-height="1028" + inkscape:window-x="0" + inkscape:window-y="25" + inkscape:window-maximized="1"> + <sodipodi:guide + orientation="1,0" + position="0,112" + id="guide2383" /> + <sodipodi:guide + orientation="0,1" + position="26.278146,128" + id="guide2385" /> + <sodipodi:guide + orientation="1,0" + position="128,54.082119" + id="guide2387" /> + <sodipodi:guide + orientation="0,1" + position="78.156291,0" + id="guide2389" /> + <inkscape:grid + type="xygrid" + id="grid3672" + visible="true" + enabled="true" /> + </sodipodi:namedview> + <metadata + id="metadata7"> + <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> + <g + inkscape:groupmode="layer" + id="layer3" + inkscape:label="Cross" + style="display:inline"> + <path + style="fill:#bebebe;fill-opacity:1;stroke:none" + d="m 7.0372441,3 0,4.0117466 -4.0372441,0 0,1.9731062 4.0372441,0 0,4.0151472 1.9884029,0 0,-4.0151472 3.974353,0 0,-1.9731062 -3.974353,0 0,-4.0117466 z" + id="Symbol" + sodipodi:nodetypes="ccccccccccccc" + inkscape:label="#rect2498" + inkscape:connector-curvature="0" /> + </g> +</svg> diff --git a/todo-widget/todo.lua b/todo-widget/todo.lua index f8e2977..befe51e 100644 --- a/todo-widget/todo.lua +++ b/todo-widget/todo.lua @@ -17,12 +17,12 @@ local beautiful = require("beautiful") local gfs = require("gears.filesystem") local HOME_DIR = os.getenv("HOME") - +local WIDGET_DIR = HOME_DIR .. '/.config/awesome/awesome-wm-widgets/todo-widget' local STORAGE = HOME_DIR .. '/.cache/awmw/todo-widget/todos.json' + local GET_TODO_ITEMS = 'bash -c "cat ' .. STORAGE .. '"' local rows = { layout = wibox.layout.fixed.vertical } - local todo_widget = {} todo_widget.widget = wibox.widget { @@ -74,7 +74,7 @@ local popup = awful.popup{ local add_button = wibox.widget { { { - image = '/usr/share/icons/Arc/actions/symbolic/list-add-symbolic.svg', + image = WIDGET_DIR .. '/list-add-symbolic.svg', resize = false, widget = wibox.widget.imagebox }, @@ -130,7 +130,7 @@ local function worker(args) local args = args or {} - local icon = args.icon or '/usr/share/icons/Arc/status/symbolic/checkbox-checked-symbolic.svg' + local icon = args.icon or WIDGET_DIR .. '/checkbox-checked-symbolic.svg' todo_widget.widget:set_icon(icon) @@ -185,7 +185,7 @@ local function worker(args) local trash_button = wibox.widget { { - { image = '/usr/share/icons/Arc/actions/symbolic/window-close-symbolic.svg', + { image = WIDGET_DIR .. '/window-close-symbolic.svg', resize = false, widget = wibox.widget.imagebox }, diff --git a/todo-widget/window-close-symbolic.svg b/todo-widget/window-close-symbolic.svg new file mode 100644 index 0000000..46ff888 --- /dev/null +++ b/todo-widget/window-close-symbolic.svg @@ -0,0 +1,95 @@ +<?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" + id="svg7384" + version="1.1" + height="16" + width="16" + inkscape:version="0.48.5 r10040" + sodipodi:docname="window-close-symbolic.svg"> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="1366" + inkscape:window-height="723" + id="namedview15" + showgrid="true" + inkscape:zoom="14.75" + inkscape:cx="14.600061" + inkscape:cy="10.005214" + inkscape:window-x="0" + inkscape:window-y="23" + inkscape:window-maximized="1" + inkscape:current-layer="svg7384"> + <inkscape:grid + type="xygrid" + id="grid2992" /> + </sodipodi:namedview> + <title + id="title9167">Gnome Symbolic Icon Theme</title> + <metadata + id="metadata90"> + <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>Gnome Symbolic Icon Theme</dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <defs + id="defs7386" /> + <g + transform="translate(-60,-518)" + id="layer9" + style="display:inline" /> + <g + transform="translate(-60,-518)" + id="layer10" /> + <g + transform="translate(-60,-518)" + id="layer11" /> + <g + id="g2996" + transform="matrix(0.75,0,0,0.75,2,2.0546875)"> + <g + id="layer12" + transform="translate(-60,-518)"> + <g + style="display:inline" + id="layer4-4-1" + transform="translate(19,-242)"> + <path + style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;color:#bebebe;fill:#bebebe;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.78124988;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:new;font-family:Andale Mono;-inkscape-font-specification:Andale Mono" + id="path10839-9" + d="m 45,764 1,0 c 0.01037,-1.2e-4 0.02079,-4.6e-4 0.03125,0 0.254951,0.0112 0.50987,0.12858 0.6875,0.3125 L 49,766.59375 51.3125,764.3125 C 51.578125,764.082 51.759172,764.007 52,764 l 1,0 0,1 c 0,0.28647 -0.03434,0.55065 -0.25,0.75 l -2.28125,2.28125 2.25,2.25 C 52.906938,770.46942 52.999992,770.7347 53,771 l 0,1 -1,0 c -0.265301,-10e-6 -0.530586,-0.0931 -0.71875,-0.28125 L 49,769.4375 46.71875,771.71875 C 46.530586,771.90694 46.26529,772 46,772 l -1,0 0,-1 c -3e-6,-0.26529 0.09306,-0.53058 0.28125,-0.71875 l 2.28125,-2.25 L 45.28125,765.75 C 45.070508,765.55537 44.97809,765.28075 45,765 l 0,-1 z" + inkscape:connector-curvature="0" /> + </g> + </g> + </g> + <g + transform="translate(-60,-518)" + id="layer13" /> + <g + transform="translate(-60,-518)" + id="layer14" /> + <g + transform="translate(-60,-518)" + id="layer15" /> +</svg> |