started on workspaces
This commit is contained in:
@@ -21,6 +21,7 @@ Singleton {
|
||||
NotificationServer {
|
||||
id: server
|
||||
|
||||
actionsSupported: true
|
||||
bodyMarkupSupported: true
|
||||
bodySupported: true
|
||||
|
||||
|
||||
22
Services/WorkspaceManager.qml
Normal file
22
Services/WorkspaceManager.qml
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
module Services
|
||||
singleton Time 1.0 Time.qml
|
||||
singleton NotificationManager 1.0 NotificationManager.qml
|
||||
singleton WorkspaceManager 1.0 WorkspaceManager.qml
|
||||
|
||||
Reference in New Issue
Block a user