feat(terra): bigger HyprChrome cursor, also on the greeter

Cursor size 24 -> 36 (with a 36px XCursor frame so X clients don't snap
to 32). The greeter's Hyprland gets the same theme via a new
homelab.greeter.cursor option, linked into the greeter's ~/.icons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-16 09:43:03 +02:00
co-authored by Claude Opus 5.5
parent 8c0c2822c6
commit e191ea3c8a
4 changed files with 22 additions and 2 deletions
+1
View File
@@ -89,6 +89,7 @@ in
primaryOutput = "DP-2";
defaultUser = "darman";
keyboardLayout = "de";
cursor = { inherit (config.home-manager.users.darman.home.pointerCursor) name size package; };
};
services.flatpak = {
+1 -1
View File
@@ -32,7 +32,7 @@ in
home.pointerCursor = {
name = "HyprChrome";
package = hyprchromeCursors;
size = 24;
size = 36;
gtk.enable = true;
hyprcursor.enable = true;
};
+1 -1
View File
@@ -6,7 +6,7 @@
# hyprcursor (SVG, so it stays sharp at any size) in a single theme dir.
let
name = "HyprChrome";
xcursorSizes = [ 24 32 48 ];
xcursorSizes = [ 24 32 36 48 ];
# hotspot on the 32px grid, as in the canvas; aliases are the X11/CSS names
# that should resolve to this shape.
+19
View File
@@ -7,6 +7,7 @@ let
cfg = config.homelab.greeter;
hyprland = config.programs.hyprland.package;
toLua = lib.generators.toLua { };
greeterHome = config.users.users.greeter.home;
shellDir = ../../dotfiles/quickshell;
@@ -32,6 +33,12 @@ let
hl.env("QS_GREETER_USER", ${toLua cfg.defaultUser})
hl.env("QS_GREETER_HOST", ${toLua config.networking.hostName})
hl.env("QS_GREETER_SESSION", "start-hyprland")
${lib.optionalString (cfg.cursor != null) ''
hl.env("HYPRCURSOR_THEME", ${toLua cfg.cursor.name})
hl.env("HYPRCURSOR_SIZE", "${toString cfg.cursor.size}")
hl.env("XCURSOR_THEME", ${toLua cfg.cursor.name})
hl.env("XCURSOR_SIZE", "${toString cfg.cursor.size}")
''}
hl.on("hyprland.start", function()
hl.exec_cmd("${session}")
@@ -58,6 +65,11 @@ in
type = lib.types.str;
default = "us";
};
cursor = lib.mkOption {
type = lib.types.nullOr lib.types.attrs;
default = null;
description = "{ name, size, package } cursor theme; reuse the user's pointerCursor.";
};
};
config = {
@@ -72,5 +84,12 @@ in
home = "/var/lib/greeter";
createHome = true;
};
# ~/.icons is searched by both hyprcursor and libXcursor; the greeter's
# XDG_DATA_DIRS isn't something we control.
systemd.tmpfiles.rules = lib.optionals (cfg.cursor != null) [
"d ${greeterHome}/.icons 0755 greeter greeter -"
"L+ ${greeterHome}/.icons/${cfg.cursor.name} - - - - ${cfg.cursor.package}/share/icons/${cfg.cursor.name}"
];
};
}