-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from s0/multi-monitor
Multi-monitor support
- Loading branch information
Showing
18 changed files
with
754 additions
and
179 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
primary_html: "index.html" | ||
secondary_html: "secondary.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
async function wait(ms) { | ||
return new Promise((resolve) => { | ||
setTimeout(() => { | ||
resolve(); | ||
}, ms); | ||
}); | ||
} | ||
|
||
async function _authentication_done() { | ||
await wait(1000); | ||
var body = document.querySelector("body"); | ||
body.style.opacity = 0; | ||
} | ||
|
||
function authentication_done() { | ||
if (lightdm.is_authenticated) _authentication_done(); | ||
} | ||
|
||
function initGreeter() { | ||
lightdm.authentication_complete?.connect(() => authentication_done()); | ||
|
||
backgrounds = new Backgrounds(); | ||
backgrounds._init(); | ||
} | ||
|
||
if (window._ready_event === undefined) { | ||
_ready_event = new Event("GreeterReady"); | ||
window.dispatchEvent(_ready_event); | ||
} | ||
|
||
window.addEventListener("GreeterReady", initGreeter); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, viewport-fit=cover, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" | ||
/> | ||
|
||
<link rel="stylesheet" href="css/style.css" class="style" /> | ||
<link | ||
rel="stylesheet" | ||
href="../../_vendor/material-icons/css/materialdesignicons.min.css" | ||
onerror="this.href='../_vendor/material-icons/css/materialdesignicons.min.css'" | ||
class="style" | ||
/> | ||
|
||
<!--<script src="../_vendor/js/mock.js"></script>--> | ||
|
||
<title>Dracula theme</title> | ||
</head> | ||
<body> | ||
<div id="background"> | ||
<div id="bg-cover"></div> | ||
</div> | ||
|
||
<div id="background-selector" style="display: none"></div> | ||
|
||
<script src="js/backgrounds.js"></script> | ||
<script src="js/secondary.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
primary_html: "index.html" | ||
secondary_html: "secondary.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
async function wait(ms) { | ||
return new Promise((resolve) => { | ||
setTimeout(() => { | ||
resolve(); | ||
}, ms); | ||
}); | ||
} | ||
|
||
async function _authentication_done() { | ||
await wait(500); | ||
var body = document.querySelector("body"); | ||
body.style.opacity = 0; | ||
} | ||
|
||
function authentication_done() { | ||
if (lightdm.is_authenticated) _authentication_done(); | ||
} | ||
|
||
function initGreeter() { | ||
lightdm.authentication_complete?.connect(() => authentication_done()); | ||
} | ||
|
||
if (window._ready_event === undefined) { | ||
_ready_event = new Event("GreeterReady"); | ||
window.dispatchEvent(_ready_event); | ||
} | ||
|
||
window.addEventListener("GreeterReady", initGreeter); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, viewport-fit=cover, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" | ||
/> | ||
|
||
<link rel="stylesheet" href="css/style.css" class="style" /> | ||
<link | ||
rel="stylesheet" | ||
href="../../_vendor/material-icons/css/materialdesignicons.min.css" | ||
onerror="this.href='../_vendor/material-icons/css/materialdesignicons.min.css'" | ||
class="style" | ||
/> | ||
|
||
<!--<script src="../_vendor/js/mock.js"></script>--> | ||
|
||
<title>Gruvbox theme</title> | ||
</head> | ||
<body> | ||
<div id="background"></div> | ||
|
||
<script src="js/secondary.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.