lightdm: extract theme to separate repo
This commit is contained in:
parent
e7d3fe6ac4
commit
bcbb431374
|
@ -34,10 +34,12 @@ $pacaur lemonbar lemonbar-xft-git siji-git clock sutils-git
|
|||
$pacman lightdm lightdm-webkit2-greeter bspwm sxhkd compton
|
||||
sudo sed -i 's/^#\?\(user-session=\).*/\1bspwm/;
|
||||
s/^#\?\(greeter-allow-guest=\).*/\1false/;
|
||||
s/^#\?\(greeter-session=\).*/\1lightdm-webkit2-greeter/'
|
||||
s/^#\?\(greeter-session=\).*/\1lightdm-webkit2-greeter/' \
|
||||
/etc/lightdm/lightdm.conf
|
||||
sudo sed -i 's/^#\?\(webkit-theme = \).*/\1vnought/'
|
||||
sudo sed -i 's/^#\?\(webkit-theme = \).*/\1vnought/' \
|
||||
/etc/lightdm/lightdm-webkit2-greeter.conf
|
||||
[ -d /usr/share/lightdm-webkit/themes/vnought ] || \
|
||||
sudo git clone https://github.com/hlissner/lightdm-webkit2-vnought /usr/share/lightdm-webkit/themes/vnought
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
DEST=/usr/share/lightdm-webkit/themes/vnought
|
||||
|
||||
install: $(DEST)
|
||||
[ -d "$(DEST)" ] && sudo rm -rf "$(DEST)"
|
||||
sudo cp -r . "$(DEST)"
|
||||
sudo chown root:root -R "$(DEST)"
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
html { background: #22252c url(../wallpaper.png) center center; }
|
||||
|
||||
html, body {
|
||||
width: 100%; height: 100%;
|
||||
margin: 0; padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
color: #afbfbf;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
input { display: block; }
|
||||
|
||||
.container {
|
||||
width: 400px;
|
||||
height: 100%;
|
||||
margin: 0 auto;
|
||||
vertical-align: middle;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-flex-direction: column;
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.login {
|
||||
position: absolute;
|
||||
top: 45%; left: 50%;
|
||||
margin-left: -200px;
|
||||
width: 400px;
|
||||
}
|
||||
|
||||
.info {
|
||||
position: absolute;
|
||||
bottom: 5%; left: 50%;
|
||||
margin-left: -200px;
|
||||
width: 400px;
|
||||
}
|
||||
|
||||
.login { height: 50%; }
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-size: 36px;
|
||||
border: none;
|
||||
background: rgba(34, 37, 44, 0.25);
|
||||
padding: 6px 6px 2px;
|
||||
margin: 0;
|
||||
margin-left: -6px;
|
||||
outline: none;
|
||||
color: #dfdfdf;
|
||||
border-radius: 4px;
|
||||
border-bottom: 2px solid #3f3f3f;
|
||||
}
|
||||
|
||||
.messageBox {
|
||||
text-align: center;
|
||||
visibility: hidden;
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="css/master.css" type="text/css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="login">
|
||||
<form action="javascript: handle_input()">
|
||||
<input id="entry" placeholder="Username" />
|
||||
</form>
|
||||
|
||||
<div class="messageBox" id="messages">
|
||||
Something went wrong
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info">
|
||||
<img onclick="javascript:lightdm.shutdown();" src="power_button.png" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="js/main.js"></script>
|
||||
<script>
|
||||
start_authentication();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,6 +0,0 @@
|
|||
[theme]
|
||||
name=Awe
|
||||
description=Awe Greeter
|
||||
engine=lightdm-webkit-greeter
|
||||
url=index.html
|
||||
session=bspwm
|
|
@ -1,81 +0,0 @@
|
|||
/*********************************************************************/
|
||||
/* Callbacks for lightdm-webkit-greeter */
|
||||
/*********************************************************************/
|
||||
|
||||
/**
|
||||
* show_prompt callback.
|
||||
*/
|
||||
function show_prompt(text, type) {
|
||||
// type is either "text" or "password"
|
||||
// prompt = document.getElementById("prompt");
|
||||
// prompt.innerHTML = text;
|
||||
entry = document.getElementById("entry");
|
||||
entry.value = ""; // clear entry
|
||||
entry.type = type;
|
||||
entry.placeholder = text;
|
||||
entry.focus();
|
||||
}
|
||||
|
||||
/**
|
||||
* show_message callback.
|
||||
*/
|
||||
function show_message(text, type) {
|
||||
if (text.length == 0)
|
||||
return;
|
||||
messages = document.getElementById("messages");
|
||||
messages.style.visibility = "visible";
|
||||
// type is either "info" or "error"
|
||||
if (type == "error") {
|
||||
text = "<font color=\"red\">" + text + "</font>";
|
||||
}
|
||||
text = text + "<br>";
|
||||
messages.innerHTML = messages.innerHTML + text;
|
||||
}
|
||||
|
||||
/**
|
||||
* authentication_complete callback.
|
||||
*/
|
||||
function authentication_complete() {
|
||||
if (lightdm.is_authenticated) {
|
||||
lightdm.start_session_sync(); // Start default session
|
||||
} else {
|
||||
show_message("Authentication Failed", "error");
|
||||
setTimeout(start_authentication, 3000);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* autologin_timer_expired callback.
|
||||
*/
|
||||
function autologin_timer_expired(username) {
|
||||
/* Stub. Does nothing. */
|
||||
}
|
||||
|
||||
/*********************************************************************/
|
||||
/* Functions local to this greeter */
|
||||
/*********************************************************************/
|
||||
|
||||
/**
|
||||
* clear_messages
|
||||
*/
|
||||
function clear_messages() {
|
||||
messages = document.getElementById("messages");
|
||||
messages.innerHTML = "";
|
||||
messages.style.visibility = "hidden";
|
||||
}
|
||||
|
||||
/**
|
||||
* Kickoff the authentication process
|
||||
*/
|
||||
function start_authentication() {
|
||||
clear_messages();
|
||||
lightdm.start_authentication(); // start with null userid, have pam prompt for userid.
|
||||
}
|
||||
|
||||
/**
|
||||
* handle the input from the entry field.
|
||||
*/
|
||||
function handle_input() {
|
||||
entry = document.getElementById("entry");
|
||||
lightdm.respond(entry.value);
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 272 KiB |
Loading…
Reference in a new issue