From 6b24207c7382eac3b013ad2c9ba649ccc0e3e65c Mon Sep 17 00:00:00 2001 From: joygnu Date: Wed, 21 Aug 2024 22:33:10 +0200 Subject: [PATCH] no notifactinosn from ags cuas they look ugly lol --- home/ags/bar/config.js | 23 ----------------------- home/ags/nixos-switch.log | 3 --- 2 files changed, 26 deletions(-) delete mode 100644 home/ags/nixos-switch.log diff --git a/home/ags/bar/config.js b/home/ags/bar/config.js index fd3eb4e..c66b691 100644 --- a/home/ags/bar/config.js +++ b/home/ags/bar/config.js @@ -1,5 +1,4 @@ const hyprland = await Service.import("hyprland") -const notifications = await Service.import("notifications") const mpris = await Service.import("mpris") const audio = await Service.import("audio") const battery = await Service.import("battery") @@ -9,10 +8,6 @@ const date = Variable("", { poll: [1000, 'date "+%H:%M:%S %b %e."'], }) -// widgets can be only assigned as a child in one container -// so to make a reuseable widget, make it a function -// then you can simply instantiate one by calling it - function Workspaces() { const activeId = hyprland.active.workspace.bind("id") const workspaces = hyprland.bind("workspaces") @@ -45,23 +40,6 @@ 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 Media() { @@ -172,7 +150,6 @@ function Center() { spacing: 8, children: [ Media(), - Notification(), ], }) } diff --git a/home/ags/nixos-switch.log b/home/ags/nixos-switch.log deleted file mode 100644 index 9fec16a..0000000 --- a/home/ags/nixos-switch.log +++ /dev/null @@ -1,3 +0,0 @@ -warning: Git tree '/home/joy/nix' is dirty -building the system configuration... -warning: Git tree '/home/joy/nix' is dirty