1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 06:52:50 -05:00

Add lock before suspend option to power settings

This commit is contained in:
bbedward
2025-09-20 12:20:19 -04:00
parent 2b99e61c65
commit 50bc3db048
3 changed files with 44 additions and 13 deletions

View File

@@ -223,6 +223,14 @@ Item {
}
}
DankToggle {
width: parent.width
text: "Lock before suspend"
description: "Automatically lock the screen when the system prepares to suspend"
checked: SessionData.lockBeforeSuspend
onToggled: checked => SessionData.setLockBeforeSuspend(checked)
}
StyledText {
text: "Idle monitoring not supported - requires newer Quickshell version"
font.pixelSize: Theme.fontSizeSmall