feat: add lightdm-webkit-greeter

This commit is contained in:
TheDevKiller 2019-04-24 16:46:52 +02:00
parent 7afc35b5a7
commit 50766c9349
19 changed files with 1347 additions and 0 deletions

View File

@ -0,0 +1,20 @@
AUX gentoo/README.md 1031 SHA256 fb74a33f0a93156fd1f1a4db1e10246514a023b86824a2b7be9b4378cc5114c6 SHA512 4f8cc11838274aba3edb59c57a4e7e736305a287e2f1cc7a3b2d8772c3e6e0c90b0882d0ab1567142647941bdb6441f5cb1cc244dbd666f7e646149451121ef8 WHIRLPOOL 336ec3eb7675edaa522c28f741be2655a8e363f2d46fa318657b4c2be02b0c3710595cf7c053e72c7b09d055807dac8af7d2a23f020662fcd8cac42a90616255
AUX gentoo/bg.png 43919 SHA256 2a31523afedc9f30a2059cc413b9e97ce52d904411cd697c5dd235e76e00741d SHA512 3dba95723ab3b968c2cce32159cf1270870f81c5195cf003c4a502d627412ba6faf7cb5b5369053b09efeb05d23d5f569b66d8a0bf8e0ca31513ea7670e677ed WHIRLPOOL 1812c3560b26763f93be84fff9ff9c225df6e7a9d9586f0973ecf510fcaae480fdfe46fcdef4b86ad1c83a0a796fc45bfd1a16a52b9f6ede8e7a6888a2330ad1
AUX gentoo/font/LucidaGrande.ttf 256356 SHA256 ee962f0062412bae8c358a598c18ea4aa8851595600ca5735500c2ecc7309db5 SHA512 62c7b628e147ca118f9f266bd4b333a27f977535395b82a17d85ef66553d61657c8463125e7fcae2020ea7b817e66e082f4c843c10de9c4d704c95af07bc747f WHIRLPOOL 9906f2c6c4143a0670bc7a34801d13b9b439c95b8a8ce86127545ed94a85daaf367e6b91ad0c99e72d44c7cd6965f001e0ccb2561cab57184bd7be0726c29b03
AUX gentoo/font/LucidaGrandeBold.ttf 193212 SHA256 45d5353a7d0714907d72e26195beb1a14d68f9967f066a520c8d8551e74dbdfb SHA512 b327d20b89c81de3427914c1783ca2c10d6f6ea42f5f1fea5b12ee5f9aad40e9785cc542c2fe19147ff761a18cab0dd1e99384b16989a2011546151e89465c6e WHIRLPOOL b51ff24e1a98722cac90997444e84a567eb97c6621249eaf797dd48575431f7907f1cf1f4c96733e9557fdcacb9412b08927a681a5a3eb97ab5d741c012cfa98
AUX gentoo/gentoologo.png 7190 SHA256 3cf26c8d3369918661280ff21048e476140c9434ada61f6c892d28288badfe22 SHA512 661b3695f95e2779ec6bc29a3e0ced4b03775d3a0544041b1d3ad47661cd9e36355da7391b6008cc40f0b41d19f24bc6d30efc6c38519a23c5a52d5519e34fe2 WHIRLPOOL 77db0449b40dff41f1023cdea758f9483df7465455f6862463d322bd63219f29d78a710c7d7e519572ce879b9e1f24ad66be3db124da14b9c7ba5dfb6c11ed07
AUX gentoo/img/avatar.svg 3477 SHA256 6e8aa481c3e4bb16b88ffe767fad9d952d903cc2b6e7cee2c74bf6fe0ab4bf3b SHA512 58eacc7fb81c82ac9985cf8a532c0db4df93e565cd13314c5ce96b1b8aa41204a69407f8f3bf9d42cc90dd21e41116e9cbda0ef7e72a64bac38f9a6a3bdab7ab WHIRLPOOL 2307172d4a21c6ea0196a2d940d6909bd010470be12ed5450b5f3dc447528a291831ee6d9a594e75e841897f43ec1a16a310ca15091fca2f3eb2be9572bc8961
AUX gentoo/img/restart.svg 4986 SHA256 27b429b25ddd4bd60f3ca1cd83ad9f534365895cb3e569bcd315bbad6fd9c32a SHA512 71849f37f1f7286a176a15c4ec4b1ad75246db9cd1b408b3c9cdb60e307459bacb138dbae06063af3d870d8f5483899f5ac5b148b9a54fb08e709a7d1ef05618 WHIRLPOOL 5ec2bff5d99a7311fa8b801a7af350ba218b67ead7e5e1a056446eef051ab099871db7f4f41082788ccf682e4273b9182a05dd8875ab39b756926b8bfa015506
AUX gentoo/img/shutdown.svg 6405 SHA256 b194d1f8e825efd2336db799fcb8157625cf74ce1667863de63fe62ccdd2a49e SHA512 8cdf0f46a94831cf6d8ac1a80aca7dd705d7023398571ea32e490e3bc1c8311a23d858f8311b427c71d8a49ce3524b0b1397e0cb187ff68507741bdfecaf5237 WHIRLPOOL 7e1c5697071503d21befd39f58845eb9e5301794ff05f49994d359cb0c98728c6c6845a13ae2223b50a8f81f4b4778c3e51321e0eb1d2bfc0fbaaa4a79e80be2
AUX gentoo/img/sleep.svg 4737 SHA256 a09f138fff63357dbcfe1a8252414759e0b5ca2d5d34762d0b69c8154e2d4952 SHA512 71eea502f2b93257b96eac5ea97f5ed2c6159527ae40652cf395465750f3418b782660346080a94fc78bd95a12d474445a6546001aea760f8f648e5ec22feab1 WHIRLPOOL c209d66d845c7e3383bd3dbc072ed57131de6797c3a67e7a0e1eef45fccd3191e5799185a7b269d9bf96df40aae1acba73c585b53bb41d9da9cf613eedf6520b
AUX gentoo/index.html 2251 SHA256 4633cca1665a6180d3e78ab896a18284c45300b1280b5ad3e35c6984edb1b05f SHA512 5d03fca84c9ceaaf12e2b976e18de5d35fcbc426d20f4100105923769035e588c04904e2f010f9dca2b854d0150d45ea65d2ccbbea047b589956172eb5405629 WHIRLPOOL 3104284d5234a6d58fec8c8dab2893ba784d177ec85aab2398c6bbf1f20995aeab21c29fc980e113f83b28c5d1b2a3e7251f260af42403b5b7ee662c64940f27
AUX gentoo/index.theme 112 SHA256 a7d94846517a38d0669784a872452cf111fdd124e3740e1acc10c1a3927fd2cd SHA512 86fd85fd448bf646a15c21781093e974eb0b99e75778d3640b6f0c922c362f4ac5a95ac326ed45fbfcdccd2fdd7b5d4cdecaf0209cec94005f091062be2e6b15 WHIRLPOOL 940196e993f17245e363872801c623626548659fedc32887c7898ba14b2c896192256e48ac484ef9e5cde49d36b520ccdc53ca4a48f97c8cc1349e0586d0d1ba
AUX gentoo/low_contrast_linen.png 22749 SHA256 4acf439c9ae114b6707b0b59036ced496e25670143d6c774bc7315dcff1a8c4e SHA512 aea519bbada8a8a05e3027632df259f1513817d684b8ef8df0f9f80ffa6abb1e15e5c86bda4d1f396f553d9b77e4b014a91b91761cfa1a2767e79ed821c71ba7 WHIRLPOOL 49ee655da8a032c65e82aa3fa43fe1558b09f7ed8f5048ef432a60d22557f50f6e721c0ba9a2f5195043789ad41dc3dffbcba8a8796f8d171c92a6e7d6c29495
AUX gentoo/mock.js 4467 SHA256 417f2c236012badde24f5029d7af1cb71ea2b883562dbe1ba1bf2be871209853 SHA512 989aaf994df1f41b453b8efa3d910e0e19939571cb6f809e9b6eb3cf890a09ae22594c5b6feea503289f82b285cb4efbf5b805d663e7218c1a70ce8d765479a2 WHIRLPOOL 6aaddf8b3b99bf8c2bd391b64936ee5bd2ea9e53f34d28b00e6aa9e402af0c927ecc7b1493fb73471274df188920f9e8dae3048de02f91936a6afb81484fa7d2
AUX gentoo/script.js 6464 SHA256 b855fc4b6c0a896949151aed557d1e143c612a80754b02d848373b584567bb38 SHA512 9e2c1f217e897ecf7a52ae68a5c5d37fb81e982bce6b2a442d18c4419d4b738f5c4ed40183cf5f741a2bfc82378637b5f9c135326d532ce12cd9a51ceef7151f WHIRLPOOL bdc0335f786a1a25f99b58fcb26502ea42ecbc5cc3f00be898b9d15eef57be68b674bcc39a5a4182dcca5c0a408ef2a479e446d54e936eded5ec383fa2147bc8
AUX gentoo/style.css 2538 SHA256 0bb639fd9c5934f54e9ae26d754e51524957eaffd0ebe799fe5d27b80641ced8 SHA512 eb264ca8c988e1a511bfa28564eb4537df66c9aa28f62e16a52bafce288c8df54851f325ebdf72bc628ad3d94dc5808b72465a2f5a5f44cb73dfd3b758088944 WHIRLPOOL 18eec5603845271007afa9367acf3e8ce714fafd07ec072b9c05a52a31c97873efa80b382571dcbe1d0e5c6902778b53d08d1e4c652dea864f390467d0326897
DIST lightdm-webkit-greeter-0.1.2.tar.gz 317550 SHA256 53d6d41127b7c4cccc239d5d98edce868f18f95c76766cd1681ef58d1678c120 SHA512 641c67f74e58cac2b68038c47692cc07091d8e842a448f6e548fff1893a3193cd6b7ef799e49e7acfe0fb3c524bee6ea73dfbfca7e3c2c834e6a215bc94df71d WHIRLPOOL 5bb543e26ea622c4d2673dd62b0aec58209178be8c826f9685fefb1756c417e0517ea6e0e374e18bafb7d695c9de3ec4cb0845323101283d9024d226a984d51b
DIST lightdm-webkit-greeter-1.0.tar.gz 340350 SHA256 b9eb5f9c84d10bfb26a6ad0fbeabbab8fc69845452b870b96fb423334f2d4e2d SHA512 b51ed476019d6ee4fc83501aacda165d2d2b19d4bdec2b4857066d67458311835bd248ab10d6b9450a712428dd4f916bd8a85822694368d2dd86641aa6296706 WHIRLPOOL b092aecf78ff7b09ac69e7448a44c5a1e694bbfe70f31d076c4353e727531ad3110ef9097d445a6c603287d3da471386c710ff32856512577ae844dfff5370b6
EBUILD lightdm-webkit-greeter-0.1.2-r1.ebuild 1522 SHA256 989ee6d56d52231d58f52e0e3ba0a93eaf0bd0969fd40fc3e9eb12674d0dc6ad SHA512 c77b614ad69a1fc4273dbda2c884792bbb3d8e8dee7bcc5cd10a50edfef15bddd8c49a3cc68f40be04382aa4bd7af7340fb0db4308b69c1abd30be2120a634bd WHIRLPOOL e2f770dd6e0223f70920d6a07d355b89948a4401b558fa239cd6bd9cc976867da7c5578ab1f6cbfd7bc560d4cf78ed10fea3d5a127516cfa0e40cd16cf89ca5b
EBUILD lightdm-webkit-greeter-0.1.2.ebuild 1236 SHA256 6514d657f4b385efe58fe178142d4b4859bb8cf8929dbb556e418554929fffc6 SHA512 c613d5fa3c1fa47441e69ca508826cc8a5afb0aa751f633a1be2896599e76cb42d009ed00afc9e8845163a3555601badb831ae741c96e8350bc2c6945a4a9ac3 WHIRLPOOL ff6011ef4f1cafd9b5839a43fcff15cef2eaf146c2d3cbc56409ef8ffd1ee16380ff149067277496804fd7525934685080a984a0864438c55986e4922eac1830
EBUILD lightdm-webkit-greeter-1.0.ebuild 1236 SHA256 6514d657f4b385efe58fe178142d4b4859bb8cf8929dbb556e418554929fffc6 SHA512 c613d5fa3c1fa47441e69ca508826cc8a5afb0aa751f633a1be2896599e76cb42d009ed00afc9e8845163a3555601badb831ae741c96e8350bc2c6945a4a9ac3 WHIRLPOOL ff6011ef4f1cafd9b5839a43fcff15cef2eaf146c2d3cbc56409ef8ffd1ee16380ff149067277496804fd7525934685080a984a0864438c55986e4922eac1830

