zaphyra's git: nixfiles

zaphyra's nixfiles

commit effe23a4bf9b98e92599f1e9f7af2412360488f7
parent c2e2ae1a13ef0375a310540e5c9767ac50b2d78c
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Mon, 7 Jul 2025 16:07:48 +0200

config/home/zaphyra: improve design consistency on niri
3 files changed, 42 insertions(+), 10 deletions(-)
diff --git a/config/home/zaphyra/programs/fuzzel.nix b/config/home/zaphyra/programs/fuzzel.nix
@@ -11,6 +11,10 @@
         vertical-pad = 15;
         inner-pad = 5;
       };
+      border = {
+        width = 2;
+        radius = 6;
+      };
       colors = {
         background = "#00000080"; # Background color
         text = "#d8daddff"; # Text (foreground) color of unselected entries

@@ -20,7 +24,7 @@
         selection = "#ffffff1a"; # Background color of the selected entry
         selection-text = "#d8daddff"; # Text (foreground) color of the selected entry
         selection-match = "#b7d4edf2"; # Text (foreground) color of the matched substring of the selected entry
-        border = "#3b875680"; # The color of the match count stats printed at the right-hand side of the input prompt
+        border = "#4aa96cff"; # The color of the match count stats printed at the right-hand side of the input prompt
       };
     };
   };
diff --git a/config/home/zaphyra/programs/networkManagerDmenu.nix b/config/home/zaphyra/programs/networkManagerDmenu.nix
@@ -6,12 +6,12 @@
     packages = [ pkgs.networkmanager_dmenu ];
     file.".config/networkmanager-dmenu/config.ini".text = lib.generators.toINI { } {
       dmenu = {
-        dmenu_command = "${lib.getExe pkgs.fuzzel} --anchor=top-right --x-margin=10 --y-margin=10";
+        dmenu_command = "${lib.getExe pkgs.fuzzel} --anchor=top-right --x-margin=13 --y-margin=13";
         active_chars = "==";
         highlight = true;
         highlight_bold = true;
         compact = false;
-        pinentry = null;
+        pinentry = lib.getExe pkgs.pinentry-gnome3;
         wifi_icons = "󰤯󰤟󰤢󰤥󰤨";
         format = "{name:<{max_len_name}s}  {sec:<{max_len_sec}s} {icon:>4}";
         list_saved = false;
diff --git a/config/home/zaphyra/services/niri.nix b/config/home/zaphyra/services/niri.nix
@@ -39,8 +39,9 @@
       layout = {
         gaps = 15;
         focus-ring = {
-          inactive.color = "rgb(59, 135, 86)";
-          active.color = "rgb(74, 169, 108)";
+          width = 2;
+          inactive.color = "rgba(59, 135, 86, .9)";
+          active.color = "rgba(74, 169, 108, .9)";
         };
       };
 

@@ -63,6 +64,20 @@
 
       window-rules = [
         {
+          shadow.enable = true;
+          matches = [
+            {
+              is-floating = true;
+            }
+          ];
+        }
+        {
+          geometry-corner-radius = lib.genAttrs [ "bottom-left" "bottom-right" "top-left" "top-right" ] (
+            name: 6.0
+          );
+          clip-to-geometry = true;
+        }
+        {
           matches = [
             {
               at-startup = true;

@@ -79,6 +94,7 @@
           ];
 
           open-on-workspace = "Chat";
+          default-column-display = "tabbed";
         }
         {
           matches = [

@@ -90,6 +106,13 @@
         }
         {
           matches = [
+            { app-id = "org.gnome.NautilusPreviewer$"; }
+          ];
+
+          open-floating = true;
+        }
+        {
+          matches = [
             { app-id = "thunderbird$"; }
           ];
 

@@ -145,6 +168,8 @@
           action = lib.mkDefault (spawn (lib.getExe pkgs.brightnessctl) "s" "5%-");
         };
 
+        "Mod+Tab".action = toggle-overview;
+
         "Mod+1".action = focus-workspace "Web";
         "Mod+2".action = focus-workspace "Mail";
         "Mod+3".action = focus-workspace "Term";

@@ -155,9 +180,6 @@
         "Mod+8".action = focus-workspace 8;
         "Mod+9".action = focus-workspace 9;
 
-        "Mod+Prior".action = focus-workspace-up;
-        "Mod+Next".action = focus-workspace-down;
-
         "Mod+Shift+1".action.move-column-to-workspace = "Web";
         "Mod+Shift+2".action.move-column-to-workspace = "Mail";
         "Mod+Shift+3".action.move-column-to-workspace = "Term";

@@ -168,10 +190,16 @@
         "Mod+Shift+8".action.move-column-to-workspace = 8;
         "Mod+Shift+9".action.move-column-to-workspace = 9;
 
+        "Mod+Prior".action = focus-workspace-up;
+        "Mod+Next".action = focus-workspace-down;
+
+        "Mod+Shift+Prior".action = move-window-up-or-to-workspace-up;
+        "Mod+Shift+Next".action = move-window-down-or-to-workspace-down;
+
         "Mod+Left".action = focus-column-left;
         "Mod+Right".action = focus-column-right;
-        "Mod+Up".action = focus-window-up;
-        "Mod+Down".action = focus-window-down;
+        "Mod+Up".action = focus-window-or-workspace-up;
+        "Mod+Down".action = focus-window-or-workspace-down;
 
         "Mod+Shift+Left".action = move-column-left;
         "Mod+Shift+Right".action = move-column-right;