From d58d0f0b45a711d4a67c37294af011b8752123cc Mon Sep 17 00:00:00 2001 From: Ryan Hughes <1630358+ryanrhughes@users.noreply.github.com> Date: Fri, 4 Jul 2025 22:33:00 -0400 Subject: [PATCH 1/2] Add DND option to Waybar --- config/waybar/config | 17 ++++++++++++++++- config/waybar/style.css | 1 + themes/catppuccin/mako.ini | 3 +++ themes/everforest/mako.ini | 3 +++ themes/gruvbox/mako.ini | 3 +++ themes/kanagawa/mako.ini | 3 +++ themes/nord/mako.ini | 3 +++ themes/tokyo-night/mako.ini | 3 +++ 8 files changed, 35 insertions(+), 1 deletion(-) diff --git a/config/waybar/config b/config/waybar/config index f0911c1..cbdc6ad 100644 --- a/config/waybar/config +++ b/config/waybar/config @@ -16,7 +16,9 @@ "pulseaudio", "cpu", "power-profiles-daemon", - "battery" + "battery", + "custom/dnd" + ], "hyprland/workspaces": { "on-click": "activate", @@ -121,5 +123,18 @@ "interval": 5, "tooltip": true, "tooltip-format": "{}" + }, + "custom/dnd": { + "exec": "makoctl mode | grep -q 'do-not-disturb' && echo '{\"alt\":\"dnd\",\"tooltip\":\"Enable notifications\"}' || echo '{\"alt\":\"on\",\"tooltip\":\"Disable notifications\"}'", + "format": "{icon}", + "format-icons": { + "on": " 󰂚", + "dnd": "󰂛" + }, + "return-type": "json", + "interval": 5, + "tooltip": "{tooltip}", + "on-click": "makoctl mode -t do-not-disturb" } + } diff --git a/config/waybar/style.css b/config/waybar/style.css index 1cdbf6d..c8706ce 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -16,6 +16,7 @@ margin-right: 3px; } +#custom-dnd, #custom-dropbox, #cpu, #power-profiles-daemon, diff --git a/themes/catppuccin/mako.ini b/themes/catppuccin/mako.ini index 6693ddb..d93e8da 100644 --- a/themes/catppuccin/mako.ini +++ b/themes/catppuccin/mako.ini @@ -12,3 +12,6 @@ max-icon-size=32 [app-name=Spotify] invisible=1 + +[mode=do-not-disturb] +invisible=1 diff --git a/themes/everforest/mako.ini b/themes/everforest/mako.ini index ee68224..b670877 100644 --- a/themes/everforest/mako.ini +++ b/themes/everforest/mako.ini @@ -12,3 +12,6 @@ max-icon-size=32 [app-name=Spotify] invisible=1 + +[mode=do-not-disturb] +invisible=1 diff --git a/themes/gruvbox/mako.ini b/themes/gruvbox/mako.ini index f5856b0..945bf51 100644 --- a/themes/gruvbox/mako.ini +++ b/themes/gruvbox/mako.ini @@ -12,3 +12,6 @@ max-icon-size=32 [app-name=Spotify] invisible=1 + +[mode=do-not-disturb] +invisible=1 diff --git a/themes/kanagawa/mako.ini b/themes/kanagawa/mako.ini index 6692aed..da535f2 100644 --- a/themes/kanagawa/mako.ini +++ b/themes/kanagawa/mako.ini @@ -12,3 +12,6 @@ max-icon-size=32 [app-name=Spotify] invisible=1 + +[mode=do-not-disturb] +invisible=1 diff --git a/themes/nord/mako.ini b/themes/nord/mako.ini index 8324ac3..9566375 100644 --- a/themes/nord/mako.ini +++ b/themes/nord/mako.ini @@ -12,3 +12,6 @@ max-icon-size=32 [app-name=Spotify] invisible=1 + +[mode=do-not-disturb] +invisible=1 diff --git a/themes/tokyo-night/mako.ini b/themes/tokyo-night/mako.ini index 5037071..9ee7172 100644 --- a/themes/tokyo-night/mako.ini +++ b/themes/tokyo-night/mako.ini @@ -12,3 +12,6 @@ max-icon-size=32 [app-name=Spotify] invisible=1 + +[mode=do-not-disturb] +invisible=1 From a0105fab4ade159645f485bcd16da93f0de91ff3 Mon Sep 17 00:00:00 2001 From: Ryan Hughes <1630358+ryanrhughes@users.noreply.github.com> Date: Sat, 5 Jul 2025 18:26:45 -0400 Subject: [PATCH 2/2] Move DND icon to the left of the clock --- config/waybar/config | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/waybar/config b/config/waybar/config index cbdc6ad..9bbf300 100644 --- a/config/waybar/config +++ b/config/waybar/config @@ -7,6 +7,7 @@ "hyprland/workspaces" ], "modules-center": [ + "custom/dnd", "clock" ], "modules-right": [ @@ -16,9 +17,7 @@ "pulseaudio", "cpu", "power-profiles-daemon", - "battery", - "custom/dnd" - + "battery" ], "hyprland/workspaces": { "on-click": "activate",