View File

@ -0,0 +1,34 @@
LightDM Webkit Arch Theme
===========================
This is a LightDM webkit greeter theme for Archlinux. Based on [LightDM-Webkit-MacOSX-Theme](http://github.com/Wattos/LightDM-Webkit-MacOSX-Theme)
Installation Instructions
-------------------------
You will need lightdm as your login manager and the lightdm-webkit-greeter from AUR. You need to make the webkit greeter the default greeter. This is done by editing the lightdm configuration under:
<pre>
/etc/lightdm/lightdm.conf
</pre>
and changing the greeter-session value to lightdm-webkit-greeter. lightdm.conf should have:
<pre>
[SeatDefaults]
greeter-session=lightdm-webkit-greeter
allow-guest=false
</pre>
The second step is to install the actual theme. This is done by copying the files of this repository into the following location:
<pre>
/usr/share/lightdm-webkit/themes/arch
</pre>
Finally, change the /etc/lightdm/lightdm-webkit-greeter.conf file to contain the following line:
<pre>
webkit-theme=arch
</pre>
Now you can reboot and enjoy the new theme.

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -0,0 +1,142 @@
<?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="350"
height="400"
id="svg2"
version="1.1"
inkscape:version="0.48.3.1 r9886"
sodipodi:docname="restart.svg">
<defs
id="defs4">
<filter
inkscape:collect="always"
id="filter3898"
x="-0.11897011"
width="1.2379402"
y="-0.12103891"
height="1.2420778"
color-interpolation-filters="sRGB">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="16.570881"
id="feGaussianBlur3900" />
</filter>
<filter
inkscape:collect="always"
id="filter3918"
x="-0.19501376"
width="1.3900275"
y="-0.16888687"
height="1.3377737">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="9.4024498"
id="feGaussianBlur3920" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.84852814"
inkscape:cx="330.88647"
inkscape:cy="145.63126"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1421"
inkscape:window-height="660"
inkscape:window-x="94"
inkscape:window-y="86"
inkscape:window-maximized="0" />
<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" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-652.36218)">
<path
sodipodi:type="star"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:14.09505676999999935;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;filter:url(#filter3918)"
id="path3757"
sodipodi:sides="3"
sodipodi:cx="288.57144"
sodipodi:cy="246.6479"
sodipodi:r1="77.14286"
sodipodi:r2="38.57143"
sodipodi:arg1="3.1415927"
sodipodi:arg2="4.1887902"
inkscape:flatsided="false"
inkscape:rounded="0"
inkscape:randomized="0"
d="m 211.42858,246.6479 57.85715,-33.40383 57.85714,-33.40384 0,66.80767 0,66.80768 -57.85714,-33.40384 z"
inkscape:transform-center-x="12.934073"
transform="matrix(0.67065572,0,0,0.75052767,-17.809482,686.70179)" />
<path
sodipodi:open="true"
sodipodi:end="6.2846738"
sodipodi:start="0.015995771"
transform="matrix(0.8189498,0.00457854,-0.00466702,0.83161181,-115.09413,415.92376)"
d="m 525.69291,550.70424 a 167.14285,164.28572 0 1 1 0.0212,-2.38322"
sodipodi:ry="164.28572"
sodipodi:rx="167.14285"
sodipodi:cy="548.07648"
sodipodi:cx="358.57144"
id="path2984"
style="fill:none;stroke:#000000;stroke-width:30.2931366;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;filter:url(#filter3898)"
sodipodi:type="arc" />
<path
transform="matrix(0.66152266,0,0,0.75052767,-16.699981,686.70179)"
inkscape:transform-center-x="12.757935"
d="m 211.42858,246.6479 57.85715,-33.40383 57.85714,-33.40384 0,66.80767 0,66.80768 -57.85714,-33.40384 z"
inkscape:randomized="0"
inkscape:rounded="0"
inkscape:flatsided="false"
sodipodi:arg2="4.1887902"
sodipodi:arg1="3.1415927"
sodipodi:r2="38.57143"
sodipodi:r1="77.14286"
sodipodi:cy="246.6479"
sodipodi:cx="288.57144"
sodipodi:sides="3"
id="path3784"
style="fill:#b2b2b2;fill-opacity:1;stroke:#b2b2b2;stroke-width:14.19202232;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
sodipodi:type="star" />
<path
sodipodi:type="arc"
style="fill:none;stroke:#b2b2b2;stroke-width:30.2931366;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="path2985"
sodipodi:cx="358.57144"
sodipodi:cy="548.07648"
sodipodi:rx="167.14285"
sodipodi:ry="164.28572"
d="m 525.69291,550.70424 a 167.14285,164.28572 0 1 1 0.0212,-2.38322"
transform="matrix(0.8189498,0.00457854,-0.00466702,0.83161181,-115.09384,414.93358)"
sodipodi:start="0.015995771"
sodipodi:end="6.2846738"
sodipodi:open="true" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -0,0 +1,198 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
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="350"
height="400"
id="svg2"
version="1.1"
inkscape:version="0.48.3.1 r9886"
sodipodi:docname="shutdown.svg">
<defs
id="defs4">
<linearGradient
id="linearGradient3800"
osb:paint="solid">
<stop
style="stop-color:#000000;stop-opacity:1;"
offset="0"
id="stop3802" />
</linearGradient>
<filter
inkscape:collect="always"
id="filter3814"
x="-0.11072097"
width="1.2214419"
y="-0.13080272"
height="1.2616054">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="15.42185"
id="feGaussianBlur3816" />
</filter>
<filter
inkscape:collect="always"
id="filter3790">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="3.3587572"
id="feGaussianBlur3792" />
</filter>
<filter
inkscape:collect="always"
id="filter3861"
x="-0.20333333"
width="1.4066667"
y="-1.5685715"
height="4.137143">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="7.6249999"
id="feGaussianBlur3863" />
</filter>
<filter
inkscape:collect="always"
id="filter3869">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="3.43463"
id="feGaussianBlur3871" />
</filter>
<filter
inkscape:collect="always"
id="filter3881">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="3.43463"
id="feGaussianBlur3883" />
</filter>
<filter
inkscape:collect="always"
id="filter3923">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="5.2807972"
id="feGaussianBlur3925" />
</filter>
<filter
inkscape:collect="always"
id="filter3929"
x="-0.10608696"
width="1.2121739"
y="-0.13811321"
height="1.2762264">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="7.6249999"
id="feGaussianBlur3931" />
</filter>
<filter
inkscape:collect="always"
id="filter3943"
x="-7.8000297"
width="16.600059"
y="-0.060465103"
height="1.1209302">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="2.7083328"
id="feGaussianBlur3945" />
</filter>
<filter
inkscape:collect="always"
id="filter3987"
x="-3.7532402"
width="8.5064804"
y="-0.22581523"
height="1.4516305">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="11.377011"
id="feGaussianBlur3989" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.1019846"
inkscape:cx="-4.208366"
inkscape:cy="223.98152"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1421"
inkscape:window-height="660"
inkscape:window-x="51"
inkscape:window-y="178"
inkscape:window-maximized="0" />
<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" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-652.36218)">
<path
sodipodi:end="10.226427"
sodipodi:start="5.4900966"
transform="matrix(0.8189498,0.00457854,-0.00466702,0.83161181,-115.09413,415.92376)"
d="m 475.84687,431.01898 c 65.7734,63.66227 66.58727,167.67916 1.81784,232.32823 -64.76943,64.64907 -170.5953,65.44903 -236.3687,1.78676 -65.77339,-63.66226 -66.58727,-167.67915 -1.81784,-232.32822 0.93593,-0.93419 1.8832,-1.85733 2.8416,-2.76922"
sodipodi:ry="164.28572"
sodipodi:rx="167.14285"
sodipodi:cy="548.07648"
sodipodi:cx="358.57144"
id="path2984"
style="fill:none;stroke:#000000;stroke-width:30.29313660000000041;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;filter:url(#filter3814)"
sodipodi:type="arc"
sodipodi:open="true" />
<path
sodipodi:type="arc"
style="fill:none;stroke:#b2b2b2;stroke-width:30.2931366;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="path2985"
sodipodi:cx="358.57144"
sodipodi:cy="548.07648"
sodipodi:rx="167.14285"
sodipodi:ry="164.28572"
d="m 476.95677,432.10337 c 65.1641,64.26476 64.98711,168.28458 -0.3953,232.33477 -65.38241,64.05018 -171.21127,63.87622 -236.37536,-0.38855 -65.16409,-64.26477 -64.98711,-168.28459 0.3953,-232.33477 0.0877,-0.0859 0.17543,-0.17166 0.26329,-0.25735"
transform="matrix(0.8189498,0.00457854,-0.00466702,0.83161181,-115.09384,414.93358)"
sodipodi:start="5.4994595"
sodipodi:end="10.21407"
sodipodi:open="true" />
<rect
y="709.82043"
x="175.08333"
height="120.91667"
width="7.275001"
id="rect3949"
style="fill:none;stroke:#000000;stroke-width:31;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;filter:url(#filter3987)" />
<rect
style="fill:none;stroke:#b2b2b2;stroke-width:29.99999809;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="rect3947"
width="7.275001"
height="120.91667"
x="175.08333"
y="709.82043" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@ -0,0 +1,134 @@
<?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="350"
height="400"
id="svg2"
version="1.1"
inkscape:version="0.48.3.1 r9886"
sodipodi:docname="sleep.svg">
<defs
id="defs4">
<filter
inkscape:collect="always"
id="filter3898"
x="-0.11897011"
width="1.2379402"
y="-0.12103891"
height="1.2420778"
color-interpolation-filters="sRGB">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="16.570881"
id="feGaussianBlur3900" />
</filter>
<filter
inkscape:collect="always"
id="filter3918"
x="-0.19501376"
width="1.3900275"
y="-0.16888687"
height="1.3377737">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="9.4024498"
id="feGaussianBlur3920" />
</filter>
<filter
inkscape:collect="always"
id="filter3770"
x="-0.18093748"
width="1.361875"
y="-34.740705"
height="70.48141">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="17.058948"
id="feGaussianBlur3772" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.84852814"
inkscape:cx="138.78913"
inkscape:cy="145.63126"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1421"
inkscape:window-height="660"
inkscape:window-x="94"
inkscape:window-y="86"
inkscape:window-maximized="0" />
<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" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-652.36218)">
<path
sodipodi:open="true"
sodipodi:end="6.2846738"
sodipodi:start="0.015995771"
transform="matrix(0.8189498,0.00457854,-0.00466702,0.83161181,-115.09413,415.92376)"
d="M 525.69291,550.70424 C 524.2164,641.42513 448.19662,713.79246 355.89798,712.34118 263.59934,710.88991 189.97346,636.1696 191.44997,545.44871 c 1.47652,-90.72089 77.4963,-163.08821 169.79494,-161.63694 91.35323,1.43641 164.6052,74.70621 164.4692,164.50925"
sodipodi:ry="164.28572"
sodipodi:rx="167.14285"
sodipodi:cy="548.07648"
sodipodi:cx="358.57144"
id="path2984"
style="fill:none;stroke:#000000;stroke-width:30.2931366;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;filter:url(#filter3898)"
sodipodi:type="arc" />
<rect
y="927.43994"
x="63.63961"
height="1.1784872"
width="226.27415"
id="rect3760"
style="fill:none;stroke:#000000;stroke-width:31;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;filter:url(#filter3770)" />
<path
sodipodi:type="arc"
style="fill:none;stroke:#b2b2b2;stroke-width:30.2931366;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="path2985"
sodipodi:cx="358.57144"
sodipodi:cy="548.07648"
sodipodi:rx="167.14285"
sodipodi:ry="164.28572"
d="M 525.69291,550.70424 C 524.2164,641.42513 448.19662,713.79246 355.89798,712.34118 263.59934,710.88991 189.97346,636.1696 191.44997,545.44871 c 1.47652,-90.72089 77.4963,-163.08821 169.79494,-161.63694 91.35323,1.43641 164.6052,74.70621 164.4692,164.50925"
transform="matrix(0.8189498,0.00457854,-0.00466702,0.83161181,-115.09384,414.93358)"
sodipodi:start="0.015995771"
sodipodi:end="6.2846738"
sodipodi:open="true" />
<rect
style="fill:none;stroke:#b2b2b2;stroke-width:31;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="rect2990"
width="226.27415"
height="1.1784872"
x="63.63961"
y="927.43994" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -0,0 +1,55 @@
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
<!-- mock.js is only required for local testing -->
<script type="text/javascript" src="mock.js"></script>
<script type="text/javascript" src="script.js"></script>
</head>
<body onload="initialize()" oncontextmenu="return false;">
<div class="header">
<div class="gentoologo"></div>
<span id="current_time" class="time"></span>
</div>
<div class="login_content">
<div class="login_container">
<div class="center">
<div id="user_template" class="user hidden smooth button">
<div class="user_image_wrapper">
<img class="user_image" src=""/>
</div>
<span class="user_name"></span>
</div>
</div>
<div id="password_container" class="center hidden smooth">
<form action="javascript: provide_secret()" class="password_prompt">
<input id="password_entry" type="password" placeholder="Password" />
<div id="session_container" class="smooth">
<div id="session_template">
<label>
<input type="radio" name="session">&nbsp;<span class="session_label"></span></input>
</label>
</div>
</div>
</form>
</div>
</div>
</div>
<div id="message" class="smooth">
<div id="message_content"></div>
</div>
<div class="footer">
<div id="action_suspend" class="action button">
<div class="action_image_wrapper" onclick="lightdm.suspend();"><img class="action_image" src="img/sleep.svg"/></div>
<span class="action_label">Sleep</span>
</div>
<div id="action_restart" class="action button">
<div class="action_image_wrapper" onclick="lightdm.restart();"><img class="action_image" src="img/restart.svg"/></div>
<span class="action_label">Restart</span>
</div>
<div id="action_shutdown" class="action button">
<div class="action_image_wrapper" onclick="lightdm.shutdown();"><img class="action_image" src="img/shutdown.svg"/></div>
<span class="action_label">Shutdown</span>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,6 @@
[theme]
name=arch-session
description=Archlinux logon
engine=lightdm-webkit-greeter
url=index.html
session=lxqt

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,134 @@
// mock lighdm for testing
if (typeof lightdm == 'undefined') {
lightdm= {};
lightdm.hostname="test-host";
lightdm.languages= [{code: "en_US", name: "English(US)", territory: "USA"}, {code: "en_UK", name: "English(UK)", territory: "UK"}];
lightdm.default_language= lightdm.languages[0];
lightdm.layouts= [{name: "test", short_description: "test description", short_description:"really long epic description"}];
lightdm.default_layout= lightdm.layouts[0];
lightdm.layout= lightdm.layouts[0];
lightdm.sessions=[{key: "key1", name: "session 1", comment: "no comment"}, {key: "key2", name: "session 2", comment: "no comment"}];
lightdm.default_session=lightdm.sessions[0];
lightdm.authentication_user= null;
lightdm.is_authenticated= false;
lightdm.can_suspend= true;
lightdm.can_hibernate= true;
lightdm.can_restart= true;
lightdm.can_shutdown= true;
lightdm.users= [
{ name: "clarkk", real_name:"Superman", display_name: "Clark Kent", image :"", language: "en_US", layout: null, session: null, logged_in: false },
{ name: "brucew", real_name:"Batman", display_name: "Bruce Wayne", image :"/home/brokenImage.gif", language: "en_US", layout: null, session: null, logged_in: false},
{ name: "peterp", real_name:"Spiderman", display_name: "Peter Parker", image :"", language: "en_US", layout: null, session: null, logged_in: true},
]
lightdm.sessions= [
{ name: "LXQt Desktop", key: "lxqt" },
{ name: "KDE Plasma Desktop", key: "kdeplasma" },
]
lightdm.default_session=lightdm.sessions[0];
lightdm.num_users= lightdm.users.length;
lightdm.timed_login_delay= 0; //set to a number higher than 0 for timed login simulation
lightdm.timed_login_user= lightdm.timed_login_delay > 0 ? lightdm.users[0] : null;
lightdm.get_string_property= function() {};
lightdm.get_integer_property= function() {};
lightdm.get_boolean_property= function() {};
lightdm.cancel_timed_login= function() {
_lightdm_mock_check_argument_length(arguments, 0);
lightdm._timed_login_cancelled= true;
};
lightdm.provide_secret= function(secret) {
if (typeof lightdm._username == 'undefined' || !lightdm._username) {
throw "must call start_authentication first"
}
_lightdm_mock_check_argument_length(arguments, 1);
var user= _lightdm_mock_get_user(lightdm.username);
if (!user && secret == lightdm._username) {
lightdm.is_authenticated= true;
lightdm.authentication_user= user;
} else {
lightdm.is_authenticated= false;
lightdm.authentication_user= null;
lightdm._username= null;
}
authentication_complete();
};
lightdm.start_authentication= function(username) {
_lightdm_mock_check_argument_length(arguments, 1);
if (lightdm._username) {
throw "Already authenticating!";
}
var user= _lightdm_mock_get_user(username);
if (!user) {
show_error(username + " is an invalid user");
}
show_prompt("Password: ");
lightdm._username= username;
};
lightdm.cancel_authentication= function() {
_lightdm_mock_check_argument_length(arguments, 0);
if (!lightdm._username) {
throw "we are not authenticating";
}
lightdm._username= null;
};
lightdm.suspend= function() {
alert("System Suspended. Bye Bye");
document.location.reload(true);
};
lightdm.hibernate= function() {
alert("System Hibernated. Bye Bye");
document.location.reload(true);
};
lightdm.restart= function() {
alert("System restart. Bye Bye");
document.location.reload(true);
};
lightdm.shutdown= function() {
alert("System Shutdown. Bye Bye");
document.location.reload(true);
};
lightdm.login= function(user, session) {
_lightdm_mock_check_argument_length(arguments, 2);
if (!lightdm.is_authenticated) {
throw "The system is not authenticated";
}
if (user !== lightdm.authentication_user) {
throw "this user is not authenticated";
}
alert("logged in successfully!!");
document.location.reload(true);
};
if (lightdm.timed_login_delay > 0) {
setTimeout(function() { if (!lightdm._timed_login_cancelled()) timed_login();}, lightdm.timed_login_delay);
}
}
function _lightdm_mock_check_argument_length(args, length) {
if (args.length != length) {
throw "incorrect number of arguments in function call";
}
}
function _lightdm_mock_get_user(username) {
var user= null;
for (var i= 0; i < lightdm.users.length; ++i) {
if (lightdm.users[i].name == username) {
user= lightdm.users[i];
break;
}
}
return user;
}

View File

@ -0,0 +1,241 @@
var time_remaining = 0;
var selected_user = null;
var valid_image = /.*\.(png|svg|jpg|jpeg|bmp)$/i;
///////////////////////////////////////////////
// CALLBACK API. Called by the webkit greeeter
///////////////////////////////////////////////
// called when the greeter asks to show a login prompt for a user
function show_prompt(text) {
var password_container = document.querySelector("#password_container");
var password_entry = document.querySelector("#password_entry");
if (!isVisible(password_container)) {
var users = document.querySelectorAll(".user");
var user_node = document.querySelector("#"+selected_user);
var rect = user_node.getClientRects()[0];
var parentRect = user_node.parentElement.getClientRects()[0];
var center = parentRect.width/2;
var left = center - rect.width/2 - rect.left;
var i = 0;
if (left < 5 && left > -5) {
left = 0;
}
for (i = 0; i < users.length; i++) {
var node = users[i];
setVisible(node, node.id === selected_user);
node.style.left= left;
}
setVisible(password_container, true);
password_entry.placeholder= text.replace(":", "");
}
password_entry.value= "";
password_entry.focus();
}
// called when the greeter asks to show a message
function show_message(text) {
var message = document.querySelector("#message_content");
message.innerHTML= text;
if (text) {
document.querySelector("#message").classList.remove("hidden");
} else {
document.querySelector("#message").classList.add("hidden");
}
message.classList.remove("error");
}
// called when the greeter asks to show an error
function show_error(text) {
show_message(text);
var message = document.querySelector("#message_content");
message.classList.add("error");
}
// called when the greeter is finished the authentication request
function authentication_complete() {
var container = document.querySelector("#session_container");
var children = container.querySelectorAll("input");
var i = 0;
var key = "";
for (i = 0; i < children.length; i++) {
var child = children[i];
if (child.checked) {
key = child.value;
break;
}
}
if (lightdm.is_authenticated) {
if (key === "") {
lightdm.login(lightdm.authentication_user, lightdm.default_session);
} else {
lightdm.login(lightdm.authentication_user, key);
}
} else {
show_error("Authentication Failed");
start_authentication(selected_user);
}
}
// called when the greeter wants us to perform a timed login
function timed_login(user) {
lightdm.login (lightdm.timed_login_user);
//setTimeout('throbber()', 1000);
}
//////////////////////////////
// Implementation
//////////////////////////////
function start_authentication(username) {
lightdm.cancel_timed_login();
selected_user = username;
lightdm.start_authentication(username);
}
function provide_secret() {
show_message("Logging in...");
entry = document.querySelector('#password_entry');
lightdm.provide_secret(entry.value);
}
function initialize_sessions() {
var template = document.querySelector("#session_template");
var container = session_template.parentElement;
var i = 0;
container.removeChild(template);
for (i = 0; i < lightdm.sessions.length; i = i + 1) {
var session = lightdm.sessions[i];
var s = template.cloneNode(true);
s.id = "session_" + session.key;
var label = s.querySelector(".session_label");
var radio = s.querySelector("input");
console.log(s, session);
label.innerHTML = session.name;
radio.value = session.key;
if (session.key === lightdm.default_session) {
radio.checked = true;
}
container.appendChild(s);
}
}
function show_users() {
var users = document.querySelectorAll(".user");
var i = 0;
for (i= 0; i < users.length; i++) {
setVisible(users[i], true);
users[i].style.left = 0;
}
setVisible(document.querySelector("#password_container"), false);
selected_user = null;
}
function user_clicked(event) {
if (selected_user !== null) {
selected_user = null;
lightdm.cancel_authentication();
show_users();
} else {
selected_user = event.currentTarget.id;
start_authentication(event.currentTarget.id);
}
show_message("");
event.stopPropagation();
return false;
}
function setVisible(element, visible) {
if (visible) {
element.classList.remove("hidden");
} else {
element.classList.add("hidden");
}
}
function isVisible(element) {
return !element.classList.contains("hidden");
}
function update_time() {
var time = document.querySelector("#current_time");
var date = new Date();
var hh = date.getHours();
var mm = date.getMinutes();
var ss = date.getSeconds();
var suffix= "AM";
if (hh > 12) {
hh = hh - 12;
suffix = "PM";
}
if (hh < 10) { hh = "0"+hh; }
if (mm < 10) { mm = "0"+mm; }
if (ss < 10) { ss = "0"+ss; }
time.innerHTML = hh+":"+mm + " " + suffix;
}
//////////////////////////////////
// Initialization
//////////////////////////////////
function initialize() {
show_message("");
initialize_users();
initialize_timer();
initialize_sessions();
}
function on_image_error(e) {
e.currentTarget.src = "img/avatar.svg";
}
function initialize_users() {
var template = document.querySelector("#user_template");
var parent = template.parentElement;
parent.removeChild(template);
for (i = 0; i < lightdm.users.length; i += 1) {
user = lightdm.users[i];
userNode = template.cloneNode(true);
var image = userNode.querySelectorAll(".user_image")[0];
var name = userNode.querySelectorAll(".user_name")[0];
name.innerHTML = user.display_name;
if (user.image) {
image.src = user.image;
image.onerror = on_image_error;
} else {
image.src = "img/avatar.svg";
}
userNode.id = user.name;
userNode.onclick = user_clicked;
parent.appendChild(userNode);
}
setTimeout(show_users, 400);
}
function initialize_timer() {
update_time();
setInterval(update_time, 1000);
}
function add_action(id, name, image, clickhandler, template, parent) {
action_node = template.cloneNode(true);
action_node.id = "action_" + id;
img_node = action_node.querySelectorAll(".action_image")[0];
label_node = action_node.querySelectorAll(".action_label")[0];
label_node.innerHTML = name;
img_node.src = image;
action_node.onclick = clickhandler;
parent.appendChild(action_node);
}

View File

@ -0,0 +1,176 @@
* {
font: normal 100% Cantarell;
}
body {
background: url('low_contrast_linen.png');
display: table;
height: 100%;
width: 100%;
margin: 0;
color: #EFEFEF;
font-size: 10pt;
text-shadow: 1px 1px 3px black;
}
body, span, div, img {
-webkit-user-select: none;
}
input {
border: 1px solid white;
border-radius: 4px;
padding: 4px;
box-shadow: 0 0 1px 1px #222;
-webkit-transition: box-shadow 0.3s ease-in-out;
}
input:focus {
outline: none;
box-shadow: 0 0 1px 1px #222;
-webkit-transition: box-shadow 0.3s ease-in-out;
}
a {
text-decoration: none;
}
.smooth {
-webkit-transition: visibility 0s, opacity 0.3s, left 0.4s;
}
.hidden {
opacity: 0;
visibility: hidden;
-webkit-transition-delay: 0.3s, 0s, 0s;
}
.center {
text-align: center;
}
.button {
cursor: pointer;
}
.header {
background-color: #333;
height: 55px;
border-bottom: 5px solid #A0A0F0;
box-shadow: 0 0 1px 1px #222;
}
.gentoologo {
float: left !important;
margin: 10px !important;
padding: 0 !important;
height: 40px !important;
width: 190px !important;
background: url('gentoologo.png') no-repeat;
}
.footer {
position: fixed;
bottom: 0;
width: 100%;
height: 100px;
text-align: center;
}
.footer, .header {
width: 100%;
}
.time {
float: right;
line-height: 25px;
font-size: 11pt;
margin-right: 10px;
margin-top: 5px;
}
.login_content {
display: table-row;
}
.login_container {
display: table-cell;
vertical-align: middle;
}
#message {
display: table-row;
height: 80px;
-webkit-transition: visibility 0s, opacity 0.3s, height 0.3s;
}
#message.hidden {
height: 0px;
}
#message_content {
display: table-cell;
vertical-align: top;
text-align: center;
}
#message_content.error {
color: #F55;
}
.user {
display: inline-block;
margin-left: 20px;
margin-right: 20px;
margin-bottom: 20px;
position: relative;
}
.user:active {
opacity: 0.5;
}
.user_image_wrapper {
width: 80px;
height: 80px;
border-radius: 80px;
border: 5px solid #A0A0F0;
-webkit-transition: all 0.3s ease-in-out;
}
.user_image_wrapper:hover {
box-shadow: 0 0 5px 5px #A0A0F0;
-webkit-transition: all 0.2s ease-in-out;
}
.user_image {
width: 80px;
height: 80px;
border-radius: 60px;
}
.user_name {
display: block;
margin-top: 15px;
}
.action {
display: inline-block;
width: 80px;
margin-left: 40px;
margin-right: 40px;
}
.action_image {
height: 50px;
width: 50px;
margin-bottom: 5px;
}
.action_label {
color: #B2B2B2;
}

