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.

1 Like

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) :-/

I’m looking to do the same thing. Did you ever find a solution?

Looking for the solution for the exact same question. Is @maxhbr command the way to go?

Check my solution
hm: nixos-flk/default.nix at 2c49a5ebd9d03673594760d1108f7963a28341fe · GTrunSec/nixos-flk · GitHub
xdg: nixos-flk/xdg.nix at 2c49a5ebd9d03673594760d1108f7963a28341fe · GTrunSec/nixos-flk · GitHub

1 Like

Anyone found a solution on this?

I already setup .xsession.pointerCursor`