From 142182204c469de729e9a5e8ccb12bd536bd32b0 Mon Sep 17 00:00:00 2001 From: serenity-F Date: Fri, 2 Oct 2026 18:43:42 +1000 Subject: [PATCH] tweak: niri/noctalia settings --- modules/features/desktop/niri.nix | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/modules/features/desktop/niri.nix b/modules/features/desktop/niri.nix index 1353313..79c5c44 100644 --- a/modules/features/desktop/niri.nix +++ b/modules/features/desktop/niri.nix @@ -16,14 +16,11 @@ # for home manager functionality imports = [ inputs.home-manager.nixosModules.home-manager ]; - # for latest niri versions nixpkgs.overlays = [ inputs.niri.overlays.niri ]; - - # packages for desktop environment + # system packages for desktop environment environment.systemPackages = with pkgs; [ - - # niri + # niri extras xwayland-satellite # xwayland support jq # for parsing json @@ -43,7 +40,6 @@ # let binding magic lets me get nice column widths let - widthDivisions = [ 1.0 2.0 @@ -56,7 +52,6 @@ 3.0 4.0 ]; - # black magic, expected output: # [ { proportion = 1.0 / 1.0 } # { proportion = 1.0 / 2.0 } @@ -73,14 +68,11 @@ map (x: map (y: { proportion = x / y; }) divisions) divisions ) ); - # then get all the unique outputs (removing double ups of 0.5 or others) columnWidths = getProportions widthDivisions; columnWidthsFiltered = builtins.filter (x: builtins.lessThan x.proportion 1.0) columnWidths; # just get the values that are below 1 - windowHeights = getProportions heightDivisions; windowHeightsFiltered = builtins.filter (x: builtins.lessThan x.proportion 1.0) windowHeights; - in { @@ -91,8 +83,6 @@ inputs.niri.homeModules.niri ]; - home.packages = with pkgs; [ ]; - programs.niri = { # enables niri within home manager enable = true; @@ -191,10 +181,6 @@ "btop" ]; } - #{ - # automanages disks - #argv = [ "udiskie" ]; # started via systemd pretty sure lol - #} ]; # visual settings @@ -222,7 +208,7 @@ # remove backdrop colour background-color = "transparent"; - center-focused-column = "never"; + #center-focused-column = "never"; # window|window gaps gaps = 8; #window|screen edge gaps @@ -297,7 +283,7 @@ }; } - # rules for specific windows + # rules for specific windows - BROKEN ? { # kitty opacity matches = [ { app-id = "kitty"; } ]; @@ -350,6 +336,7 @@ #"Mod+Tab".repeat = false; # launcher "Mod+Return".action = spawn "${pkgs.kitty}/bin/kitty"; "Mod+Return".repeat = false; # terminal + # noctalia launcher "Mod+Tab".action = spawn-sh "${pkgs.noctalia}/bin/noctalia msg panel-toggle launcher"; # screen capture "Mod+S".action.screenshot = {