started on workspaces

This commit is contained in:
2026-06-23 13:21:29 +01:00
parent 10ff3c170e
commit 175cea641b
7 changed files with 75 additions and 9 deletions

View File

@@ -21,6 +21,7 @@ Singleton {
NotificationServer {
id: server
actionsSupported: true
bodyMarkupSupported: true
bodySupported: true

View File

@@ -0,0 +1,22 @@
pragma Singleton
import QtQuick
import Quickshell
import Quickshell.Hyprland
Singleton {
id: root
function getWorkspacesForMonitor(monitor) {
let allWorkspaces = Hyprland.workspaces;
let monitorWorkspaces = [];
for (let workspace in allWorkspaces) {
let currentWorkspace = allWorkspaces[workspace];
if (currentWorkspace.monitor == monitor) {
console.log("correct");
} else {
console.log("incorrect");
}
}
}
}

View File

@@ -1,3 +1,4 @@
module Services
singleton Time 1.0 Time.qml
singleton NotificationManager 1.0 NotificationManager.qml
singleton WorkspaceManager 1.0 WorkspaceManager.qml