From 1be09af058424219de2aad4b9cc27ccf760d23f6 Mon Sep 17 00:00:00 2001 From: adikro Date: Sun, 1 Mar 2026 19:57:16 +0100 Subject: ... --- hm/env/niri/niri.nix | 51 ++++++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 23 deletions(-) (limited to 'hm/env/niri/niri.nix') diff --git a/hm/env/niri/niri.nix b/hm/env/niri/niri.nix index 3f66f6e..f8e1542 100644 --- a/hm/env/niri/niri.nix +++ b/hm/env/niri/niri.nix @@ -2,10 +2,13 @@ config, lib, pkgs, + osConfig, ... -}: let +}: +let cfg = config.hm.env.niri; -in { +in +{ options.hm.env.niri.enable = lib.mkEnableOption "niri hm"; config = lib.mkIf cfg.enable { hm.env = { @@ -17,8 +20,15 @@ in { }; programs.niri.settings = { - debug.disable-cursor-plane = []; - binds = import ./binds.nix {inherit config lib pkgs;}; + debug.disable-cursor-plane = [ ]; + binds = import ./binds.nix { + inherit + config + osConfig + lib + pkgs + ; + }; prefer-no-csd = true; hotkey-overlay.skip-at-startup = true; @@ -41,17 +51,6 @@ in { }; power-key-handling.enable = false; }; - outputs = { - "DP-1" = { - focus-at-startup = true; - # backdrop-color = ""; - variable-refresh-rate = "on-demand"; - mode = { - width = 2560; - height = 1440; - }; - }; - }; cursor = { hide-when-typing = true; size = 48; @@ -67,14 +66,14 @@ in { # active = ; }; preset-column-widths = [ - {proportion = 1. / 3.;} - {proportion = 1. / 2.;} - {proportion = 2. / 3.;} + { proportion = 1. / 3.; } + { proportion = 1. / 2.; } + { proportion = 2. / 3.; } ]; preset-window-heights = [ - {proportion = 1. / 3.;} - {proportion = 1. / 2.;} - {proportion = 2. / 3.;} + { proportion = 1. / 3.; } + { proportion = 1. / 2.; } + { proportion = 2. / 3.; } ]; default-column-width.proportion = 0.5; tab-indicator = { @@ -85,14 +84,20 @@ in { window-rules = [ { matches = [ - {app-id = "Bitwarden";} + { app-id = "Bitwarden"; } ]; block-out-from = "screen-capture"; } ]; gestures.hot-corners.enable = false; spawn-at-startup = [ - {command = ["obs" "--disable-missing-files-check" "--startreplaybuffer"];} + { + command = [ + "obs" + "--disable-missing-files-check" + "--startreplaybuffer" + ]; + } ]; }; home.packages = with pkgs; [ -- cgit v1.3