prasanthrangan / hyprdots

// Aesthetic, dynamic and minimal dots for Arch hyprland

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cursor Theme

IgorD-lab opened this issue · comments

Discussed in #1399

Originally posted by IgorD-lab April 26, 2024
Some themes provide a custom cursor theme, but it seems applications aren't applying it consistently. Some programs show the themed cursor, while others default to the standard cursor. Additionally, the cursor theme seems to flicker between the two within the same application.

Is there a way to force all applications to use only themed cursor?

2024-04-26.18-35-01.mp4

Is there a way to force all applications to use only themed cursor?

For now, I suggest setting a consistent cursor in userprefs.conf. Soon if the cursor themes are ported to hyprcursor we should hopefully have consistent cursor.

exec = hyprctl setcursor Bibata-Modern-Ice 20
exec = gsettings set org.gnome.desktop.interface cursor-theme 'Bibata-Modern-Ice'
exec = gsettings set org.gnome.desktop.interface cursor-size 20

Digging deeper, the hyprctl setcursor command did not really fetch the cursor theme.

As you can see in this the cursor size is changed, even the theme is garbage, but the command still successful.
image

@IgorD-lab Hello! I recently added a command to patch the XCURSOR to be hyprland cursor compatible.

This is for gruvbox
Hyde --dev convert_cursor ~/.icons/Gruvbox-Retro/

Note that some errors needs to be handled manually.
Example gruvbox will have extra file that hyprcursorutil cannot convert, leading to errors. Deleting that file will make the convertion & patching succeed.
in my case I saw this error specifically for gruvbox theme

~/.icons/Gruvbox-Retro/cursors/thumbnail.png so just delete this, and you're good to rerun the above command.

Note that this will not totally remove the XCURSOR (gtk theming needs this old tech) so you'll still see the cursor would look blurred(hence the ugly flickering ) on top of gtk aps for example waybar.

image

image

image

"Small" problem. Cursor got got a bit bigger. As far as I can see big cursor appears where white cursor would appear earlier.

Note that this will not totally remove the XCURSOR (gtk theming needs this old tech) so you'll still see the cursor would look blurred(hence the ugly flickering ) on top of gtk aps for example waybar.

Plus the scaling too. The hyprcursor had an ability to fractional scale, whilst XCURSOR don't.

I wrote something on the CLI . You can use this to override the cursor size. This will set the XCURSOR and the HYPRCURSOR as a single command

Hyde cursor size 20 just modify the size

Note that the hyprcursor conversion will follow the largest possible size of the XCURSOR. ( will tell you this in advance, incase )

Tried it out and it works pretty well, thanks for help.

Add it to your userprefs.conf to persist