cornflake/home-manager/fnott.nix

82 lines
2.1 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
config,
lib,
pkgs,
...
}:
{
services.fnott = {
enable = true;
# Home Manager module の仕様)
# https://mipmip.github.io/home-manager-option-search/?query=services.fnott.settings
settings = {
main = {
# --- 配置 / レイヤ ---
anchor = "top-right";
layer = "overlay"; # フルスクリーンでも出したい場合
stacking-order = "bottom-up";
# --- 余白 ---
edge-margin-vertical = 18;
edge-margin-horizontal = 18;
notification-margin = 10;
# --- サイズ ---
# アイコンを大きめにして視認性を上げる(テキストは控えめに)
min-width = 360;
max-width = 520;
max-height = 0; # 制限したいなら 600 など
# --- 見た目(モノトーン / シック)---
# 背景は黒寄り・透明気味、枠線は薄いグレー、文字は白〜グレー
background = "101012dd"; # RGBA 8桁 (rrggbbaa)
border-color = "2a2a2fff";
border-size = 1;
border-radius = 12;
# パディング(カード感)
padding-vertical = 16;
padding-horizontal = 18;
# --- フォント(モダン寄りに)---
title-font = "Inter SemiBold 11";
summary-font = "Inter Medium 10";
body-font = "Inter 10";
title-color = "f2f2f2ff";
summary-color = "d6d6d6ff";
body-color = "b8b8b8ff";
# --- アイコン優位 ---
icon-theme = "Papirus-Dark"; # 未導入なら "hicolor" でもOK
max-icon-size = 64; # デフォルト32 -> 強調
icon = "dialog-information"; # フォールバック(任意)
dpi-aware = false;
};
low = {
default-timeout = 4;
border-color = "232327ff";
};
normal = {
default-timeout = 7;
border-color = "2a2a2fff";
};
critical = {
default-timeout = 0;
border-color = "6a6a6fff";
border-size = 2;
background = "101012f2";
};
};
};
home.packages = with pkgs; [
papirus-icon-theme
];
}