Commit af676529 authored by vinceliuice's avatar vinceliuice 🎧
Browse files

update sddm install script

parent f6abc622
......@@ -36,14 +36,14 @@
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1366"
inkscape:window-height="692"
inkscape:window-height="710"
id="namedview73"
showgrid="true"
inkscape:zoom="3.4766084"
inkscape:cx="21.909613"
inkscape:cy="19.981491"
inkscape:zoom="4.9166667"
inkscape:cx="41.405209"
inkscape:cy="20.308899"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:current-layer="svg71">
<inkscape:grid
......@@ -130,7 +130,7 @@
inkscape:connector-curvature="0"
id="path855"
d="M 13.818182,41.999999 A 5.8181817,5.8181817 0 0 1 8,47.81818 5.8181817,5.8181817 0 0 1 2.1818182,41.999999 5.8181817,5.8181817 0 0 1 8,36.181817 a 5.8181817,5.8181817 0 0 1 5.818182,5.818182 z"
style="fill:#4d4d4d;fill-opacity:1;stroke-width:0.83116883" />
style="fill:#333333;fill-opacity:1;stroke-width:0.83116883" />
<rect
id="rect857"
transform="rotate(90)"
......@@ -154,7 +154,7 @@
inkscape:connector-curvature="0"
id="path863"
d="M 13.818182,25.999999 A 5.8181817,5.8181817 0 0 1 8,31.81818 5.8181817,5.8181817 0 0 1 2.1818182,25.999999 5.8181817,5.8181817 0 0 1 8,20.181817 a 5.8181817,5.8181817 0 0 1 5.818182,5.818182 z"
style="fill:#4d4d4d;fill-opacity:1;stroke-width:0.83116883" />
style="fill:#333333;fill-opacity:1;stroke-width:0.83116883" />
<path
id="path865"
transform="matrix(0.72727273,0,0,0.72727273,0,18)"
......@@ -176,7 +176,7 @@
inkscape:connector-curvature="0"
id="path871"
d="M 13.818182,57.999999 A 5.8181817,5.8181817 0 0 1 8,63.81818 5.8181817,5.8181817 0 0 1 2.1818182,57.999999 5.8181817,5.8181817 0 0 1 8,52.181817 a 5.8181817,5.8181817 0 0 1 5.818182,5.818182 z"
style="fill:#4d4d4d;fill-opacity:1;stroke-width:0.83116883" />
style="fill:#333333;fill-opacity:1;stroke-width:0.83116883" />
<path
inkscape:connector-curvature="0"
id="path873"
......
<svg width="30" height="30" version="1.1" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg">
<defs>
<style id="current-color-scheme" type="text/css">.ColorScheme-Text {
<?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="30"
height="30"
version="1.1"
viewBox="0 0 30 30"
id="svg31"
sodipodi:docname="bar_meter_horizontal.svg"
inkscape:version="0.92.4 5da689c313, 2019-01-14">
<metadata
id="metadata35">
<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>
<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="710"
id="namedview33"
showgrid="false"
inkscape:zoom="15.733333"
inkscape:cx="17.925545"
inkscape:cy="16.1353"
inkscape:window-x="0"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:current-layer="svg31" />
<defs
id="defs3">
<style
id="current-color-scheme"
type="text/css">.ColorScheme-Text {
color:#31363b;
stop-color:#31363b;
}
......@@ -44,31 +93,118 @@
color:#3daee9;
stop-color:#3daee9;
}</style>
</defs>
<g transform="translate(0 -904.36)">
<rect id="hint-tile-center" y="904.36" width="4" height="4" fill="#ff2a2a"/>
<rect id="hint-bar-size" x="6" y="904.36" width="6" height="6" fill="#ff2a2a"/>
<g fill="#ccc">
<path id="bar-inactive-bottomright" transform="translate(0 904.36)" d="m17 15v3c1.662 0 3-1.338 3-3h-3z"/>
<path id="bar-inactive-right" transform="translate(0 904.36)" d="m17 12v2h3v-2h-3z"/>
<path id="bar-inactive-topright" transform="translate(0 904.36)" d="m17 8v3h3c0-1.662-1.338-3-3-3z"/>
<path id="bar-inactive-bottomleft" transform="translate(0 904.36)" d="m10 15c0 1.662 1.338 3 3 3v-3h-3z"/>
<path id="bar-inactive-left" transform="translate(0 904.36)" d="m10 12v2h3v-2h-3z"/>
<path id="bar-inactive-topleft" transform="translate(0 904.36)" d="m13 8c-1.662 0-3 1.338-3 3h3v-3z"/>
<path id="bar-inactive-bottom" transform="translate(0 904.36)" d="m14 15v3h2v-3h-2z"/>
<path id="bar-inactive-center" transform="translate(0 904.36)" d="m16 12h-2v2h2v-2z"/>
<path id="bar-inactive-top" transform="translate(0 904.36)" d="m14 8v3h2v-3h-2z"/>
</g>
<g fill="#4285f4">
<path id="bar-active-bottomright" class="ColorScheme-Highlight" d="m17 931.36v3c1.662 0 3-1.338 3-3h-3z"/>
<path id="bar-active-right" class="ColorScheme-Highlight" d="m17 928.36v2h3v-2h-3z"/>
<path id="bar-active-topright" class="ColorScheme-Highlight" d="m17 924.36v3h3c0-1.662-1.338-3-3-3z"/>
<path id="bar-active-bottomleft" class="ColorScheme-Highlight" d="m10 931.36c0 1.662 1.338 3 3 3v-3h-3z"/>
<path id="bar-active-left" class="ColorScheme-Highlight" d="m10 928.36v2h3v-2h-3z"/>
<path id="bar-active-topleft" class="ColorScheme-Highlight" d="m13 924.36c-1.662 0-3 1.338-3 3h3v-3z"/>
<path id="bar-active-bottom" class="ColorScheme-Highlight" d="m14 931.36v3h2v-3h-2z"/>
<path id="bar-active-center" class="ColorScheme-Highlight" d="m16 928.36h-2v2h2v-2z"/>
<path id="bar-active-top" class="ColorScheme-Highlight" d="m14 924.36v3h2v-3h-2z"/>
</g>
</g>
</defs>
<rect
style="fill:#ff2a2a"
x="0"
height="4"
width="4"
y="-1.4648437e-05"
id="hint-tile-center" />
<rect
style="fill:#ff2a2a"
height="6"
width="6"
y="-1.4648437e-05"
x="6"
id="hint-bar-size" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-bottomright"
d="m 17,15 v 3 c 1.662,0 3,-1.338 3,-3 z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-right"
d="m 17,12 v 2 h 3 v -2 z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-topright"
d="m 17,8 v 3 h 3 C 20,9.338 18.662,8 17,8 Z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-bottomleft"
d="m 10,15 c 0,1.662 1.338,3 3,3 v -3 z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-left"
d="m 10,12 v 2 h 3 v -2 z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-topleft"
d="m 13,8 c -1.662,0 -3,1.338 -3,3 h 3 z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-bottom"
d="m 14,15 v 3 h 2 v -3 z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-center"
d="m 16,12 h -2 v 2 h 2 z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-top"
d="m 14,8 v 3 h 2 V 8 Z"
inkscape:connector-curvature="0" />
<path
id="bar-active-bottomright"
class="ColorScheme-Highlight"
d="m 17,27 v 3 c 1.662,0 3,-1.338 3,-3 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-right"
class="ColorScheme-Highlight"
d="m 17,24 v 2 h 3 v -2 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-topright"
class="ColorScheme-Highlight"
d="m 17,20 v 3 h 3 c 0,-1.662 -1.338,-3 -3,-3 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-bottomleft"
class="ColorScheme-Highlight"
d="m 10,27 c 0,1.662 1.338,3 3,3 v -3 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-left"
class="ColorScheme-Highlight"
d="m 10,24 v 2 h 3 v -2 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-topleft"
class="ColorScheme-Highlight"
d="m 13,20 c -1.662,0 -3,1.338 -3,3 h 3 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-bottom"
class="ColorScheme-Highlight"
d="m 14,27 v 3 h 2 v -3 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-center"
class="ColorScheme-Highlight"
d="m 16,24 h -2 v 2 h 2 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-top"
class="ColorScheme-Highlight"
d="m 14,20 v 3 h 2 v -3 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
</svg>
<svg width="30" height="30" version="1.1" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg">
<defs>
<style id="current-color-scheme" type="text/css">.ColorScheme-Text {
<?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="30"
height="30"
version="1.1"
viewBox="0 0 30 30"
id="svg31"
sodipodi:docname="bar_meter_vertical.svg"
inkscape:version="0.92.4 5da689c313, 2019-01-14">
<metadata
id="metadata35">
<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>
<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="710"
id="namedview33"
showgrid="false"
inkscape:zoom="7.8666667"
inkscape:cx="15"
inkscape:cy="15"
inkscape:window-x="0"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:current-layer="svg31" />
<defs
id="defs3">
<style
id="current-color-scheme"
type="text/css">.ColorScheme-Text {
color:#31363b;
stop-color:#31363b;
}
......@@ -44,31 +93,118 @@
color:#3daee9;
stop-color:#3daee9;
}</style>
</defs>
<g transform="translate(0 -904.36)">
<rect id="hint-tile-center" y="904.36" width="4" height="4" fill="#ff2a2a"/>
<rect id="hint-bar-size" x="6" y="904.36" width="6" height="6" fill="#ff2a2a"/>
<g fill="#ccc">
<path id="bar-inactive-bottomright" transform="translate(0 904.36)" d="m17 15v3c1.662 0 3-1.338 3-3h-3z"/>
<path id="bar-inactive-right" transform="translate(0 904.36)" d="m17 12v2h3v-2h-3z"/>
<path id="bar-inactive-topright" transform="translate(0 904.36)" d="m17 8v3h3c0-1.662-1.338-3-3-3z"/>
<path id="bar-inactive-bottomleft" transform="translate(0 904.36)" d="m10 15c0 1.662 1.338 3 3 3v-3h-3z"/>
<path id="bar-inactive-left" transform="translate(0 904.36)" d="m10 12v2h3v-2h-3z"/>
<path id="bar-inactive-topleft" transform="translate(0 904.36)" d="m13 8c-1.662 0-3 1.338-3 3h3v-3z"/>
<path id="bar-inactive-bottom" transform="translate(0 904.36)" d="m14 15v3h2v-3h-2z"/>
<path id="bar-inactive-center" transform="translate(0 904.36)" d="m16 12h-2v2h2v-2z"/>
<path id="bar-inactive-top" transform="translate(0 904.36)" d="m14 8v3h2v-3h-2z"/>
</g>
<g fill="#4285f4">
<path id="bar-active-bottomright" class="ColorScheme-Highlight" d="m17 931.36v3c1.662 0 3-1.338 3-3h-3z"/>
<path id="bar-active-right" class="ColorScheme-Highlight" d="m17 928.36v2h3v-2h-3z"/>
<path id="bar-active-topright" class="ColorScheme-Highlight" d="m17 924.36v3h3c0-1.662-1.338-3-3-3z"/>
<path id="bar-active-bottomleft" class="ColorScheme-Highlight" d="m10 931.36c0 1.662 1.338 3 3 3v-3h-3z"/>
<path id="bar-active-left" class="ColorScheme-Highlight" d="m10 928.36v2h3v-2h-3z"/>
<path id="bar-active-topleft" class="ColorScheme-Highlight" d="m13 924.36c-1.662 0-3 1.338-3 3h3v-3z"/>
<path id="bar-active-bottom" class="ColorScheme-Highlight" d="m14 931.36v3h2v-3h-2z"/>
<path id="bar-active-center" class="ColorScheme-Highlight" d="m16 928.36h-2v2h2v-2z"/>
<path id="bar-active-top" class="ColorScheme-Highlight" d="m14 924.36v3h2v-3h-2z"/>
</g>
</g>
</defs>
<rect
style="fill:#ff2a2a"
x="0"
height="4"
width="4"
y="-1.4648437e-05"
id="hint-tile-center" />
<rect
style="fill:#ff2a2a"
height="6"
width="6"
y="-1.4648437e-05"
x="6"
id="hint-bar-size" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-bottomright"
d="m 17,15 v 3 c 1.662,0 3,-1.338 3,-3 z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-right"
d="m 17,12 v 2 h 3 v -2 z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-topright"
d="m 17,8 v 3 h 3 C 20,9.338 18.662,8 17,8 Z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-bottomleft"
d="m 10,15 c 0,1.662 1.338,3 3,3 v -3 z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-left"
d="m 10,12 v 2 h 3 v -2 z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-topleft"
d="m 13,8 c -1.662,0 -3,1.338 -3,3 h 3 z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-bottom"
d="m 14,15 v 3 h 2 v -3 z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-center"
d="m 16,12 h -2 v 2 h 2 z"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;opacity:0.25"
id="bar-inactive-top"
d="m 14,8 v 3 h 2 V 8 Z"
inkscape:connector-curvature="0" />
<path
id="bar-active-bottomright"
class="ColorScheme-Highlight"
d="m 17,27 v 3 c 1.662,0 3,-1.338 3,-3 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-right"
class="ColorScheme-Highlight"
d="m 17,24 v 2 h 3 v -2 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-topright"
class="ColorScheme-Highlight"
d="m 17,20 v 3 h 3 c 0,-1.662 -1.338,-3 -3,-3 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-bottomleft"
class="ColorScheme-Highlight"
d="m 10,27 c 0,1.662 1.338,3 3,3 v -3 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-left"
class="ColorScheme-Highlight"
d="m 10,24 v 2 h 3 v -2 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-topleft"
class="ColorScheme-Highlight"
d="m 13,20 c -1.662,0 -3,1.338 -3,3 h 3 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-bottom"
class="ColorScheme-Highlight"
d="m 14,27 v 3 h 2 v -3 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-center"
class="ColorScheme-Highlight"
d="m 16,24 h -2 v 2 h 2 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
<path
id="bar-active-top"
class="ColorScheme-Highlight"
d="m 14,20 v 3 h 2 v -3 z"
inkscape:connector-curvature="0"
style="color:#3daee9;fill:#4285f4" />
</svg>
......@@ -36,14 +36,14 @@
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1366"
inkscape:window-height="692"
inkscape:window-height="710"
id="namedview416"
showgrid="true"
inkscape:zoom="4"
inkscape:cx="146.85847"
inkscape:cy="75.365914"
inkscape:zoom="2.8284271"
inkscape:cx="123.27723"
inkscape:cy="144.33401"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:current-layer="svg414"
inkscape:snap-bbox="true"
......@@ -166,7 +166,7 @@
x="91"
id="normal-hint-compose-over-border" />
<path
style="color:#3daee6;opacity:1;fill:#4285f4;stroke-width:0.70710599;fill-opacity:1"
style="color:#3daee6;opacity:0.25;fill:#ffffff;stroke-width:0.70710599;fill-opacity:1"
inkscape:connector-curvature="0"
d="M 110.00003,72.00005 V 96 h 48 V 72.00005 Z"
class="ColorScheme-Highlight"
......@@ -176,7 +176,7 @@
id="hover-topleft"
style="opacity:1">
<path
style="color:#3daee6;opacity:1;fill:#4285f4;stroke-width:1.25000119"
style="color:#3daee6;opacity:0.25;fill:#ffffff;stroke-width:1.25000119"
d="m 190.14,824.86 c -2.77,0 -5,2.23 -5,5 h 5 z"
id="path5201"
inkscape:connector-curvature="0" />
......@@ -196,7 +196,7 @@
id="hover-top"
style="opacity:1">
<path
style="color:#3daee6;opacity:1;fill:#4285f4;fill-opacity:1;stroke-width:1.11803782"
style="color:#3daee6;opacity:0.25;fill:#ffffff;fill-opacity:1;stroke-width:1.11803782"
inkscape:connector-curvature="0"
id="path13-26"
d="M 190.14,824.85997 V 829.86 h 131 v -5.00003 z"
......
#!/bin/bash
cp -r ChromeOS /usr/share/sddm/themes
ROOT_UID=0
THEME_DIR="/usr/share/sddm/themes"
REO_DIR="$(cd $(dirname $0) && pwd)"
MAX_DELAY=20 # max delay for user to enter root password
#COLORS
CDEF=" \033[0m" # default color
CCIN=" \033[0;36m" # info color
CGSC=" \033[0;32m" # success color
CRER=" \033[0;31m" # error color
CWAR=" \033[0;33m" # waring color
b_CDEF=" \033[1;37m" # bold default color
b_CCIN=" \033[1;36m" # bold info color
b_CGSC=" \033[1;32m" # bold success color
b_CRER=" \033[1;31m" # bold error color
b_CWAR=" \033[1;33m" # bold warning color
# echo like ... with flag type and display message colors
prompt () {
case ${1} in
"-s"|"--success")
echo -e "${b_CGSC}${@/-s/}${CDEF}";; # print success message
"-e"|"--error")
echo -e "${b_CRER}${@/-e/}${CDEF}";; # print error message
"-w"|"--warning")
echo -e "${b_CWAR}${@/-w/}${CDEF}";; # print warning message
"-i"|"--info")
echo -e "${b_CCIN}${@/-i/}${CDEF}";; # print info message
*)
echo -e "$@"
;;
esac
}
# Checking for root access and proceed if it is present
if [ "$UID" -eq "$ROOT_UID" ]; then
prompt -i "\n * Install ChromeOS in ${THEME_DIR}... "
cp -r "${REO_DIR}/ChromeOS" "${THEME_DIR}"
# Success message
prompt -s "\n * All done!"
else
# Error message
prompt -e "\n [ Error! ] -> Run me as root ! "
# persisted execution of the script as root
read -p "[ Trusted ] Specify the root password : " -t${MAX_DELAY} -s
[[ -n "$REPLY" ]] && {
sudo -S <<< $REPLY $0
} || {
clear
prompt -i "\n Operation canceled by user, Bye!"
exit 1
}
fi
echo "Install finished..."
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment