summaryrefslogtreecommitdiff
path: root/hm/env/niri/niri.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hm/env/niri/niri.nix')
-rw-r--r--hm/env/niri/niri.nix51
1 files changed, 28 insertions, 23 deletions
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 = <decoration>;
};
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; [