View File

@ -0,0 +1,56 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit eutils
DESCRIPTION="Webkit-based greeter for LightDM"
HOMEPAGE="https://launchpad.net/${PN}"
SRC_URI="${HOMEPAGE}/trunk/${PV}/+download/${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="branding"
DEPEND="net-libs/webkit-gtk:2
x11-misc/lightdm
dev-libs/gobject-introspection
app-text/gnome-doc-utils
dev-util/intltool
"
RDEPEND="${DEPEND}"
src_prepare(){
# What is Ambiance? This should be a GTK+ 2.x theme, so we use Clearlooks here.
sed -i '/^theme-name=/s/Ambiance/Clearlooks/' data/lightdm-webkit-greeter.conf
# Theme 'default' does not exist...
sed -i '/^webkit-theme=/s/default/webkit/' data/lightdm-webkit-greeter.conf
# this is Ubuntu branding... Replace it with something useful. ;)
sed -i '/^background=/s|/usr/share/backgrounds/warty-final-ubuntu.png||' data/lightdm-webkit-greeter.conf
# Replace Ubuntu font with Dejavusans
sed -i '/^font-name=/s|Ubuntu 11|DejaVuSans 11|' data/lightdm-webkit-greeter.conf
}
src_compile(){
econf || die "econf failed"
emake DESTDIR="${D}" || die "emake failed"
}
src_install(){
emake DESTDIR="${D}" install
if use branding; then
insinto /usr/share/lightdm-webkit/themes
doins -r "${FILESDIR}/gentoo"
fi
}
pkg_postinst(){
elog "Hi! Thanks for using the Webkit greeter for LightDM."
elog "If you want to add your own themes, place them in:"
elog "/usr/share/lightdm-webkit/themes/"
}

