From 03cf43c4f7683b6b52aee957ea0038af69acf694 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 4 Aug 2024 21:53:38 +0400 Subject: [PATCH] ok --- config/ags/config.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/config/ags/config.js b/config/ags/config.js index 4c0a30bb..fad9cb52 100644 --- a/config/ags/config.js +++ b/config/ags/config.js @@ -1,5 +1,5 @@ const hyprland = await Service.import("hyprland") -const notifications = await Service.import("notifications") +// const notifications = await Service.import("notifications") const mpris = await Service.import("mpris") const audio = await Service.import("audio") const battery = await Service.import("battery") @@ -47,21 +47,21 @@ function Clock() { // we don't need dunst or any other notification daemon // because the Notifications module is a notification daemon itself -function Notification() { - const popups = notifications.bind("popups") - return Widget.Box({ - class_name: "notification", - visible: popups.as(p => p.length > 0), - children: [ - Widget.Icon({ - icon: "preferences-system-notifications-symbolic", - }), - Widget.Label({ - label: popups.as(p => p[0]?.summary || ""), - }), - ], - }) -} +// function Notification() { +// const popups = notifications.bind("popups") +// return Widget.Box({ +// class_name: "notification", +// visible: popups.as(p => p.length > 0), +// children: [ +// Widget.Icon({ +// icon: "preferences-system-notifications-symbolic", +// }), +// Widget.Label({ +// label: popups.as(p => p[0]?.summary || ""), +// }), +// ], +// }) +// } function Media() { @@ -172,7 +172,7 @@ function Center() { spacing: 8, children: [ Media(), - Notification(), + // Notification(), ], }) }