This repository has been archived on 2024-04-14. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-dotfiles/user/configs/wayland/ags/ags-config/js/notifications/notificationPopup.js

19 lines
573 B
JavaScript

import { Box, Window } from 'resource:///com/github/Aylur/ags/widget.js';
import Notifications from 'resource:///com/github/Aylur/ags/service/notifications.js';
import { Notification } from './notification.js';
const PopupList = () => Box({
className: 'notificationPopupList',
css: 'padding: 1px;', // so it shows up
vertical: true,
binds: [['children', Notifications, 'popups',
popups => popups.map(Notification)]],
});
export default () => Window({
name: 'notificationPopupWindow',
anchor: ['right', 'top'],
child: PopupList(),
});