feat: add idle inhibitor for ipc
This commit is contained in:
parent
ef1274d42b
commit
c74a248e1d
3 changed files with 58 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue