summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rw-r--r--services/SHyprland.qml38
1 files changed, 0 insertions, 38 deletions
diff --git a/services/SHyprland.qml b/services/SHyprland.qml
deleted file mode 100644
index dfbc874..0000000
--- a/services/SHyprland.qml
+++ /dev/null
@@ -1,38 +0,0 @@
-pragma Singleton
-
-import Quickshell
-import Quickshell.Hyprland
-import QtQuick
-import qs.config
-
-Singleton {
- id: root
-
- readonly property var toplevels: Hyprland.toplevels
- readonly property var workspaces: Hyprland.workspaces
- readonly property var monitors: Hyprland.monitors
- property var ws: ObjectModel
- // readonly property HyprlandToplevel activeToplevel: Hyprland.activeToplevel
- readonly property HyprlandWorkspace focusedWorkspace: Hyprland.focusedWorkspace
- readonly property HyprlandMonitor focusedMonitor: Hyprland.focusedMonitor
-
- function dispatch(request: string): void {
- Hyprland.dispatch(request);
- }
-
- Connections {
- target: Hyprland
-
- function onRawEvent(event: HyprlandEvent): void {
- if (event.name.endsWith("v2"))
- return;
-
- if (event.name.includes("mon"))
- Hyprland.refreshMonitors();
- else if (event.name.includes("workspace"))
- Hyprland.refreshWorkspaces();
- // else
- // Hyprland.refreshToplevels();
- }
- }
-}