fix(dnd): add the notification bell to the whole-swap summer themes

The DND bell only landed in the generated Waybar config; summer-day and
summer-night ship waybar.jsonc whole-swaps that replace it entirely, so
they'd have shown no bell. Add custom/notification (swaync-client -swb,
left-click panel / right-click DND) to both legacy layouts with their
FontAwesome bell / bell-slash glyphs, and style it alongside the other
right-side modules in each waybar.css.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-14 21:08:01 +01:00
parent dbcb8efd1e
commit cd495d1720
4 changed files with 46 additions and 2 deletions

View File

@@ -50,6 +50,7 @@ window#waybar {
#network, #network,
#battery, #battery,
#tray, #tray,
#custom-notification,
#custom-powermenu { #custom-powermenu {
background-color: @bg0; background-color: @bg0;
color: @fg; color: @fg;

View File

@@ -11,7 +11,7 @@
"modules-left": ["custom/launcher", "clock", "clock#date"], "modules-left": ["custom/launcher", "clock", "clock#date"],
"modules-center": ["hyprland/workspaces"], "modules-center": ["hyprland/workspaces"],
"modules-right": ["pulseaudio", "network", "battery", "tray", "custom/powermenu"], "modules-right": ["pulseaudio", "network", "battery", "tray", "custom/notification", "custom/powermenu"],
"hyprland/workspaces": { "hyprland/workspaces": {
"disable-scroll": true, "disable-scroll": true,
@@ -80,6 +80,27 @@
"tray": { "spacing": 8 }, "tray": { "spacing": 8 },
"custom/notification": {
"format": "{icon}",
"return-type": "json",
"exec": "swaync-client -swb",
"exec-if": "which swaync-client",
"escape": true,
"tooltip": true,
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"format-icons": {
"none": "",
"notification": "",
"dnd-none": "",
"dnd-notification": "",
"inhibited-none": "",
"inhibited-notification": "",
"dnd-inhibited-none": "",
"dnd-inhibited-notification": ""
}
},
"custom/powermenu": { "custom/powermenu": {
"format": "", "format": "",
"on-click": "nomarchy-menu power", "on-click": "nomarchy-menu power",

View File

@@ -56,6 +56,7 @@ window#waybar {
#network, #network,
#idle_inhibitor, #idle_inhibitor,
#battery, #battery,
#custom-notification,
#custom-powermenu { #custom-powermenu {
background-color: @bg0; background-color: @bg0;
color: @fg; color: @fg;

View File

@@ -11,7 +11,7 @@
"modules-left": ["custom/nomarchy", "clock", "clock#date"], "modules-left": ["custom/nomarchy", "clock", "clock#date"],
"modules-center": ["hyprland/workspaces"], "modules-center": ["hyprland/workspaces"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "battery", "tray", "custom/powermenu"], "modules-right": ["idle_inhibitor", "pulseaudio", "network", "battery", "tray", "custom/notification", "custom/powermenu"],
"hyprland/workspaces": { "hyprland/workspaces": {
"disable-scroll": true, "disable-scroll": true,
@@ -87,6 +87,27 @@
"tray": { "spacing": 8 }, "tray": { "spacing": 8 },
"custom/notification": {
"format": "{icon}",
"return-type": "json",
"exec": "swaync-client -swb",
"exec-if": "which swaync-client",
"escape": true,
"tooltip": true,
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"format-icons": {
"none": "",
"notification": "",
"dnd-none": "",
"dnd-notification": "",
"inhibited-none": "",
"inhibited-notification": "",
"dnd-inhibited-none": "",
"dnd-inhibited-notification": ""
}
},
"custom/powermenu": { "custom/powermenu": {
"format": "", "format": "",
"on-click": "nomarchy-menu power", "on-click": "nomarchy-menu power",