refactor: inputs/ --> {sys,home}/
This commit is contained in:
parent
8f22a24963
commit
f77c627980
225 changed files with 77 additions and 88 deletions
14
home/modules/desktop/wayland/notification/default.nix
Normal file
14
home/modules/desktop/wayland/notification/default.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
|
||||
imports = [
|
||||
./mako
|
||||
#./dunst -- still needs to be implemented
|
||||
];
|
||||
|
||||
options.homeModules.desktop.wayland.notification = {
|
||||
mako = {
|
||||
enable = lib.mkEnableOption "Enable mako notification daemon";
|
||||
};
|
||||
};
|
||||
}
|
||||
40
home/modules/desktop/wayland/notification/mako/default.nix
Normal file
40
home/modules/desktop/wayland/notification/mako/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (config.colorscheme) palette variant;
|
||||
fonts = config.homeModules.theme.fonts;
|
||||
cfg = config.homeModules.desktop.wayland.notification.mako;
|
||||
in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.mako = {
|
||||
enable = true;
|
||||
iconPath =
|
||||
if variant == "dark" then
|
||||
"${config.gtk.iconTheme.package}/share/icons/Papirus-Dark"
|
||||
else
|
||||
"${config.gtk.iconTheme.package}/share/icons/Papirus-Light";
|
||||
font = "${fonts.regular.family} 12";
|
||||
padding = "10,10";
|
||||
anchor = "top-right";
|
||||
width = 300;
|
||||
height = 100;
|
||||
borderSize = 2;
|
||||
defaultTimeout = 3000;
|
||||
backgroundColor = "#${palette.base00}dd";
|
||||
borderColor = "#${palette.base05}dd";
|
||||
textColor = "#${palette.base05}dd";
|
||||
extraConfig = ''
|
||||
[app-name="system-notify"]
|
||||
padding=3,3
|
||||
width=100
|
||||
height=100
|
||||
[urgency=critical]
|
||||
padding=3,3
|
||||
width=100
|
||||
height=100
|
||||
anchor=top-center
|
||||
border-color=#${palette.base08}dd
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue