Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCURSOR_THEME does not regonize cursor from theme name given by Nixos Home manager in ~/.icons and ~/.local/share/icons #34

Open
garare992 opened this issue Aug 5, 2024 · 5 comments

Comments

@garare992
Copy link

garare992 commented Aug 5, 2024

Nixos home-manager uses wrong cursor name in ~/.icons and ~/.local/share/icons.

this is what i have in my home.nix:

home.pointerCursor = {
name = "catppuccin-cursors-latteRed";
package = pkgs.catppuccin-cursors.latteRed;
};

To get the real cursor name that XCURSOR_THEME will recognize, I have to do this:

>ls -l
catppuccin-cursors-latteRed -> /nix/store/a958i8b43fmk1sgn6d91by1ib20gx2i6-home-manager-files/.local/share/icons/catppuccin-cursors-latteRed
>cd  /nix/store/a958i8b43fmk1sgn6d91by1ib20gx2i6-home-manager-files/.local/share/icons/
>ls -l
catppuccin-cursors-latteRed -> /nix/store/z19x7n2qqh9z9r08i8aabpi15vnfm6im-catppuccin-cursors-0.3.0-latteRed/share/icons/catppuccin-cursors-latteRed
>cd /nix/store/z19x7n2qqh9z9r08i8aabpi15vnfm6im-catppuccin-cursors-0.3.0-latteRed/share/icons/
>ls
catppuccin-latte-red-cursors
> cp -r catppuccin-latte-red-cursors ~/.local/share/icons

then change XCURSOR_THEME to catppuccin-latte-red-cursors

@isabelroses
Copy link
Member

isabelroses commented Aug 5, 2024

Your name should be this instead catppuccin-cursors-latte-red and it should just work (seeing as theres not issues from catppuccin/nix).

home.pointerCursor = {
  name = "catppuccin-cursors-latte-red";
  package = pkgs.catppuccin-cursors.latteRed;
};

@garare992
Copy link
Author

Your name should be this instead catppuccin-cursors-latte-red and it should just work (seeing as theres not issues from catppuccin/nix).

home.pointerCursor = {
  name = "catppuccin-cursors-latte-red";
  package = pkgs.catppuccin-cursors.latteRed;
};

That doesn't work

@isabelroses
Copy link
Member

Sorry I miss read it, it's supposed to be catppuccin-latte-red-cursors

@garare992
Copy link
Author

Sorry I miss read it, it's supposed to be catppuccin-latte-red-cursors

But that means you first have to install Catppuccin with a temporary name, follow all the symlinks to find the real name, and then return to the Home Manager configuration to update the temporary name to the correct one. Isn't the purpose of the name variable to avoid this hassle and allow you to specify the folder's name from the start?

@isabelroses
Copy link
Member

Sorry I miss read it, it's supposed to be catppuccin-latte-red-cursors

But that means you first have to install Catppuccin with a temporary name, follow all the symlinks to find the real name, and then return to the Home Manager configuration to update the temporary name to the correct one. Isn't the purpose of the name variable to avoid this hassle and allow you to specify the folder's name from the start?

Yes that is the point, the issue was that i misread from here https://github.com/catppuccin/nix/blob/66f4ea170093b62f319f41cebd2337a51b225c5a/modules/home-manager/cursor.nix#L32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants