mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 13:03:56 -05:00
Aly Raffauf
23c783cfc5
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
* swaylock: update to standard font name * theme: setup font options and mgirate theme.nix * zed: migrate to font modules * swaylock: migrate to font modules * kitty: migrate to font modules * fuzzel: migrate to font modules * vsCodium: migrate to font modules * rofi: migrate to font modules * rofi: migrate to font modules * waybar: migrate to font modules * alacritty: migrate to font modules * alacritty: pull font size from theme module * nixfmt * rustboro: migrate font overrides * waybar: calculate font size from theme font settings * vsCodium: set font size from module * zed: set font size from module * sway: migrate to font modules * wlogout: migrate to font modules * mako: migrate to font modules * sway: fix improper option reference
58 lines
1.5 KiB
Nix
58 lines
1.5 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
cfg = config.ar.home;
|
|
in {
|
|
config = lib.mkIf cfg.services.mako.enable {
|
|
services.mako = {
|
|
actions = true;
|
|
anchor = "top-center";
|
|
backgroundColor = "${cfg.theme.colors.background}CC";
|
|
borderColor = "${cfg.theme.colors.primary}EE";
|
|
borderRadius = 10;
|
|
borderSize = 2;
|
|
defaultTimeout = 10000;
|
|
enable = true;
|
|
font = "${cfg.theme.sansFont.name} Regular ${toString cfg.theme.sansFont.size}";
|
|
height = 300;
|
|
iconPath = "${pkgs.papirus-icon-theme}/share/icons/Papirus/";
|
|
icons = true;
|
|
layer = "top";
|
|
margin = "20,0";
|
|
padding = "15";
|
|
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
|
|
|
|
[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"];
|
|
};
|
|
};
|
|
}
|