2024-08-05 16:23:53 -04:00
|
|
|
self: {pkgs, ...}: {
|
|
|
|
config = let
|
2024-11-20 15:17:55 -05:00
|
|
|
inherit (self.scopedPackages.${pkgs.system}) dracula;
|
2024-08-05 16:23:53 -04:00
|
|
|
|
|
|
|
cursorTheme = dracula.hyprcursor;
|
|
|
|
cursorThemeName = "Dracula-cursors";
|
|
|
|
hyprcursorThemeName = "Dracula-hyprcursor";
|
|
|
|
cursorSize = 24;
|
|
|
|
in {
|
|
|
|
home.pointerCursor = {
|
|
|
|
name = cursorThemeName;
|
|
|
|
package = dracula.gtk;
|
|
|
|
size = cursorSize;
|
|
|
|
|
|
|
|
gtk.enable = true;
|
|
|
|
|
|
|
|
x11 = {
|
|
|
|
enable = true;
|
|
|
|
defaultCursor = cursorThemeName;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
home.file.".local/share/icons/${hyprcursorThemeName}".source = cursorTheme;
|
|
|
|
|
2024-11-20 20:12:24 -05:00
|
|
|
wayland.windowManager.hyprland.settings = {
|
|
|
|
envd = [
|
|
|
|
"XCURSOR_THEME, ${cursorThemeName}"
|
|
|
|
"XCURSOR_SIZE, ${toString cursorSize}"
|
|
|
|
];
|
2024-08-05 16:23:53 -04:00
|
|
|
|
2024-11-20 20:12:24 -05:00
|
|
|
exec-once = [
|
|
|
|
"hyprctl setcursor ${hyprcursorThemeName} ${toString cursorSize}"
|
|
|
|
];
|
2024-08-05 16:23:53 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# For accurate stack trace
|
|
|
|
_file = ./cursors.nix;
|
|
|
|
}
|