dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
modules/desktop/niri/_settings/style.nix (1293B)
1## Style
2_: {
3 config,
4 osConfig ? null,
5 ...
6}: let
7 inherit (config.lib.stylix.colors.withHashtag) base00 base05 base0D;
8 fancy = osConfig.gui.fancy or false;
9in {
10 programs.niri.settings = {
11 prefer-no-csd = true;
12 overview.backdrop-color = base00;
13 layout = {
14 gaps = 7;
15 background-color = base00;
16 insert-hint.display.color = base05;
17
18 shadow = {
19 enable = true;
20 spread = 4;
21 softness = 8;
22 offset = {
23 x = 0;
24 y = 0;
25 };
26 };
27
28 border.width = 1;
29 focus-ring = {
30 enable = true;
31 width = 1;
32 active.color = base0D;
33 };
34
35 tab-indicator = {
36 position = "left";
37 length.total-proportion = 1.0;
38 width = 7;
39 gap = 7;
40 gaps-between-tabs = 7;
41 corner-radius = 7;
42 };
43 };
44
45 blur = {
46 enable = fancy;
47 passes = 2;
48 offset = 2;
49 noise = 0.02;
50 };
51
52 window-rules = [
53 {
54 clip-to-geometry = true;
55 draw-border-with-background = false;
56 geometry-corner-radius = let
57 radius = 7.0;
58 in {
59 bottom-left = radius;
60 bottom-right = radius;
61 top-left = radius;
62 top-right = radius;
63 };
64 }
65 ];
66 };
67}