diff --git a/home/modules/hyprland/default.nix b/home/modules/hyprland/default.nix
index 8a580c6..6a4d7c5 100644
--- a/home/modules/hyprland/default.nix
+++ b/home/modules/hyprland/default.nix
@@ -19,7 +19,7 @@ in
./wlogout.nix
# ./swappy.nix
./alacritty.nix
- ./audio.nix
+ ./swayosd.nix
./sway-notification-center.nix
./ntfy-sh.nix
];
diff --git a/home/modules/hyprland/wallust-templates/waybar.css b/home/modules/hyprland/wallust-templates/waybar.css
index 06a8e0b..c0bb069 100644
--- a/home/modules/hyprland/wallust-templates/waybar.css
+++ b/home/modules/hyprland/wallust-templates/waybar.css
@@ -454,3 +454,12 @@ window#waybar.empty #window {
#tray > .needs-attention {
-gtk-icon-effect: highlight;
}
+
+#custom-notification {
+ font-family: "NotoSansMono Nerd Font";
+ margin-right: 20px;
+ font-size: 20px;
+ font-weight: bold;
+ opacity: 0.8;
+ color: @iconcolor;
+}
diff --git a/home/modules/hyprland/waybar.nix b/home/modules/hyprland/waybar.nix
index 0829e66..83a0d0a 100644
--- a/home/modules/hyprland/waybar.nix
+++ b/home/modules/hyprland/waybar.nix
@@ -97,17 +97,38 @@ let
spacing = 10;
};
+ clock = {
+ format = "{:%H:%M %a}";
+ timezone = "Asia/Jakarta";
+ tooltip-format = "{:%Y %B}\n{calendar}";
+ format-alt = "{:%Y-%m-%d}";
+ };
+
"custom/exit" = {
format = "";
on-click = "wlogout";
tooltip = false;
};
- clock = {
- format = "{:%H:%M %a}";
- timezone = "Asia/Jakarta";
- tooltip-format = "{:%Y %B}\n{calendar}";
- format-alt = "{:%Y-%m-%d}";
+ "custom/notification" = {
+ tooltip = false;
+ format = "{icon}";
+ format-icons = {
+ notification = "";
+ none = "";
+ dnd-notification = "";
+ dnd-none = "";
+ inhibited-notification = "";
+ inhibited-none = "";
+ dnd-inhibited-notification = "";
+ dnd-inhibited-none = "";
+ };
+ return-type = "json";
+ exec-if = "which swaync-client";
+ exec = "swaync-client --subscribe-waybar";
+ on-click = "swaync-client --toggle-panel --skip-wait";
+ on-click-right = "swaync-client --toggle-dnd --skip-wait";
+ escape = true;
};
};
in
@@ -148,7 +169,7 @@ in
"bluetooth"
"battery"
"network"
- # "group/hardware"
+ "custom/notification"
"custom/cliphist"
"idle_inhibitor"
"tray"