stylix icon indicating copy to clipboard operation
stylix copied to clipboard

cursor: does not respect xresources target on home-manager

Open connor-grady opened this issue 4 months ago • 2 comments

I assert that this feature request is relevant for Stylix

Description

When using the stylix.cursor option with home-manger, it sets home.pointerCursor.x11.enable = true, which tramples over the stylix.targets.xresources option if that is set to false. I suspect it may also do the same thing for gtk, but I'm not sure.

Notify maintainers

No response

connor-grady avatar Aug 06 '25 07:08 connor-grady

When using the stylix.cursor option with home-manger, it sets home.pointerCursor.x11.enable = true

Yes:

https://github.com/nix-community/stylix/blob/8410296a30e62e06305020cb74d3247cfa45d9cc/stylix/hm/cursor.nix#L10-L26

which tramples over the stylix.targets.xresources option if that is set to false.

What do you mean by "tramples over"? Do you get a build error or incorrect run time behavior? Which of these declarations could be related to the problem:

  • https://github.com/nix-community/stylix/blob/8410296a30e62e06305020cb74d3247cfa45d9cc/modules/xresources/hm.nix#L6-L43

trueNAHO avatar Aug 07 '25 20:08 trueNAHO

At the moment, cursor theming is not part of any target and is globally either on or off. This doesn't match how we handle everything else. Ideally the existing cursor.nix would be broken down into configElements on each of the relevant targets

danth avatar Aug 17 '25 14:08 danth