agsdotfilesdotshyprlandhyprland-configricerofirofi-configshell-scriptsswwwwallustwaybarwaybar-modulewaybar-themes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
797 B
31 lines
797 B
"use strict"; |
|
import GLib from 'gi://GLib'; |
|
import App from 'resource:///com/github/Aylur/ags/app.js' |
|
import userOptions from './modules/.configuration/user_options.js'; |
|
import Overview from './modules/overview/main.js'; |
|
|
|
const COMPILED_STYLE_DIR = `${GLib.get_user_config_dir()}/ags/user/` |
|
|
|
async function applyStyle() { |
|
|
|
App.resetCss(); |
|
App.applyCss(`${COMPILED_STYLE_DIR}/style.css`); |
|
console.log('[LOG] Styles loaded') |
|
} |
|
applyStyle().catch(print); |
|
|
|
const Windows = () => [ |
|
Overview() |
|
]; |
|
const CLOSE_ANIM_TIME = 210; |
|
App.config({ |
|
css: `${COMPILED_STYLE_DIR}/style.css`, |
|
stackTraceOnError: true, |
|
closeWindowDelay: { |
|
'sideright': CLOSE_ANIM_TIME, |
|
'sideleft': CLOSE_ANIM_TIME, |
|
'osk': CLOSE_ANIM_TIME, |
|
}, |
|
windows: Windows().flat(1), |
|
}); |
|
|
|
|