aboutsummaryrefslogtreecommitdiffstats
path: root/hm
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2025-08-24 04:39:34 +0200
committerSilas Schöffel <sils@sils.li>2025-08-24 04:39:34 +0200
commit65e48056967809a5e864a090673f8d12de918a3a (patch)
treeed61ac635152b6057a026bd8b65d40c38a3767f6 /hm
parenthyprland: switch to wofi (diff)
downloadnix-config-65e48056967809a5e864a090673f8d12de918a3a.zip
waybar: add swaync widget
Diffstat (limited to 'hm')
-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;
};
};
};