diff --git a/config/waybar/config b/config/waybar/config index f0911c1..9bbf300 100644 --- a/config/waybar/config +++ b/config/waybar/config @@ -7,6 +7,7 @@ "hyprland/workspaces" ], "modules-center": [ + "custom/dnd", "clock" ], "modules-right": [ @@ -121,5 +122,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