feat: complete quickshell redesign

This commit is contained in:
johannes committed 2026-09-21 16:16:35 +02:00
1 parent 1eb0820083
commit 0ff727898a
25 files changed
+1410 -401

No files matched your search

@@ -1,6 +1,7 @@
import QtQuick
import Quickshell
import Quickshell.Wayland
import Quickshell.Io
import Quickshell.Services.Pam
import Quickshell.Services.UPower
import "../Shared"
@@ -92,6 +93,68 @@ WlSessionLock {
precision: SystemClock.Seconds
}
property string hostLabel: "localhost"
Process {
id: hostnameProcess
command: ["hostname"]
running: true
stdout: StdioCollector {
onStreamFinished: lockSurface.hostLabel = this.text.trim()
}
}
// Top telemetry strip
Item {
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.margins: Theme.geometry.spacing * 2
height: 28
Row {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.geometry.spacing
Pill {
tint: Theme.colors.success
Rectangle { width: 6; height: 6; anchors.verticalCenter: parent.verticalCenter; color: Theme.colors.success }
Text {
text: Quickshell.env("USER") + " // " + lockSurface.hostLabel
color: Theme.colors.text
font.family: Theme.font.family
font.pixelSize: Theme.type.caption
font.bold: true
}
}
Pill {
tint: Theme.colors.outlineVariant
Text {
text: "WAYLAND_0 [HYPRLAND]"
color: Theme.colors.textMuted
font.family: Theme.font.family
font.pixelSize: Theme.type.caption
}
}
}
Pill {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
tint: Theme.colors.primary
glow: true
Text {
text: "PAM::SECURED"
color: Theme.colors.primary
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
}
}
}
Column {
anchors.centerIn: parent
spacing: Theme.geometry.spacing * 3
@@ -182,6 +245,8 @@ WlSessionLock {
id: passwordField
width: parent.width
placeholder: "Password"
prefix: "❯"
passwordCharacter: "■"
echoMode: sessionLock.responseVisible ? TextInput.Normal : TextInput.Password
onVisibleChanged: { if (visible) focusInput(); }
@@ -191,6 +256,10 @@ WlSessionLock {
authCtx.respond(sessionLock.password);
sessionLock.awaitingResponse = false;
}
onEscapePressed: {
passwordField.text = "";
sessionLock.errorText = "";
}
}
}
@@ -205,7 +274,10 @@ WlSessionLock {
HintBar {
anchors.horizontalCenter: parent.horizontalCenter
hints: [ { key: "↵", label: "Unlock" } ]
hints: [
{ key: "↵", label: "Unlock" },
{ key: "Esc", label: "Clear" }
]
}
}
}