Skip to content

Commit 2782c57

Browse files
committed
fix: only change action if it is dpms on/off
1 parent 67df389 commit 2782c57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/IdleMonitors.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Scope {
2222
else if (action === "unlock")
2323
lock.lock.locked = false;
2424
else if (typeof action === "string")
25-
Hypr.dispatch(Hypr.extras.usingLua ? `hl.dsp.dpms({ action = "${action === "dpms off" ? "disable" : "enable"}" })` : action);
25+
Hypr.dispatch(Hypr.extras.usingLua && ["dpms off", "dpms on"].includes(action) ? `hl.dsp.dpms({ action = "${action === "dpms off" ? "disable" : "enable"}" })` : action);
2626
else
2727
Quickshell.execDetached(action);
2828
}

0 commit comments

Comments
 (0)