Add a notification daemon.
This commit is contained in:
parent
2c27d580f4
commit
ed0d1e41d6
@ -263,6 +263,7 @@ in
|
||||
./lockscreen.nix
|
||||
./screenshot.nix
|
||||
./force_focus.nix
|
||||
./notification.nix
|
||||
];
|
||||
|
||||
options.me.swayIncludes = lib.mkOption {
|
||||
|
32
nix/configuration/roles/sway/notification.nix
Normal file
32
nix/configuration/roles/sway/notification.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
notification_sway_config = pkgs.writeTextFile {
|
||||
name = "notification.conf";
|
||||
text =
|
||||
builtins.replaceStrings
|
||||
[ "@mako@" "@makoctl@" ]
|
||||
[ "${pkgs.mako}/bin/mako" "${pkgs.mako}/bin/makoctl" ]
|
||||
''
|
||||
bindsym $mod+Escape exec @makoctl@ dismiss
|
||||
bindsym $mod+Shift+Escape exec @makoctl@ invoke
|
||||
|
||||
# Notifications
|
||||
exec @mako@
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
config = lib.mkIf config.me.graphical {
|
||||
me.swayIncludes = [
|
||||
notification_sway_config
|
||||
];
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user