nixos-dots

nixos dots
git clone git://popovic.xyz/nixos-dots.git
Log | Files | Refs

commit c14cc1f82f228f55a96653855936e68aade8fd19
parent 3db2e1b8a5faca6adc9c227ac3e73543fe21591c
Author: Milutin Popovic <milutin@popovic.xyz>
Date:   Thu, 26 Mar 2026 01:09:10 +0000

niri configs

Diffstat:
Mmodules/alacitty.nix | 41++++++++++++++++++++++++++++++++++++++---
Mmodules/niri.nix | 32+++++++++++++++++++++++++++++---
Musers/mika.nix | 1+
3 files changed, 68 insertions(+), 6 deletions(-)

diff --git a/modules/alacitty.nix b/modules/alacitty.nix @@ -27,7 +27,7 @@ family = "Terminus"; style = "Bold"; }; - size = 12; + size = 14; }; colors = { @@ -66,13 +66,13 @@ bell = { duration = 0; - }; # st bellvolume=0 (closest match) + }; cursor = { style = { shape = "Block"; }; - thickness = 0.2; # st cursorthickness=2px; approximate (Alacritty uses fraction) + thickness = 0.2; }; selection = { @@ -82,6 +82,41 @@ mouse = { hide_when_typing = false; }; + + keyboard.bindings = [ + # Scrollback + { + key = "K"; + mods = "Alt"; + action = "ScrollLineUp"; + } + { + key = "L"; + mods = "Alt"; + action = "ScrollLineDown"; + } + { + key = "U"; + mods = "Alt"; + action = "ScrollPageUp"; + } + { + key = "D"; + mods = "Alt"; + action = "ScrollPageDown"; + } + + { + key = "C"; + mods = "Alt"; + action = "Copy"; + } + { + key = "V"; + mods = "Alt"; + action = "Paste"; + } + ]; }; }; } diff --git a/modules/niri.nix b/modules/niri.nix @@ -15,7 +15,7 @@ package = pkgs.niri; settings = let - noctaliaPkg = inputs.noctalia.packages.${pkgs.system}.default; + noctaliaPkg = inputs.noctalia.packages.${pkgs.stdenv.hostPlatform.system}.default; noctaliaExe = lib.getExe noctaliaPkg; in { @@ -71,8 +71,8 @@ "Mod+Ctrl+H".action.set-column-width = "-5%"; "Mod+Ctrl+L".action.set-column-width = "+5%"; - "Mod+Ctrl+J".action.set-window-height = "-5%"; - "Mod+Ctrl+K".action.set-window-height = "+5%"; + "Mod+Ctrl+K".action.set-window-height = "-5%"; + "Mod+Ctrl+J".action.set-window-height = "+5%"; "Shift+Alt+C".action.spawn-sh = "${lib.getExe pkgs.grim} -l 0 - | ${pkgs.wl-clipboard}/bin/wl-copy"; @@ -134,6 +134,32 @@ } ]; + outputs = { + "BOE 0x0BCA Unknown".enable = false; + "PNP(BNQ) BenQ GL2760 H3E04203019" = { + enable = true; + mode = { + width = 1920; + height = 1080; + }; + position = { + x = 0; + y = 0; + }; + }; + "PNP(BNQ) BenQ GL2760 SCF04101019" = { + enable = true; + mode = { + width = 1920; + height = 1080; + }; + position = { + x = 1920; + y = 0; + }; + }; + }; + input = { focus-follows-mouse.enable = true; keyboard = { diff --git a/users/mika.nix b/users/mika.nix @@ -78,6 +78,7 @@ in ../modules/xdg.nix ../modules/mbsync_timer.nix ../modules/niri.nix + ../modules/alacitty.nix ] ++ lib.optionals (standalone) [ ../modules/nix_settings.nix