mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: more improvements
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user