2021-12-13 06:13:26 +00:00
|
|
|
{ options, config, lib, pkgs, ... }:
|
2021-12-14 05:24:26 +00:00
|
|
|
let
|
2021-12-16 01:58:52 +00:00
|
|
|
cfg = config.this.application.mako;
|
|
|
|
sway = config.this.application.sway;
|
2021-12-13 06:13:26 +00:00
|
|
|
in with lib; {
|
|
|
|
options = {
|
2021-12-16 01:58:52 +00:00
|
|
|
this.application.mako = {
|
2021-12-13 06:13:26 +00:00
|
|
|
enable = mkOption {
|
2022-03-08 05:16:32 +00:00
|
|
|
default = false;
|
2021-12-13 06:13:26 +00:00
|
|
|
type = with types; bool;
|
|
|
|
description = "testing one two three";
|
|
|
|
};
|
2021-12-02 05:09:25 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-12-13 06:13:26 +00:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home-manager.users.james = {
|
2022-02-10 04:13:06 +00:00
|
|
|
systemd.user.startServices = true;
|
2021-12-13 06:13:26 +00:00
|
|
|
programs.mako = {
|
|
|
|
enable = true;
|
|
|
|
width = 450;
|
|
|
|
padding = "20,20";
|
|
|
|
backgroundColor = "#161720ee";
|
|
|
|
borderColor = "#12151a";
|
|
|
|
textColor = "#d6e5fb";
|
|
|
|
defaultTimeout = 8000;
|
|
|
|
progressColor = "over #d6e5fb";
|
|
|
|
layer = "overlay";
|
|
|
|
groupBy = "summary";
|
|
|
|
extraConfig = ''
|
|
|
|
[hidden]
|
|
|
|
background-color=#bfbfbfff
|
|
|
|
format=+ %h
|
|
|
|
|
|
|
|
[urgency=high]
|
|
|
|
background-color=#1f212eee
|
|
|
|
border-color=#f0185a00
|
|
|
|
text-color=#f0185a
|
|
|
|
ignore-timeout=true
|
|
|
|
default-timeout=0
|
|
|
|
|
|
|
|
[!expiring]
|
|
|
|
background-color=#555555ff
|
|
|
|
text-color=#eeeeeeff
|
|
|
|
|
|
|
|
[grouped]
|
|
|
|
format=<b>%s</b> ✖ %g\n%b
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
home.packages = with pkgs; [ libnotify ];
|
|
|
|
};
|
|
|
|
systemd.user.services.mako = {
|
|
|
|
enable = true;
|
2022-02-10 04:13:06 +00:00
|
|
|
description = "Mako foo";
|
2022-03-08 04:35:07 +00:00
|
|
|
wantedBy = [ "sway-session.target" ];
|
2022-02-10 04:13:06 +00:00
|
|
|
partOf = [ "graphical-session.target" ];
|
2021-12-13 06:13:26 +00:00
|
|
|
serviceConfig = {
|
2022-02-10 04:13:06 +00:00
|
|
|
ExecStart = ''
|
|
|
|
${pkgs.mako}/bin/mako
|
|
|
|
'';
|
|
|
|
RestartSec = 5;
|
|
|
|
Restart = "always";
|
2021-12-13 06:13:26 +00:00
|
|
|
};
|
2021-12-02 05:09:25 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 04:13:06 +00:00
|
|
|
# systemd.user.services.mako = {
|
|
|
|
# enable = true;
|
|
|
|
# description = "Mako - Notificaitons for Wayland";
|
|
|
|
# documentation = [ "man:mako(5)" ];
|
|
|
|
# partOf = [ "sway-session.target" ];
|
|
|
|
# bindsTo = [ "sway-session.target" ];
|
|
|
|
# environment.PATH = lib.mkForce null;
|
|
|
|
# serviceConfig = {
|
|
|
|
# ExecStart = "${pkgs.mako}/bin/mako";
|
|
|
|
# Restart = "on-failure";
|
|
|
|
# RestartSec = 1;
|
|
|
|
# TimeoutStopSec = 10;
|
|
|
|
# Type = "simple";
|
|
|
|
# };
|
|
|
|
# };
|
2021-12-13 06:13:26 +00:00
|
|
|
};
|
2021-12-02 05:09:25 +00:00
|
|
|
}
|