aboutsummaryrefslogtreecommitdiffstats
path: root/config/quickshell/overview-bak/services
diff options
context:
space:
mode:
authorDon Williams <Don.e.williams@gmail.com>2026-07-11 00:17:54 -0400
committerPinapelz <yukais@pinapelz.com>2026-08-29 21:39:35 -0700
commit5c3d43b34594e2f7a6f4edd0640d2e44c51c8875 (patch)
tree2c029a0aa695367f88435155714f873caab17448 /config/quickshell/overview-bak/services
parentb6f9b1b70e1fc9509d997f2c3d31c49d0c8557d3 (diff)
Updated quickshell overview removed backup
Signed-off-by: Don Williams <Don.e.williams@gmail.com> On branch development Your branch is up to date with 'origin/development'. Changes to be committed: deleted: config/quickshell/overview-bak/README.md deleted: config/quickshell/overview-bak/assets/image.png deleted: config/quickshell/overview-bak/common/Appearance.qml deleted: config/quickshell/overview-bak/common/Config.qml deleted: config/quickshell/overview-bak/common/functions/ColorUtils.qml deleted: config/quickshell/overview-bak/common/functions/qmldir deleted: config/quickshell/overview-bak/common/qmldir deleted: config/quickshell/overview-bak/common/widgets/StyledRectangularShadow.qml deleted: config/quickshell/overview-bak/common/widgets/StyledText.qml deleted: config/quickshell/overview-bak/common/widgets/StyledToolTip.qml deleted: config/quickshell/overview-bak/common/widgets/StyledToolTipContent.qml deleted: config/quickshell/overview-bak/common/widgets/qmldir deleted: config/quickshell/overview-bak/modules/overview/Overview.qml deleted: config/quickshell/overview-bak/modules/overview/OverviewWidget.qml deleted: config/quickshell/overview-bak/modules/overview/OverviewWindow.qml deleted: config/quickshell/overview-bak/modules/overview/qmldir deleted: config/quickshell/overview-bak/services/GlobalStates.qml deleted: config/quickshell/overview-bak/services/HyprlandData.qml deleted: config/quickshell/overview-bak/services/qmldir deleted: config/quickshell/overview-bak/shell.qml deleted: config/quickshell/overview/.github/FUNDING.yml
Diffstat (limited to 'config/quickshell/overview-bak/services')
-rw-r--r--config/quickshell/overview-bak/services/GlobalStates.qml11
-rw-r--r--config/quickshell/overview-bak/services/HyprlandData.qml137
-rw-r--r--config/quickshell/overview-bak/services/qmldir2
3 files changed, 0 insertions, 150 deletions
diff --git a/config/quickshell/overview-bak/services/GlobalStates.qml b/config/quickshell/overview-bak/services/GlobalStates.qml
deleted file mode 100644
index 7644e385..00000000
--- a/config/quickshell/overview-bak/services/GlobalStates.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-pragma Singleton
-pragma ComponentBehavior: Bound
-
-import QtQuick
-import Quickshell
-
-Singleton {
- id: root
- property bool overviewOpen: false
- property bool superReleaseMightTrigger: true
-}
diff --git a/config/quickshell/overview-bak/services/HyprlandData.qml b/config/quickshell/overview-bak/services/HyprlandData.qml
deleted file mode 100644
index e23472d0..00000000
--- a/config/quickshell/overview-bak/services/HyprlandData.qml
+++ /dev/null
@@ -1,137 +0,0 @@
-pragma Singleton
-pragma ComponentBehavior: Bound
-
-import QtQuick
-import Quickshell
-import Quickshell.Io
-import Quickshell.Hyprland
-
-/**
- * Provides access to some Hyprland data not available in Quickshell.Hyprland.
- */
-Singleton {
- id: root
- property var windowList: []
- property var addresses: []
- property var windowByAddress: ({})
- property var workspaces: []
- property var workspaceIds: []
- property var workspaceById: ({})
- property var activeWorkspace: null
- property var monitors: []
- property var layers: ({})
-
- function updateWindowList() {
- getClients.running = true;
- }
-
- function updateLayers() {
- getLayers.running = true;
- }
-
- function updateMonitors() {
- getMonitors.running = true;
- }
-
- function updateWorkspaces() {
- getWorkspaces.running = true;
- getActiveWorkspace.running = true;
- }
-
- function updateAll() {
- updateWindowList();
- updateMonitors();
- updateLayers();
- updateWorkspaces();
- }
-
- function biggestWindowForWorkspace(workspaceId) {
- const windowsInThisWorkspace = HyprlandData.windowList.filter(w => w.workspace.id == workspaceId);
- return windowsInThisWorkspace.reduce((maxWin, win) => {
- const maxArea = (maxWin?.size?.[0] ?? 0) * (maxWin?.size?.[1] ?? 0);
- const winArea = (win?.size?.[0] ?? 0) * (win?.size?.[1] ?? 0);
- return winArea > maxArea ? win : maxWin;
- }, null);
- }
-
- Component.onCompleted: {
- updateAll();
- }
-
- Connections {
- target: Hyprland
-
- function onRawEvent(event) {
- updateAll()
- }
- }
-
- Process {
- id: getClients
- command: ["hyprctl", "clients", "-j"]
- stdout: StdioCollector {
- id: clientsCollector
- onStreamFinished: {
- root.windowList = JSON.parse(clientsCollector.text)
- let tempWinByAddress = {};
- for (var i = 0; i < root.windowList.length; ++i) {
- var win = root.windowList[i];
- tempWinByAddress[win.address] = win;
- }
- root.windowByAddress = tempWinByAddress;
- root.addresses = root.windowList.map(win => win.address);
- }
- }
- }
-
- Process {
- id: getMonitors
- command: ["hyprctl", "monitors", "-j"]
- stdout: StdioCollector {
- id: monitorsCollector
- onStreamFinished: {
- root.monitors = JSON.parse(monitorsCollector.text);
- }
- }
- }
-
- Process {
- id: getLayers
- command: ["hyprctl", "layers", "-j"]
- stdout: StdioCollector {
- id: layersCollector
- onStreamFinished: {
- root.layers = JSON.parse(layersCollector.text);
- }
- }
- }
-
- Process {
- id: getWorkspaces
- command: ["hyprctl", "workspaces", "-j"]
- stdout: StdioCollector {
- id: workspacesCollector
- onStreamFinished: {
- root.workspaces = JSON.parse(workspacesCollector.text);
- let tempWorkspaceById = {};
- for (var i = 0; i < root.workspaces.length; ++i) {
- var ws = root.workspaces[i];
- tempWorkspaceById[ws.id] = ws;
- }
- root.workspaceById = tempWorkspaceById;
- root.workspaceIds = root.workspaces.map(ws => ws.id);
- }
- }
- }
-
- Process {
- id: getActiveWorkspace
- command: ["hyprctl", "activeworkspace", "-j"]
- stdout: StdioCollector {
- id: activeWorkspaceCollector
- onStreamFinished: {
- root.activeWorkspace = JSON.parse(activeWorkspaceCollector.text);
- }
- }
- }
-}
diff --git a/config/quickshell/overview-bak/services/qmldir b/config/quickshell/overview-bak/services/qmldir
deleted file mode 100644
index b9008641..00000000
--- a/config/quickshell/overview-bak/services/qmldir
+++ /dev/null
@@ -1,2 +0,0 @@
-singleton HyprlandData 1.0 HyprlandData.qml
-singleton GlobalStates 1.0 GlobalStates.qml
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage