import { Gdk, Gtk } from "ags/gtk4"; import Notifd from "gi://AstalNotifd"; import { createComputed, createBinding } from "ags"; export const NotificationList = () => { const { VERTICAL } = Gtk.Orientation; const notifd = Notifd.get_default(); const isDndMode = createBinding(notifd, "dont-disturb"); const toggleDndMode = () => { const currentDnd = notifd.get_dont_disturb(); notifd.set_dont_disturb(!currentDnd); }; const notificationIcon = createComputed([isDndMode], (dndMode) => { if (dndMode) { return "fa-bell-off-symbolic"; } return "fa-bell-symbolic"; }); return ( ); };