diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-11 20:55:23 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-11 20:55:23 +0800 |
| commit | bf44811dced54246317c51183b2c77b551fafb79 (patch) | |
| tree | ee873254f93a5992b39df0932a581e1564bd153b /services/Hyprland.qml | |
| parent | 7cdb76f8310ffba13ea6dbd02416c76ac81f9add (diff) | |
mpris
Diffstat (limited to 'services/Hyprland.qml')
| -rw-r--r-- | services/Hyprland.qml | 38 |
1 files changed, 0 insertions, 38 deletions
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(); - } - } -} |
