aboutsummaryrefslogtreecommitdiffstats
path: root/config/ags/modules/overview/actions.js
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2025-07-15 19:48:59 +0900
committerGitHub <noreply@github.com>2025-07-15 19:48:59 +0900
commit30f73308e232b49cfb30dc8015b315ea24e6b80c (patch)
tree69e8b1f219b2638d3119c70aea870730d7dae105 /config/ags/modules/overview/actions.js
parentccc57814f5b72f5481d5ea7fe4de4958dc80f553 (diff)
parentd3a59bcfac1f24b0f44e4bc798a59ac494bfedeb (diff)
Merge pull request #762 from JaKooLit/dev-quickshell
Merging Dev-quickshell to development
Diffstat (limited to 'config/ags/modules/overview/actions.js')
-rw-r--r--config/ags/modules/overview/actions.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/config/ags/modules/overview/actions.js b/config/ags/modules/overview/actions.js
deleted file mode 100644
index 766cf454..00000000
--- a/config/ags/modules/overview/actions.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import * as Utils from 'resource:///com/github/Aylur/ags/utils.js';
-import Hyprland from 'resource:///com/github/Aylur/ags/service/hyprland.js';
-
-function moveClientToWorkspace(address, workspace) {
- Utils.execAsync(['bash', '-c', `hyprctl dispatch movetoworkspacesilent ${workspace},address:${address} &`]);
-}
-
-export function dumpToWorkspace(from, to) {
- if (from == to) return;
- Hyprland.clients.forEach(client => {
- if (client.workspace.id == from) {
- moveClientToWorkspace(client.address, to);
- }
- });
-}
-
-export function swapWorkspace(workspaceA, workspaceB) {
- if (workspaceA == workspaceB) return;
- const clientsA = [];
- const clientsB = [];
- Hyprland.clients.forEach(client => {
- if (client.workspace.id == workspaceA) clientsA.push(client.address);
- if (client.workspace.id == workspaceB) clientsB.push(client.address);
- });
-
- clientsA.forEach((address) => moveClientToWorkspace(address, workspaceB));
- clientsB.forEach((address) => moveClientToWorkspace(address, workspaceA));
-} \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage