diff options
| author | adikro <adikro@disroot.org> | 2025-11-19 14:56:08 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2025-11-19 14:56:08 +0100 |
| commit | 96bf05e6a431f68f785296e398c725c071fe324e (patch) | |
| tree | 2050c530083cc04df91ccea9a9ec96eef98c16a8 /home/wayland/niri/niri.nix | |
| parent | 8498fab8785d08402e2330dfb6f45f1121cd1b2b (diff) | |
more niri configs
Diffstat (limited to 'home/wayland/niri/niri.nix')
| -rw-r--r-- | home/wayland/niri/niri.nix | 57 |
1 files changed, 49 insertions, 8 deletions
diff --git a/home/wayland/niri/niri.nix b/home/wayland/niri/niri.nix index 0391699..39143e4 100644 --- a/home/wayland/niri/niri.nix +++ b/home/wayland/niri/niri.nix @@ -1,34 +1,75 @@ -{ ... }: +{ lib, pkgs, ... }: { imports = [ ./binds.nix ]; programs.niri.settings = { prefer-no-csd = true; - layout.shadow.enable = true; input = { mouse = { accel-profile = "flat"; - accel-speed = -0.5; + accel-speed = -0.6; middle-emulation = true; + scroll-factor = 1.3; }; focus-follows-mouse = { enable = true; - max-scroll-amount = "0%"; + max-scroll-amount = "15%"; }; mod-key = "Alt"; - keyboard.xkb.layout = "pl"; + keyboard = { + xkb.layout = "pl"; + repeat-delay = 500; + repeat-rate = 50; + }; + power-key-handling.enable = false; }; outputs = { "DP-1" = { + focus-at-startup = true; + # backdrop-color = ""; + variable-refresh-rate = "on-demand"; mode = { width = 2560; height = 1440; - - refresh = null; + refresh = 239.998; }; - scale = 1.0; }; }; + cursor = { + hide-when-typing = true; + hide-after-inactive-ms = 10000; + size = 14; + # theme = ""; + }; + layout = { + border = { + width = 2; + # active = <decoration>; + }; + focus-ring = { + width = 2; + # active = <decoration>; + }; + preset-column-widths = [ + { proportion = 1. / 3.; } + { proportion = 1. / 2.; } + { proportion = 2. / 3.; } + ]; + preset-window-heights = [ + { proportion = 1. / 3.; } + { proportion = 1. / 2.; } + { proportion = 2. / 3.; } + ]; + default-column-width.proportion = 0.5; + tab-indicator = { + gaps-between-tabs = 3; + position = "top"; + }; + empty-workspace-above-first = true; + }; + spawn-at-startup = [ + { command = [ "${lib.getExe pkgs.xwayland-satellite}" ]; } + ]; }; } |
