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,
);

View File

@@ -11,7 +11,6 @@ import { showAbout } from "../about/about.js";
import Gtk from "gi://Gtk";
export function init() {
console.log("init settings");
notificationBlacklist();
warnOnLowBattery();
globals();
@@ -21,7 +20,6 @@ export function init() {
gtkFontSettings();
dependandOptions();
console.log("init scss");
reloadScss();
hyprlandInit();
setupHyprland();

View File

@@ -9,7 +9,9 @@ export default [
name: "Latte",
icon: "󰄛",
"desktop.screen_corners": false,
"bar.style": "floating",
"desktop.clock.enable": false,
"bar.style": "separated",
"bar.separators": false,
"desktop.wallpaper.img": WP + "Lakeside-2-1.jpg",
...darkColors,
}),
@@ -17,7 +19,9 @@ export default [
name: "Frappe",
icon: "󰄛",
"desktop.screen_corners": false,
"bar.style": "floating",
"desktop.clock.enable": false,
"bar.style": "separated",
"bar.separators": false,
"desktop.wallpaper.img": WP + "Lakeside-2-10.jpg",
...lightColors,
"theme.widget.bg": "$accent",