Turn the lock screen into an unfolding glass dashboard

At rest the lock screen shows the date, glass clock and Now Playing. Typing
or clicking opens a glass card with avatar, name, status and password, then
wings unfold: weather (with the next forecasts) and system usage on the
left, notifications and media with Cava on the right, reusing the desktop
widget faces. Adds a Caps Lock warning, power controls behind a corner
button, and Dashboard and Notification previews settings. The screenshot
backdrop is now always fully blurred and dimmed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-10-15 18:07:46 +02:00
1 parent 4fa0c2c042
commit b96b0cb683
12 files changed
+1114 -330

No files matched your search

+10 -2
View File
@@ -35,8 +35,10 @@ Singleton {
// Live lock surfaces, for diagnostics and tests.
property var surfaces: []
property string realName: ""
// Active keyboard layout, read from Hyprland when the lock screen shows.
// Active keyboard layout and Caps Lock, read from Hyprland when the lock
// screen shows and again whenever Caps Lock is pressed.
property string layout: ""
property bool capsLock: false
readonly property bool shown: locked || previewing
readonly property string runtimeDir: (Quickshell.env("XDG_RUNTIME_DIR") || "/tmp") + "/glassMxrph"
@@ -107,6 +109,10 @@ Singleton {
testResult = "";
return submit(password, "test");
}
function probeKeyboard() {
layoutProbe.running = false;
layoutProbe.running = true;
}
function finishUnlock() {
unlocking = true;
unlockTimer.restart();
@@ -184,7 +190,7 @@ Singleton {
}
}
onShownChanged: if (shown)
layoutProbe.running = true
probeKeyboard()
Process {
id: layoutProbe
command: ["hyprctl", "devices", "-j"]
@@ -194,8 +200,10 @@ Singleton {
const keyboards = JSON.parse(text).keyboards || [];
const main = keyboards.find(k => k.main) || keyboards[0];
root.layout = main && main.active_keymap ? main.active_keymap.slice(0, 2).toUpperCase() : "";
root.capsLock = keyboards.some(k => k.capsLock);
} catch (e) {
root.layout = "";
root.capsLock = false;
}
}
}