61 lines
968 B
QML
61 lines
968 B
QML
import QtQuick
|
|
import Quickshell.Io
|
|
import qs.Services
|
|
|
|
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() {
|
|
appLauncherPanel.isLoaded = !appLauncherPanel.isLoaded
|
|
}
|
|
}
|
|
|
|
IpcHandler {
|
|
target: "lockScreen"
|
|
|
|
function toggle() {
|
|
lockScreen.isLoaded = !lockScreen.isLoaded
|
|
}
|
|
}
|
|
|
|
IpcHandler {
|
|
target: "brightness"
|
|
|
|
function increase() {
|
|
BrightnessService.increaseBrightness()
|
|
}
|
|
|
|
function decrease() {
|
|
BrightnessService.decreaseBrightness()
|
|
}
|
|
}
|
|
}
|