some updates

This commit is contained in:
Sense T 2023-07-04 09:44:02 +08:00
parent ee4a21c314
commit f86cdcf659
5 changed files with 135 additions and 6 deletions

View File

@ -122,7 +122,7 @@ bind = $mainMod, RETURN, exec, kitty
bind = $mainMod SHIFT, Q, killactive,
bind = $mainMod, M, exec, nwg-bar
bind = $mainMod, V, togglefloating,
bind = $mainMod, R, exec, nwg-drawer -lang zh
bind = $mainMod, R, exec, nwg-drawer -lang zh_CN -nocats -nofs
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle

View File

@ -1,12 +1,12 @@
[
{
"label": "Reboot",
"label": "重启",
"exec": "systemctl reboot",
"icon": "/usr/share/nwg-bar/images/system-reboot.svg"
"icon": "~/.config/nwg-bar/images/system-reboot.svg"
},
{
"label": "Shutdown",
"label": "关机",
"exec": "systemctl -i poweroff",
"icon": "/usr/share/nwg-bar/images/system-shutdown.svg"
"icon": "~/.config/nwg-bar/images/system-shutdown.svg"
}
]

View File

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="16"
height="16"
version="1"
id="svg6"
sodipodi:docname="system-reboot.svg"
inkscape:version="1.1 (c4e8f9ed74, 2021-05-24)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<metadata
id="metadata12">
<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>
<defs
id="defs10" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1559"
inkscape:window-height="913"
id="namedview8"
showgrid="false"
inkscape:zoom="14.75"
inkscape:cx="-0.033898305"
inkscape:cy="17.288136"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="0"
inkscape:current-layer="svg6"
inkscape:pagecheckerboard="0" />
<circle
fill="#eac046"
cx="8"
cy="8"
r="8"
id="circle2"
style="fill:none;fill-opacity:1" />
<g
aria-label=""
id="text830"
style="font-size:13.7728px;line-height:1.25;letter-spacing:0px;word-spacing:0px;fill:#ffffff;stroke-width:0.344321">
<path
d="m 11.873587,5.5521109 q 0.33625,0.5245501 0.52455,1.1567001 0.20175,0.63215 0.20175,1.2912 0,0.95495 -0.36315,1.7888501 -0.36315,0.8338999 -0.9953,1.4660499 -0.6187,0.6187 -1.4525998,0.98185 -0.8339,0.36315 -1.7888501,0.36315 v 1.7216 l -2.2865,-2.3134 2.2865,-2.2864999 v 1.7215999 q 0.71285,0 1.3450001,-0.269 0.63215,-0.269 1.0894498,-0.7263 0.47075,-0.4707499 0.73975,-1.1028999 0.269,-0.6187001 0.269,-1.3450001 0,-0.44385 -0.1076,-0.84735 -0.1076,-0.4035 -0.2959,-0.76665 z m -3.8735999,-0.9953 q -0.71285,0 -1.345,0.269 -0.63215,0.269 -1.1029001,0.73975 -0.4573,0.4707501 -0.7263,1.0894501 -0.269,0.63215 -0.269,1.345 0,0.44385 0.09415,0.84735 0.1076,0.4035001 0.30935,0.7666501 l -0.8339,0.8338999 q -0.33625,-0.5245499 -0.538,-1.1432499 -0.1883,-0.6321501 -0.1883,-1.3046501 0,-0.9415 0.36315,-1.7754 0.36315,-0.8473501 0.98185,-1.4660501 0.63215,-0.63215 1.4660501,-0.9953 0.8339,-0.36315 1.78885,-0.36315 V 1.6785108 L 10.286487,3.9919109 7.9999871,6.278411 Z"
id="path824" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -0,0 +1,64 @@
<?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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
version="1"
id="svg8"
sodipodi:docname="system-shutdown.svg"
inkscape:version="0.92.4 5da689c313, 2019-01-14">
<metadata
id="metadata14">
<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>
<defs
id="defs12" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1910"
inkscape:window-height="1045"
id="namedview10"
showgrid="false"
inkscape:zoom="14.75"
inkscape:cx="-31.016949"
inkscape:cy="8"
inkscape:window-x="1925"
inkscape:window-y="30"
inkscape:window-maximized="1"
inkscape:current-layer="svg8" />
<circle
fill="#c2352a"
cx="8"
cy="8"
r="8"
id="circle2"
style="fill:none;fill-opacity:1" />
<path
fill="#fff"
d="m8 3a5 5 0 0 0 -5 5 5 5 0 0 0 5 5 5 5 0 0 0 5 -5 5 5 0 0 0 -5 -5zm0 1a4 4 0 0 1 4 4 4 4 0 0 1 -4 4 4 4 0 0 1 -4 -4 4 4 0 0 1 4 -4z"
id="path4" />
<path
fill="#fff"
d="m8 6c-0.554 0-1 0.223-1 0.5v3c0 0.277 0.446 0.5 1 0.5s1-0.223 1-0.5v-3c0-0.277-0.446-0.5-1-0.5z"
id="path6" />
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -1,5 +1,5 @@
window {
background-color: rgba (36, 47, 79, 0.95);
background-color: #000000F0;
color: #eeeeee
}