From 5b3dede64baffe572e9bd942cfbb830ccc235eaa Mon Sep 17 00:00:00 2001 From: genofire Date: Sun, 14 Nov 2021 21:01:57 +0100 Subject: [PATCH] home/sway: add mako --- home/sway.nix | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/home/sway.nix b/home/sway.nix index 3b4c947..f1441ef 100644 --- a/home/sway.nix +++ b/home/sway.nix @@ -360,6 +360,84 @@ in # xdg.portal.enable = true; # xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-wlr ]; + programs.mako = { + enable = true; + font = "monospace 7"; + iconPath = "/home/genofire/.nix-profile/share/icons/Adwaita/:/home/genofire/.nix-profile/share/icons/hicolor/"; + maxIconSize = 32; + margin = "2"; + padding = "3"; + width = 380; + + format = "[%a] %s %h\\n%b"; + + maxVisible = 14; + # layer = "overlay"; + groupBy = "app-name,summary"; + sort = "+time"; + + backgroundColor = "#000000bf"; + borderColor = "#00afd7"; + extraConfig = '' +[app-name=""] +width=380 + +[app-name=""] +format=%s %h\n%b + +[app-name="notify-send"] +format=%s %h\n%b + +[grouped] +format=(%g) [%a] %s %h\n%b + +[actionable] +border-radius=2 + +[urgency=low] +#background-color=#00d787cf +border-color=#00d787 +progress-color=over #00d787c0 + +[urgency=normal] +#background-color=#00afd7cf +#background-color=#ff8700df +#border-color=#00afd7 +progress-color=over #00afd7c0 +#progress-color=over #ff8700df + +[urgency=high] +border-color=#af005f +#background-color=#af005f +#text-color=#e4e4e4 +#progress-color=over #ff8700df +progress-color=over #af005fc0 + +[app-icon="mail-message-new"] +border-color=#00afd7 +background-color=#00afd7c0 +border-size=1 + +[app-icon="kdeconnect"] +format=%s %h\n%b +border-color=#353535 +background-color=#1b1d1e +border-size=1 +anchor=top-left + +[summary="Log sum7"] +border-color=#ff8700 +background-color=#ff870090 +border-size=1 + +[summary="[Sum7] Alerts"] +format=%s %h\n%b +border-color=#af005f +background-color=#ff870090 +border-size=1 +''; + }; + services.gammastep = { enable = true; provider = "geoclue2";