Make main menu icon configurable and add nice default

This commit is contained in:
Alice Gaudon 2020-10-02 18:38:14 +02:00
parent e689f17a56
commit 9ea205e39c
3 changed files with 123 additions and 1 deletions

View File

@ -0,0 +1,121 @@
<?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="200mm"
height="200mm"
viewBox="0 0 200 200"
version="1.1"
id="svg8"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="material-tux-dark-keen.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.90994277"
inkscape:cx="350.2857"
inkscape:cy="319.39102"
inkscape:document-units="mm"
inkscape:current-layer="g4606"
showgrid="false"
showguides="true"
inkscape:window-width="1872"
inkscape:window-height="1048"
inkscape:window-x="48"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:guide-bbox="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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-97)">
<g
id="g4606"
transform="translate(1.2336293,-3.4952828)">
<g
id="g1038">
<path
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:6.49421787;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 177.68794,190.49937 c 0,0 -23.16838,2.65138 -31.05505,15.09883 -7.49484,11.82901 -4.47112,26.4529 1.14862,38.9909 3.2725,7.30115 11.56881,21.00378 15.03749,25.9265 -63.810227,46.8337 -117.576888,14.31775 -131.174319,-2.62231 14.773827,-76.91215 38.345043,-96.27794 48.002553,-89.89777"
id="path4549"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cssccc" />
<path
style="fill:#ffd36e;fill-opacity:1;stroke:none;stroke-width:0.35318846px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 72.966091,291.28148 c -9.960689,-26.58036 -13.102884,-67.10418 5.187039,-74.43775 9.698358,-3.88868 15.252637,15.12855 63.74841,-7.15623 l 6.97249,-10.4788 -79.685525,-25.30246 c 0,0 -30.380104,47.79352 -30.380104,48.81586 0,1.02231 15.190054,61.59486 15.190054,61.59486 z"
id="path4568"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cscccscc" />
<path
style="fill:#084652;fill-opacity:1;stroke:#fafafa;stroke-width:6.41012049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 67.238694,289.74799 c -23.8047,-6.55993 -46.249369,-29.82674 -52.833985,-43.76809 2.004366,-74.88295 33.9284,-130.54634 84.459151,-129.25976 21.18364,0.53936 40.72217,20.75812 45.59435,42.74654 13.96298,6.36408 30.0146,16.35315 33.22973,31.03269 0,0 -24.32318,5.73913 -55.41643,13.62922 -27.513585,6.98174 -43.524411,-10.71689 -48.918666,-15.89018 -27.679288,31.60014 -18.72897,82.70382 -6.11415,101.50958"
id="path4549-6"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccsccscc" />
<ellipse
ry="12.049064"
rx="11.739654"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:6.41012049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4566"
cx="94.961777"
cy="163.04408" />
<ellipse
id="path3713"
cx="98.821571"
cy="200.23102"
rx="95.124596"
ry="95.331467"
style="fill:none;fill-opacity:0.01459853;stroke:#fafafa;stroke-width:9.56445503;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="fill:none;fill-opacity:1;stroke:#fafafa;stroke-width:6.41012049;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 177.68794,190.49937 c 0,0 -23.16836,2.65138 -31.05505,15.09883 -7.49484,11.82901 -4.47111,26.4529 1.14862,38.9909 3.2725,7.30115 11.56881,21.00378 15.03751,25.9265"
id="path4549-7"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cssc" />
<path
style="fill:none;fill-opacity:1;stroke:none;stroke-width:2.46286368;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 160.35487,260.46959 c -8.73636,-14.46535 -12.08935,-21.83387 -14.05306,-30.88291 -0.77619,-3.57682 -0.91281,-10.2595 -0.27432,-13.41916 1.20607,-5.96848 3.7719,-10.28683 8.04737,-13.54389 4.38528,-3.34071 8.2707,-4.92463 17.60237,-7.17576 4.00918,-0.96716 7.51698,-1.88347 7.79511,-2.03624 0.76419,-0.41977 1.47314,-1.79115 1.47419,-2.85166 3.5e-4,-0.51988 -0.29202,-1.90001 -0.65007,-3.06696 -3.30372,-10.76747 -12.60687,-19.94411 -28.64811,-28.25856 l -4.27288,-2.21471 -1.15247,-3.58707 c -2.93221,-9.12646 -9.16248,-19.1435 -15.96767,-25.67288 -8.11036,-7.78165 -16.78281,-12.37263 -26.36006,-13.95438 -2.93998,-0.48556 -10.008106,-0.55299 -13.847615,-0.13212 -24.511662,2.68693 -45.105718,18.61829 -59.313524,45.88437 -8.742284,16.77725 -14.784353,37.52759 -17.743688,60.93733 -0.345221,2.73089 -0.636242,5.08861 -0.646708,5.2394 -0.08749,1.26027 -2.262982,-8.43633 -2.9775641,-13.2716 C 8.6837983,207.84548 8.4241047,197.59887 8.8634618,192.6276 10.732949,171.47452 19.499128,152.34313 34.26758,137.18544 c 6.939605,-7.12251 14.633873,-12.85026 23.152331,-17.23502 32.769034,-16.86743 72.245249,-12.23818 100.186499,11.74856 15.96925,13.70912 26.8817,33.13934 30.28713,53.92788 1.62806,9.93852 1.53733,21.10462 -0.25023,30.79743 -1.61232,8.74257 -4.96793,18.43916 -8.96202,25.89719 -4.0573,7.57609 -8.09244,13.22716 -14.32734,20.06497 l -1.70926,1.87455 z"
id="path4589"
inkscape:connector-curvature="0" />
<path
style="fill:none;fill-opacity:1;stroke:none;stroke-width:2.46286368;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 160.35487,260.46959 c -8.73636,-14.46535 -12.08935,-21.83387 -14.05306,-30.88291 -0.77619,-3.57682 -0.91281,-10.2595 -0.27432,-13.41916 1.20607,-5.96848 3.7719,-10.28683 8.04737,-13.54389 4.38528,-3.34071 8.2707,-4.92463 17.60237,-7.17576 4.00918,-0.96716 7.51698,-1.88347 7.79511,-2.03624 0.76419,-0.41977 1.47314,-1.79115 1.47419,-2.85166 3.5e-4,-0.51988 -0.29202,-1.90001 -0.65007,-3.06696 -3.30372,-10.76747 -12.60687,-19.94411 -28.64811,-28.25856 l -4.27288,-2.21471 -1.15247,-3.58707 c -2.93221,-9.12646 -9.16248,-19.1435 -15.96767,-25.67288 -8.11036,-7.78165 -16.78281,-12.37263 -26.36006,-13.95438 -2.93998,-0.48556 -10.008106,-0.55299 -13.847615,-0.13212 -24.511662,2.68693 -45.105718,18.61829 -59.313524,45.88437 -8.742284,16.77725 -14.784353,37.52759 -17.743688,60.93733 -0.345221,2.73089 -0.636242,5.08861 -0.646708,5.2394 -0.08749,1.26027 -2.262982,-8.43633 -2.9775641,-13.2716 C 8.6837983,207.84548 8.4241047,197.59887 8.8634618,192.6276 10.732949,171.47452 19.499128,152.34313 34.26758,137.18544 c 6.939605,-7.12251 14.633873,-12.85026 23.152331,-17.23502 32.769034,-16.86743 72.245249,-12.23818 100.186499,11.74856 15.96925,13.70912 26.8817,33.13934 30.28713,53.92788 1.62806,9.93852 1.53733,21.10462 -0.25023,30.79743 -1.61232,8.74257 -4.96793,18.43916 -8.96202,25.89719 -4.0573,7.57609 -8.09244,13.22716 -14.32734,20.06497 l -1.70926,1.87455 z"
id="path4591"
inkscape:connector-curvature="0" />
<rect
style="fill:#ab5e5e;fill-opacity:1;stroke:none;stroke-width:3.44800925;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect4595"
width="1.0836483"
height="0.27805224"
x="193.94614"
y="113.36066" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@ -159,6 +159,7 @@ theme.layout_cornersw = themes_path.."default/layouts/cornersww.png"
theme.layout_cornerse = themes_path.."default/layouts/cornersew.png" theme.layout_cornerse = themes_path.."default/layouts/cornersew.png"
-- Generate Awesome icon: -- Generate Awesome icon:
theme.start_menu_icon = simple_awesome_path .. "/assets/icons/material-tux-dark-keen.svg"
theme.awesome_icon = theme_assets.awesome_icon( theme.awesome_icon = theme_assets.awesome_icon(
theme.menu_height, theme.bg_focus, theme.fg_focus theme.menu_height, theme.bg_focus, theme.fg_focus
) )

View File

@ -163,7 +163,7 @@ hotkey.registerKeys(hotkey.make(config.keys.global_keys.lock_screen, lockScreen,
-- Launcher (start menu) -- Launcher (start menu)
-- --
local launcher = awful.widget.button({ local launcher = awful.widget.button({
image = beautiful.awesome_icon, image = beautiful.start_menu_icon,
}) })
launcher:buttons(gears.table.join(launcher:buttons(), launcher:buttons(gears.table.join(launcher:buttons(),
awful.button({}, 1, nil, function() showAppLauncher(false) end))) awful.button({}, 1, nil, function() showAppLauncher(false) end)))