feat(ags): add closer windows
This commit is contained in:
parent
9988ba3719
commit
d0c75b76df
2 changed files with 16 additions and 1 deletions
13
config/ags/closer/closer.js
Normal file
13
config/ags/closer/closer.js
Normal 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');
|
||||
},
|
||||
}),
|
||||
});
|
|
@ -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,
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue