feat(hypr): use hyprcursor for cursor theme

This commit is contained in:
matt1432 2024-07-23 16:04:18 -04:00
parent 3e1df66156
commit b307e7df13
3 changed files with 52 additions and 3 deletions
legacyPackages/dracula

View file

@ -10,6 +10,11 @@ pkgs.lib.makeScope pkgs.newScope (drac: {
gtk = import ./gtk.nix {inherit (inputs) gtk-theme-src pkgs;};
hyprcursor = drac.callPackage ./hyprcursor.nix {
inherit (inputs) gtk-theme-src mkVersion;
inherit pkgs;
};
plymouth = drac.callPackage ./plymouth.nix {
inherit (inputs) dracula-plymouth-src mkVersion;
};

View file

@ -0,0 +1,29 @@
{
gtk-theme-src,
mkVersion,
pkgs,
stdenv,
...
}:
stdenv.mkDerivation {
pname = "dracula-hyprcursor";
version = mkVersion gtk-theme-src;
src = "${gtk-theme-src}/kde/cursors";
buildInputs = with pkgs; [hyprcursor xcur2png];
installPhase = ''
hyprcursor-util --extract ./Dracula-cursors
hyprcursor-util --create ./extracted_Dracula-cursors
cat <<EOF > ./extracted_Dracula-cursors/manifest.hl
name = Dracula-cursors
description = Automatically extracted with hyprcursor-util
version = 0.1
cursors_directory = hyprcursors
EOF
mv 'theme_Extracted Theme' $out
'';
}