Files
hyprland/config/ags/functions/theme/matugen.js
T
2024-05-18 15:14:03 +05:45

11 lines
265 B
JavaScript

import { sh } from "../utils.js";
export function generateColor(path) {
sh(`matugen image ${path} --json hex`).then((out) => {
Utils.writeFile(
JSON.stringify(JSON.parse(out), null, 2),
App.configDir + "/colors.json",
).catch(print);
});
}