commit 19debe39550616d933b1ce59ab66662f4a2716e5
parent 3c01f619881946e8aac6f1889ebe139089476beb
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 10 Nov 2023 12:04:59 +0100
users/vincent: re-configure mako…
… to have a do-not-disturb mode and group notifications.
Next is going to be, filter some notifications based on group or apps..
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/users/vincent/desktop/sway.nix b/users/vincent/desktop/sway.nix
@@ -186,7 +186,6 @@ in
bindcode ${mod}+Shift+26 exec "swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'"
bindcode ${mod}+32 mode resize
bindcode ${mod}+Shift+32 exec "${pkgs.swaylock}/bin/swaylock -i $HOME/desktop/pictures/lockscreen"
- bindcode ${mod}+Shift+57 exec ${pkgs.swaynotificationcenter}/bin/swaync-client -t -sw"
# switch to workspace
bindcode ${mod}+10 workspace number 1
@@ -235,6 +234,9 @@ in
bindsym ${mod}+F10 exec ${pkgs.my.scripts}/bin/shot %d
bindsym ${mod}+Shift+F10 exec ${pkgs.my.scripts}/bin/shotf %d
+
+ bindcode F9 exec ${pkgs.mako}/bin/makoctl mode -s do-not-disturb
+ bindcode Shift+F9 exec ${pkgs.mako}/bin/makoctl mode -s default
'';
};
programs = {
@@ -320,6 +322,15 @@ in
enable = true;
font = "Ubuntu Mono 12";
defaultTimeout = 5000; # 5s timeout
+ groupBy = "app-name,summary";
+ extraConfig = ''
+ on-button-left=dismiss
+ on-button-middle=invoke-default-action
+ on-button-right=dismiss
+
+ [mode=do-not-disturb]
+ invisible=1
+ '';
};
kitty = {
enable = true;