mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Add: Lockscreen (wip)
This commit is contained in:
@@ -6,10 +6,13 @@ import Quickshell.Io
|
||||
import Quickshell.Widgets
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
import qs.Modules.Lockscreen
|
||||
|
||||
NPanel {
|
||||
id: powerMenu
|
||||
visible: false
|
||||
|
||||
|
||||
|
||||
// Anchors will be set by the parent component
|
||||
function show() {
|
||||
@@ -110,8 +113,9 @@ NPanel {
|
||||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: {
|
||||
// TODO: Implement lock screen functionality
|
||||
console.log("Lock screen requested")
|
||||
// Lock the screen
|
||||
lockScreen.locked = true
|
||||
powerMenu.visible = false
|
||||
}
|
||||
}
|
||||
@@ -416,4 +420,9 @@ NPanel {
|
||||
command: ["loginctl", "terminate-user", Quickshell.env("USER")]
|
||||
running: false
|
||||
}
|
||||
|
||||
// Lockscreen instance
|
||||
Lockscreen {
|
||||
id: lockScreen
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user