How to fix cursor size?


For the most part, I’ve managed to get a pretty solid DPI scaling setup for my Retina display (dotfiles).

What I can’t figure out, however, is how to make my cursor bigger.
It’s tiny, half the size it should be.

I’ve tried setting XCURSOR_SIZE, to no avail.


I use the following line in my config to set the cursor size to 128:

services.xserver.displayManager.sessionCommands = ''
${pkgs.xlibs.xsetroot}/bin/xsetroot -cursor_name ${pkgs.vanilla-dmz}/share/icons/Vanilla-DMZ/cursors/left_ptr 128 &disown

but I do not know whether this is best practice (it is obviously slightly hacky). It also has problems that the size is smaller when hovering above some windows (e.g. urxvt).


@maxhbr that fixes the cursor on the desktop, but the cursor is still tiny after hovering over my terminal (kitty) or web browser (firefox) :-/