From 0e4bdc7ed815ef389d9ca95fc4865f46701b1aaf Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 11 Jul 2025 21:49:53 +0800 Subject: activewindow --- services/SHyprland.qml | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 services/SHyprland.qml (limited to 'services') 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(); - } - } -} -- cgit v1.2.3