View File

@ -0,0 +1,46 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit eutils
DESCRIPTION="Webkit-based greeter for LightDM"
HOMEPAGE="https://launchpad.net/${PN}"
SRC_URI="${HOMEPAGE}/trunk/${PV}/+download/${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="net-libs/webkit-gtk:2
x11-misc/lightdm
dev-libs/gobject-introspection
app-text/gnome-doc-utils
dev-util/intltool
"
RDEPEND="${DEPEND}"
src_prepare(){
# What is Ambiance? This should be a GTK+ 2.x theme, so we use Clearlooks here.
sed -i '/^theme-name=/s/Ambiance/Clearlooks/' data/lightdm-webkit-greeter.conf
# Theme 'default' does not exist...
sed -i '/^webkit-theme=/s/default/webkit/' data/lightdm-webkit-greeter.conf
# this is Ubuntu branding... Replace it with something useful. ;)
sed -i '/^background=/s|/usr/share/backgrounds/warty-final-ubuntu.png||' data/lightdm-webkit-greeter.conf
# Replace Ubuntu font with Dejavusans
sed -i '/^font-name=/s|Ubuntu 11|DejaVuSans 11|' data/lightdm-webkit-greeter.conf
}
src_compile(){
econf || die "econf failed"
emake DESTDIR="${D}" || die "emake failed"
}
src_install(){
emake DESTDIR="${D}" install
}

