diff --git a/devices/binto/config/ags/js/notifications/main.js b/devices/binto/config/ags/js/notifications/main.js index 7090a251..35b57748 100644 --- a/devices/binto/config/ags/js/notifications/main.js +++ b/devices/binto/config/ags/js/notifications/main.js @@ -1,15 +1,14 @@ -import PopUpsWidget from 'file:///home/matt/.nix/devices/wim/config/ags/js/notifications/popup.js'; +import { Window } from 'resource:///com/github/Aylur/ags/widget.js'; + import NotifCenterWidget from 'file:///home/matt/.nix/devices/wim/config/ags/js/notifications/center.js'; +import PopUpsWidget from 'file:///home/matt/.nix/devices/wim/config/ags/js/notifications/popup.js'; import PopupWindow from 'file:///home/matt/.nix/devices/wim/config/ags/js/misc/popup.js'; -export const NotifPopups = () => PopupWindow({ +export const NotifPopups = () => Window({ name: 'notifications', anchor: ['bottom', 'left'], - visible: true, - transition: 'none', - close_on_unfocus: 'stay', monitor: 1, child: PopUpsWidget(), diff --git a/devices/wim/config/ags/js/notifications/main.js b/devices/wim/config/ags/js/notifications/main.js index 1528c4be..e77ac7dc 100644 --- a/devices/wim/config/ags/js/notifications/main.js +++ b/devices/wim/config/ags/js/notifications/main.js @@ -1,15 +1,12 @@ -import PopUpsWidget from './popup.js'; +import { Window } from 'resource:///com/github/Aylur/ags/widget.js'; import NotifCenterWidget from './center.js'; +import PopUpsWidget from './popup.js'; import PopupWindow from '../misc/popup.js'; -export const NotifPopups = () => PopupWindow({ +export const NotifPopups = () => Window({ name: 'notifications', anchor: ['top', 'left'], - visible: true, - transition: 'none', - close_on_unfocus: 'stay', - child: PopUpsWidget(), }); diff --git a/devices/wim/config/ags/js/notifications/popup.js b/devices/wim/config/ags/js/notifications/popup.js index 2395bed5..e7bdcfd8 100644 --- a/devices/wim/config/ags/js/notifications/popup.js +++ b/devices/wim/config/ags/js/notifications/popup.js @@ -12,6 +12,8 @@ const DELAY = 2000; export default () => Box({ vertical: true, + // Needed so it occupies space at the start + css: 'padding: 1px;', setup: (self) => { /** @param {number} id */