Files
dotfiles/noctalia/plugins/workspace-overview/Main.qml
T
Domipoke 955801c666 noctalia
2026-06-25 19:58:23 +02:00

32 lines
696 B
QML

import QtQuick
import Quickshell.Io
import qs.Commons
Item {
id: root
property var pluginApi: null
IpcHandler {
target: "plugin:workspace-overview"
function toggle() {
root.showOverview();
}
}
// This function will be exposed
function showOverview() {
Logger.i("Workspace Overview", "-> Received command to open the Overview");
if (pluginApi) {
pluginApi.withCurrentScreen(screen => {
pluginApi.togglePanel(screen);
});
}
}
Component.onCompleted: {
Logger.i("Workspace Overview", "-> [Main] Workspace Overview is ready and listening.");
}
}