Basic IPC Manager - Not backward compatible
This commit is contained in:
parent
73580bcc04
commit
ee326a72ae
3 changed files with 49 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ import qs.Services
|
||||||
|
|
||||||
Singleton {
|
Singleton {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property var values: Array(count).fill(0)
|
property var values: Array(count).fill(0)
|
||||||
property int count: 44
|
property int count: 44
|
||||||
property int noiseReduction: 60
|
property int noiseReduction: 60
|
||||||
|
|
@ -31,8 +31,6 @@ Singleton {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: process
|
id: process
|
||||||
property int index: 0
|
property int index: 0
|
||||||
|
|
|
||||||
46
Services/IPCManager.qml
Normal file
46
Services/IPCManager.qml
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
import QtQuick
|
||||||
|
import Quickshell.Io
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: root
|
||||||
|
|
||||||
|
IpcHandler {
|
||||||
|
target: "settings"
|
||||||
|
|
||||||
|
function toggle() {
|
||||||
|
settingsPanel.isLoaded = !settingsPanel.isLoaded
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
IpcHandler {
|
||||||
|
target: "notifications"
|
||||||
|
|
||||||
|
function toggleHistory() {
|
||||||
|
notificationHistoryPanel.isLoaded = !notificationHistoryPanel.isLoaded
|
||||||
|
}
|
||||||
|
|
||||||
|
function toggleDoNotDisturb() {// TODO
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
IpcHandler {
|
||||||
|
target: "idleInhibitor"
|
||||||
|
|
||||||
|
function toggle() {// TODO
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
IpcHandler {
|
||||||
|
target: "appLauncher"
|
||||||
|
|
||||||
|
function toggle() {// TODO
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
IpcHandler {
|
||||||
|
target: "lockScreen"
|
||||||
|
|
||||||
|
function toggle() {// TODO
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -46,6 +46,8 @@ ShellRoot {
|
||||||
id: notificationHistoryPanel
|
id: notificationHistoryPanel
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IPCManager {}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
// Ensure our singleton is created as soon as possible so we start fetching weather asap
|
// Ensure our singleton is created as soon as possible so we start fetching weather asap
|
||||||
Location.init()
|
Location.init()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue