From cd495d1720c34341a67748b2eb6bebcd7dddc838 Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Sun, 14 Jun 2026 21:08:01 +0100 Subject: [PATCH] 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 --- themes/summer-day/waybar.css | 1 + themes/summer-day/waybar.jsonc | 23 ++++++++++++++++++++++- themes/summer-night/waybar.css | 1 + themes/summer-night/waybar.jsonc | 23 ++++++++++++++++++++++- 4 files changed, 46 insertions(+), 2 deletions(-) diff --git a/themes/summer-day/waybar.css b/themes/summer-day/waybar.css index 85617ca..61d4414 100755 --- a/themes/summer-day/waybar.css +++ b/themes/summer-day/waybar.css @@ -50,6 +50,7 @@ window#waybar { #network, #battery, #tray, +#custom-notification, #custom-powermenu { background-color: @bg0; color: @fg; diff --git a/themes/summer-day/waybar.jsonc b/themes/summer-day/waybar.jsonc index 7909d2c..c829654 100644 --- a/themes/summer-day/waybar.jsonc +++ b/themes/summer-day/waybar.jsonc @@ -11,7 +11,7 @@ "modules-left": ["custom/launcher", "clock", "clock#date"], "modules-center": ["hyprland/workspaces"], - "modules-right": ["pulseaudio", "network", "battery", "tray", "custom/powermenu"], + "modules-right": ["pulseaudio", "network", "battery", "tray", "custom/notification", "custom/powermenu"], "hyprland/workspaces": { "disable-scroll": true, @@ -80,6 +80,27 @@ "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": { "format": "", "on-click": "nomarchy-menu power", diff --git a/themes/summer-night/waybar.css b/themes/summer-night/waybar.css index da7538c..2cc8ddf 100644 --- a/themes/summer-night/waybar.css +++ b/themes/summer-night/waybar.css @@ -56,6 +56,7 @@ window#waybar { #network, #idle_inhibitor, #battery, +#custom-notification, #custom-powermenu { background-color: @bg0; color: @fg; diff --git a/themes/summer-night/waybar.jsonc b/themes/summer-night/waybar.jsonc index 875a96d..7699afd 100644 --- a/themes/summer-night/waybar.jsonc +++ b/themes/summer-night/waybar.jsonc @@ -11,7 +11,7 @@ "modules-left": ["custom/nomarchy", "clock", "clock#date"], "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": { "disable-scroll": true, @@ -87,6 +87,27 @@ "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": { "format": "", "on-click": "nomarchy-menu power",