nixos-configs/config/ags/config.js

42 lines
1.1 KiB
JavaScript
Raw Normal View History

import { exec } from 'resource:///com/github/Aylur/ags/utils.js';
import { Powermenu } from './js/powermenu.js';
import { Bar } from './js/bar/main.js';
import { NotificationCenter } from './js/notifications/center.js';
import { NotificationsPopupList } from './js/notifications/popup.js'
2023-09-11 21:10:00 -04:00
import { Calendar } from './js/date.js';
import { QuickSettings } from './js/quick-settings/main.js';
import { Overview } from './js/overview/main.js';
import { Closer, closeAll } from './js/misc/closer.js';
ags.App.closeAll = () => closeAll();
2023-08-27 10:31:41 -04:00
const scss = ags.App.configDir + '/scss/main.scss';
2023-08-27 10:31:41 -04:00
const css = ags.App.configDir + '/style.css';
exec(`sassc ${scss} ${css}`);
2023-08-27 10:31:41 -04:00
exec(`bash -c "$AGS_PATH/startup.sh"`);
2023-08-27 10:31:41 -04:00
export default {
2023-09-11 14:18:22 -04:00
style: css,
notificationPopupTimeout: 5000,
cacheNotificationActions: true,
closeWindowDelay: {
'quick-settings': 500,
'notification-center': 500,
'calendar': 500,
'powermenu': 500,
'overview': 500,
},
2023-09-11 14:18:22 -04:00
windows: [
Powermenu,
Bar,
Closer,
NotificationCenter,
NotificationsPopupList,
2023-09-11 21:10:00 -04:00
Calendar,
QuickSettings,
Overview,
2023-09-11 14:18:22 -04:00
],
};