aboutsummaryrefslogtreecommitdiffstats
path: root/config/ags/modules/overview/actions.js
diff options
context:
space:
mode:
authorJa.KooLit <ejhay.games@gmail.com>2024-05-05 07:18:59 +0900
committerJa.KooLit <ejhay.games@gmail.com>2024-05-05 07:18:59 +0900
commit8e9b6f015038ae76ce68035d6aee7ff88a5be06c (patch)
tree498a56e78802f92bf3814353ac35a50d8b5f950b /config/ags/modules/overview/actions.js
parent962a09dd0088cd01cbf3e678c4c500ff5087e4e4 (diff)
Hmmmm.. I dont know why ags its here.... removing it
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