Mouse cursor size and theme

Technical issues/questions of an intermediate or advanced nature.
Post Reply
rych
Shogun
Shogun
Posts: 287
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0rc3 x64 OpenBox
Location: NZ
Contact:

Mouse cursor size and theme

Post#1 by rych » 21 Jun 2022, 09:38

I'm not too happy how my cursor scales up when I write in .Xresources

Code: Select all

Xft.dpi: 130
Xcursor.size: 32
Firstly, indeed it seems I can only set Xcursor.size to a multiple of 16: 16, 32, 48, 64. I wish I could set 24, but it doesn't work.

32 is a bit too large and more importantly, it's harder to point exactly with it

So, I'm thinking of installing a different theme, maybe the one that gives me larger cursors without having to change Xcursor.size from its default value (which I assume is 16)

If you use a cursor theme you would recommend, could you share it and teach me how to install? Thanks! (Otherwise would have to study and search myself starting from https://wiki.archlinux.org/title/Cursor_themes I guess)

(Perhaps DMZ (Vanilla-DMZ) updated for HiDPI with more sizes available (Xcursor.size: 24 etc.) like https://github.com/ganwell/dmz-cursors or Adwaita cursors for HiDPI displays https://github.com/manu-mannattil/adwaita-cursors)

User avatar
M. Eerie
Shogun
Shogun
Posts: 460
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce x64

Mouse cursor size and theme

Post#2 by M. Eerie » 23 Jun 2022, 14:54

Hi rych,

Try this one.

There are instructions on how to setup the cursor theme. Essentially, you need to copy the unpacked folder to your /home/<user>/.icons folder or to your /usr/share/icons if you want to install for all users.

Then, you can apply the theme from your settings

Be sure not to nest folders while unpacking. That is, once installed your theme path should look like this:

/usr/share/icons/Bibata/cursors

or

/home/<user>/.icons/Bibata/cursors

Image
> Does not compute_ 🖖

rych
Shogun
Shogun
Posts: 287
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0rc3 x64 OpenBox
Location: NZ
Contact:

Mouse cursor size and theme

Post#3 by rych » 25 Jun 2022, 09:34

M. Eerie, Thank you. This cursor theme looks good and seems to be supporting 24 size. (Or, possibly, my system still ignores the size setting 24 and falls back to 16 but the new cursors are simply larger at 16?!)

Also, apart from setting the new cursor theme through GUI, I also had to sometimes manually edit 4 files (redundantly? .Xresources should be enough), otherwise some apps didn't pick up the change even after reboot (?)

Code: Select all

cat ~/.Xresources
Xft.dpi: 120
Xcursor.size: 24
#Xcursor.size: 32
Xcursor.theme: Bibata-Original-Classic

Code: Select all

cat ~/.icons/default/index.theme
# This file is written by LXAppearance. Do not edit.
[Icon Theme]
Name=Default
Comment=Default Cursor Theme
Inherits=Bibata-Original-Classic

Code: Select all

cat ~/.gtkrc-2.0
...
gtk-cursor-theme-name="Bibata-Original-Classic"
gtk-cursor-theme-size=24
...

Code: Select all

cat ~/.config/gtk-3.0/settings.ini 
...
gtk-cursor-theme-name=Bibata-Original-Classic
gtk-cursor-theme-size=24
...
Now the cursor(s) are uniform across whole system with a satisfactory size

User avatar
M. Eerie
Shogun
Shogun
Posts: 460
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce x64

Mouse cursor size and theme

Post#4 by M. Eerie » 25 Jun 2022, 13:47

This is due to the need to maintain backward compatibility with previous versions of GTK.

For gtk-3.0 (now deprecated too...) the GUI settings app writes to the ~/.config/gtk-3.0/settings.ini
(no need to change the file by hand).

However, for GTK2 apps, you still need to modify the ~/.gtkrc-2.0 file as you pointed out.
You can install LXappearance settings manager to do that, but I don't recommend that method because it messes things up and nowadays there's only a few GTK2 apps well maintained.

Your response completes the lack of information I should have provided. Although I did not know which DE or distro you were using.

Thanks.
> Does not compute_ 🖖

Post Reply