started on workspaces
This commit is contained in:
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user