about summary refs log tree commit diff stats
path: root/hm/waybar/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hm/waybar/default.nix')
-rw-r--r--hm/waybar/default.nix33
1 files changed, 30 insertions, 3 deletions
diff --git a/hm/waybar/default.nix b/hm/waybar/default.nix
index 18b659c..0569fce 100644
--- a/hm/waybar/default.nix
+++ b/hm/waybar/default.nix
@@ -7,7 +7,14 @@
         position = "top";
         modules-left = ["hyprland/workspaces" "clock"];
         modules-center = ["hyprland/window"];
-        modules-right = ["pulseaudio" "network" "backlight" "battery" "tray"];
+        modules-right = [
+          "pulseaudio"
+          "network"
+          "backlight"
+          "battery"
+          "custom/notification"
+          "tray"
+        ];
 
         "hyprland/workspaces" = {
           disable-scroll = false;
@@ -78,8 +85,28 @@
         };
 
         tray = {
-          icon-size = 21;
-          spacing = 10;
+          icon-size = 10;
+          spacing = 5;
+        };
+        "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 -swb";
+          on-click = "swaync-client -t -sw";
+          on-click-right = "swaync-client -d -sw";
+          escape = true;
         };
       };
     };