From 5ef1e9815298c9d5d180d823c8a5d2cf3e05c702 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 7 Apr 2024 23:04:28 +0700 Subject: [PATCH] add ags launcher for overview only --- .config/ags/config_overviewOnly.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .config/ags/config_overviewOnly.js diff --git a/.config/ags/config_overviewOnly.js b/.config/ags/config_overviewOnly.js new file mode 100644 index 000000000..9e184b5dc --- /dev/null +++ b/.config/ags/config_overviewOnly.js @@ -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()], +}); +