From bf44811dced54246317c51183b2c77b551fafb79 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 11 Jul 2025 20:55:23 +0800 Subject: mpris --- services/Hyprland.qml | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 services/Hyprland.qml (limited to 'services/Hyprland.qml') diff --git a/services/Hyprland.qml b/services/Hyprland.qml deleted file mode 100644 index dfbc874..0000000 --- a/services/Hyprland.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