snowflake/home/ags/config/config.js
notohh 36bbb8603a
All checks were successful
flake check / check (push) Successful in 11m1s
fmt check / check (push) Successful in 1m6s
ags: init basic bar
2024-01-01 21:29:18 -05:00

24 lines
481 B
JavaScript

import { App, Utils } from './import.js';
import { Bar } from './js/main.js'
const scss = App.configDir + '/main.scss'
const css = App.configDir + '/style.css'
Utils.exec(`sass ${scss} ${css}`);
function reloadCss() {
console.log("scss updating");
Utils.exec(`sass ${scss} ${css}`);
App.resetCss();
App.applyCss(css);
}
Utils.monitorFile(`${App.configDir}/scss`, reloadCss, "directory");
export default {
style: css,
windows: [
Bar(2)
]
}