summaryrefslogtreecommitdiff
path: root/home/wayland/niri/niri.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/wayland/niri/niri.nix')
-rw-r--r--home/wayland/niri/niri.nix57
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}" ]; }
+ ];
};
}