From 84d2fc3722a37eb86b79e7212a200c092aa86522 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 6 Jul 2025 14:55:26 -0700 Subject: [PATCH] Turn notifications on/off with Super+Ctrl+, Thanks to @ryanrhughes for the groundwork in #63 on this! --- default/hypr/bindings.conf | 1 + themes/catppuccin/mako.ini | 6 ++++++ themes/everforest/mako.ini | 6 ++++++ themes/gruvbox/mako.ini | 6 ++++++ themes/kanagawa/mako.ini | 6 ++++++ themes/nord/mako.ini | 6 ++++++ themes/tokyo-night/mako.ini | 6 ++++++ 7 files changed, 37 insertions(+) diff --git a/default/hypr/bindings.conf b/default/hypr/bindings.conf index 70cc473..b2f50d5 100644 --- a/default/hypr/bindings.conf +++ b/default/hypr/bindings.conf @@ -19,6 +19,7 @@ bind = SUPER, K, exec, ~/.local/share/omarchy/bin/omarchy-show-keybindings # Notifications bind = SUPER, comma, exec, makoctl dismiss bind = SUPER SHIFT, comma, exec, makoctl dismiss --all +bind = SUPER CTRL, comma, exec, makoctl mode -t do-not-disturb && makoctl mode | grep -q 'do-not-disturb' && notify-send "Silenced notifications" || notify-send "Enabled notifications" bind = SUPER, W, killactive, diff --git a/themes/catppuccin/mako.ini b/themes/catppuccin/mako.ini index 6693ddb..0ba300c 100644 --- a/themes/catppuccin/mako.ini +++ b/themes/catppuccin/mako.ini @@ -12,3 +12,9 @@ max-icon-size=32 [app-name=Spotify] invisible=1 + +[mode=do-not-disturb] +invisible=true + +[mode=do-not-disturb app-name=notify-send] +invisible=false diff --git a/themes/everforest/mako.ini b/themes/everforest/mako.ini index ee68224..6e84cf5 100644 --- a/themes/everforest/mako.ini +++ b/themes/everforest/mako.ini @@ -12,3 +12,9 @@ max-icon-size=32 [app-name=Spotify] invisible=1 + +[mode=do-not-disturb] +invisible=true + +[mode=do-not-disturb app-name=notify-send] +invisible=false diff --git a/themes/gruvbox/mako.ini b/themes/gruvbox/mako.ini index f5856b0..fe4a298 100644 --- a/themes/gruvbox/mako.ini +++ b/themes/gruvbox/mako.ini @@ -12,3 +12,9 @@ max-icon-size=32 [app-name=Spotify] invisible=1 + +[mode=do-not-disturb] +invisible=true + +[mode=do-not-disturb app-name=notify-send] +invisible=false diff --git a/themes/kanagawa/mako.ini b/themes/kanagawa/mako.ini index 6692aed..f6b365b 100644 --- a/themes/kanagawa/mako.ini +++ b/themes/kanagawa/mako.ini @@ -12,3 +12,9 @@ max-icon-size=32 [app-name=Spotify] invisible=1 + +[mode=do-not-disturb] +invisible=true + +[mode=do-not-disturb app-name=notify-send] +invisible=false diff --git a/themes/nord/mako.ini b/themes/nord/mako.ini index 8324ac3..c5786d1 100644 --- a/themes/nord/mako.ini +++ b/themes/nord/mako.ini @@ -12,3 +12,9 @@ max-icon-size=32 [app-name=Spotify] invisible=1 + +[mode=do-not-disturb] +invisible=true + +[mode=do-not-disturb app-name=notify-send] +invisible=false diff --git a/themes/tokyo-night/mako.ini b/themes/tokyo-night/mako.ini index 5037071..2a57423 100644 --- a/themes/tokyo-night/mako.ini +++ b/themes/tokyo-night/mako.ini @@ -12,3 +12,9 @@ max-icon-size=32 [app-name=Spotify] invisible=1 + +[mode=do-not-disturb] +invisible=true + +[mode=do-not-disturb app-name=notify-send] +invisible=false