View File

@ -0,0 +1,46 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit eutils
DESCRIPTION="Webkit-based greeter for LightDM"
HOMEPAGE="https://launchpad.net/${PN}"
SRC_URI="${HOMEPAGE}/trunk/${PV}/+download/${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="net-libs/webkit-gtk:2
x11-misc/lightdm
dev-libs/gobject-introspection
app-text/gnome-doc-utils
dev-util/intltool
"
RDEPEND="${DEPEND}"
src_prepare(){
# What is Ambiance? This should be a GTK+ 2.x theme, so we use Clearlooks here.
sed -i '/^theme-name=/s/Ambiance/Clearlooks/' data/lightdm-webkit-greeter.conf
# Theme 'default' does not exist...
sed -i '/^webkit-theme=/s/default/webkit/' data/lightdm-webkit-greeter.conf
# this is Ubuntu branding... Replace it with something useful. ;)
sed -i '/^background=/s|/usr/share/backgrounds/warty-final-ubuntu.png||' data/lightdm-webkit-greeter.conf
# Replace Ubuntu font with Dejavusans
sed -i '/^font-name=/s|Ubuntu 11|DejaVuSans 11|' data/lightdm-webkit-greeter.conf
}
src_compile(){
econf || die "econf failed"
emake DESTDIR="${D}" || die "emake failed"
}
src_install(){
emake DESTDIR="${D}" install
}