forked from Shinonome/dots-hyprland
add ags launcher for overview only
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
// Import
|
||||||
|
import GLib from 'gi://GLib';
|
||||||
|
import App from 'resource:///com/github/Aylur/ags/app.js'
|
||||||
|
import * as Utils from 'resource:///com/github/Aylur/ags/utils.js'
|
||||||
|
// Stuff
|
||||||
|
import userOptions from './modules/.configuration/user_options.js';
|
||||||
|
// Widgets
|
||||||
|
import Overview from './modules/overview/main.js';
|
||||||
|
|
||||||
|
const COMPILED_STYLE_DIR = `${GLib.get_user_cache_dir()}/ags/user/generated`
|
||||||
|
async function applyStyle() {
|
||||||
|
Utils.exec(`mkdir -p ${COMPILED_STYLE_DIR}`);
|
||||||
|
Utils.exec(`sass ${App.configDir}/scss/main.scss ${COMPILED_STYLE_DIR}/style.css`);
|
||||||
|
App.resetCss();
|
||||||
|
App.applyCss(`${COMPILED_STYLE_DIR}/style.css`);
|
||||||
|
console.log('[LOG] Styles loaded')
|
||||||
|
}
|
||||||
|
applyStyle().catch(print);
|
||||||
|
|
||||||
|
App.config({
|
||||||
|
css: `${COMPILED_STYLE_DIR}/style.css`,
|
||||||
|
stackTraceOnError: true,
|
||||||
|
windows: [Overview()],
|
||||||
|
});
|
||||||
|
|
||||||
Reference in New Issue
Block a user