8efd0a1139
yolo's desktop is only ever seen through a Moonlight window, so its cursor needs to be tellable apart from the client's at a glance. Bibata-Modern-Amber differs in both colour and silhouette from Nordzy. Threads the theme through an option rather than setting it in one place: it was hardcoded in cursor.nix, in hl.env, in the setcursor autostart, and twice more in darkman's mode scripts, which re-set it on every light/dark switch and would have reverted the override. Also drops a stale hl.env pointing HYPRCURSOR_THEME at rose-pine-hyprcursor, which no host installs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
22 lines
526 B
Nix
22 lines
526 B
Nix
{ pkgs, config, ... }:
|
|
let
|
|
cfg = config.custom.hyprland;
|
|
nordzy-cursors = pkgs.callPackage ../../../../pkgs/nordzy-cursors/package.nix { };
|
|
cursorPackage = if cfg.cursorPackage != null then cfg.cursorPackage else nordzy-cursors;
|
|
cursorSize = cfg.cursorSize;
|
|
in
|
|
{
|
|
home.packages = [
|
|
cursorPackage
|
|
];
|
|
|
|
home.sessionVariables = {
|
|
HYPRCURSOR_THEME = cfg.cursorTheme.dark;
|
|
HYPRCURSOR_SIZE = cursorSize;
|
|
XCURSOR_THEME = cfg.cursorTheme.dark;
|
|
XCURSOR_SIZE = cursorSize;
|
|
};
|
|
|
|
dconf.enable = true;
|
|
}
|