build please?
This commit is contained in:
22
home/dotfiles/ags/notif.js
Executable file
22
home/dotfiles/ags/notif.js
Executable file
@@ -0,0 +1,22 @@
|
||||
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 || ""),
|
||||
// }),
|
||||
Reference in New Issue
Block a user