feat: add idle inhibitor for ipc

This commit is contained in:
JPratama7 2025-07-27 18:11:48 +07:00
parent ef1274d42b
commit c74a248e1d
No known key found for this signature in database
GPG key ID: CD3EB7D0490C5F4B
3 changed files with 58 additions and 0 deletions

View file

@ -1,11 +1,18 @@
import Quickshell.Io
import "./IdleInhibitor.qml"
IpcHandler {
property var appLauncherPanel
property var lockScreen
property IdleInhibitor idleInhibitor
target: "globalIPC"
function toggleIdleInhibitor(): void {
idleInhibitor.toggle()
}
// Toggle Applauncher visibility
function toggleLauncher(): void {
if (!appLauncherPanel) {