feat: more improvements

This commit is contained in:
2024-01-07 22:39:31 +01:00
parent 2c2b62d14e
commit 526a2dde94
5 changed files with 43 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
import App from "resource:///com/github/Aylur/ags/app.js";
import Hyprland from "resource:///com/github/Aylur/ags/service/hyprland.js";
import options from "../options.js";
import { readFile, writeFile } from "resource:///com/github/Aylur/ags/utils.js";
import * as Utils from "resource:///com/github/Aylur/ags/utils.js";
const noIgnorealpha = ["verification", "powermenu", "lockscreen"];
@@ -39,6 +39,15 @@ export function hyprlandInit() {
}
export async function setupHyprland() {
/*Hyprland.event("activewindowv2", async (addr) => {
const client = Hyprland.getClient(addr);
if (!client.pinned || !client.floating) return;
const x = client.at[0];
console.log(
await Utils.execAsync(`hyprctl dispatch moveactive exact ${x} 80`),
);
});*/
const wm_gaps = Math.floor(
options.hypr.wm_gaps_multiplier.value * options.spacing.value,
);