mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 17:43:55 -05:00
Aly Raffauf
30aca9109a
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
* waybar: simplify css and remove pill shapes * waybar: use sans font * waybar: use 700 weight font * waybar: FontAwesome fallback * waybar: move to bottom and rearrange widgets * waybar: butons follow global borderRadius * waybar: improve widget borders * waybar: new default ppd icon * waybar: better use colors to show activation * waybar: use secondary color for muted volume * nixfmt * mako: move to bottom right with appropriate margins and grouping * mako: simplify font name * README.md: update
62 lines
1.7 KiB
Nix
62 lines
1.7 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
cfg = config.ar.home;
|
|
in {
|
|
config = lib.mkIf cfg.services.mako.enable {
|
|
services.mako = {
|
|
actions = true;
|
|
anchor = "bottom-right";
|
|
backgroundColor = "${cfg.theme.colors.background}99";
|
|
borderColor = "${cfg.theme.colors.primary}CC";
|
|
borderRadius = cfg.theme.borderRadius;
|
|
borderSize = 4;
|
|
defaultTimeout = 10000;
|
|
enable = true;
|
|
font = "${cfg.theme.sansFont.name} ${toString cfg.theme.sansFont.size}";
|
|
groupBy = "app-name";
|
|
height = 300;
|
|
iconPath = "${pkgs.papirus-icon-theme}/share/icons/Papirus/";
|
|
icons = true;
|
|
layer = "top";
|
|
margin = "20,0";
|
|
padding = "15";
|
|
progressColor = "source ${cfg.theme.colors.secondary}";
|
|
sort = "+time";
|
|
textColor = "${cfg.theme.colors.text}";
|
|
width = 400;
|
|
|
|
extraConfig = ''
|
|
on-notify=exec ${lib.getExe pkgs.mpv} ${pkgs.sound-theme-freedesktop}/share/sounds/freedesktop/stereo/message.oga
|
|
outer-margin=20
|
|
|
|
[mode=do-not-disturb]
|
|
invisible=1
|
|
'';
|
|
};
|
|
|
|
systemd.user.services.mako = {
|
|
Unit = {
|
|
After = "graphical-session.target";
|
|
Description = "Lightweight Wayland notification daemon";
|
|
Documentation = "man:mako(1)";
|
|
PartOf = "graphical-session.target";
|
|
};
|
|
|
|
Service = {
|
|
BusName = "org.freedesktop.Notifications";
|
|
ExecReload = ''${lib.getExe' pkgs.mako "makoctl"} reload'';
|
|
ExecStart = "${lib.getExe pkgs.mako}";
|
|
Restart = "on-failure";
|
|
RestartSec = 5;
|
|
Type = "dbus";
|
|
};
|
|
|
|
Install.WantedBy = ["hyprland-session.target" "sway-session.target"];
|
|
};
|
|
};
|
|
}
|