Files
Olympus/home-manager/dotfiles/ags/notif.js

23 lines
609 B
JavaScript
Executable File

const notifications = await Service.import("notifications")
// we don't need dunst or any other notification daemon
// because the Notifications module is a notification daemon itself
export default function Notification() {
const popups = notifications.bind("popups")
return Widget.EventBox({
class_name: "notificationbutton",
visible: true,
on_primary_click: () => {},
child: Widget.Icon({
icon: "preferences-system-notifications-symbolic",
}),
})
}
// Widget.Label({
// label: popups.as(p => p[0]?.summary || ""),
// }),