feat(ags): add closer windows

This commit is contained in:
matt1432 2023-08-27 11:28:14 -04:00
parent 9988ba3719
commit d0c75b76df
2 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,13 @@
export const Closer = ags.Widget.Window({
name: 'closer',
popup: true,
layer: 'top',
anchor: 'top bottom left right',
child: ags.Widget.EventBox({
onPrimaryClickRelease: () => {
ags.App.closeWindow('powermenu');
ags.App.closeWindow('closer');
},
}),
});

View file

@ -1,5 +1,6 @@
import { execAsync, writeFile } from 'resource:///com/github/Aylur/ags/utils.js';
import { Powermenu } from 'file:///home/matt/.nix/config/ags/powermenu/powermenu.js';
import { Closer } from 'file:///home/matt/.nix/config/ags/closer/closer.js';
const scss = ags.App.configDir + '/style.scss';
const css = ags.App.configDir + '/style.css';
@ -10,6 +11,7 @@ ags.Utils.exec(`sassc ${scss} ${css}`);
export default {
style: css,
windows: [
Powermenu
Powermenu,
Closer,
]
}