1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 22:15:38 -05:00

lock: allow custom lock command

This commit is contained in:
bbedward
2025-10-17 08:36:11 -04:00
parent b6f7f2734e
commit ce6c16214c
3 changed files with 46 additions and 2 deletions

View File

@@ -19,6 +19,10 @@ Scope {
}
function lock() {
if (SettingsData.customPowerActionLock && SettingsData.customPowerActionLock.length > 0) {
Quickshell.execDetached(SettingsData.customPowerActionLock.split(" "))
return
}
if (!processingExternalEvent && SettingsData.loginctlLockIntegration && DMSService.isConnected) {
DMSService.lockSession(response => {
if (response.error) {