From 7eccf2eff31ce7c689039cf00e7bb2e5daeefc7a Mon Sep 17 00:00:00 2001 From: Quentin Boyer Date: Mon, 17 Apr 2023 21:25:42 +0200 Subject: [PATCH] gui: Add do not disturb mako mode --- personal-gui/wm/sway.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/personal-gui/wm/sway.nix b/personal-gui/wm/sway.nix index d3e5401..8a26581 100644 --- a/personal-gui/wm/sway.nix +++ b/personal-gui/wm/sway.nix @@ -38,14 +38,18 @@ in { LIBSEAT_BACKEND = "logind"; }; - programs = { - mako = mkIf cfg.notifications.enable { - enable = true; - font = cfg.notifications.font; - margin = "20,20,5,5"; - defaultTimeout = cfg.notifications.defaultTimeout; - }; + services.mako = mkIf cfg.notifications.enable { + enable = true; + font = cfg.notifications.font; + margin = "20,20,5,5"; + defaultTimeout = cfg.notifications.defaultTimeout; + extraConfig = '' + [mode=do-not-disturb] + invisible=1 + ''; + }; + programs = { waybar = { enable = true; style = builtins.readFile ./waybar.css;