Дана 26/09/03 08:43AM, 山卡洛 написа:
> Please read my original question.
> Of course I can reliably set the cursor "font" and size reliably.
> With one exception: inside the Firefox and Chrome windows.
> 
> This means: as long as the cursor works in the terminal emulator, on the 
> background etc.,
> there is no need to follow your advice.

There is need to follow the given advice, if you intend to make cursors
work as intended in those other programs you mentioned. Otherwise, no,
but why ask for help then?

Please read my answer more carefully (and keep replies on the list):

> On 26-09-02.21:58, Страхиња Радић wrote:
> > Since Chrome/Chromium/Ungoogled Chromium and Firefox are using Gtk3, 
> > you also need to set up Gtk 3 for HiDPI.
[...]
> > $ cat ~/.config/gtk-3.0/settings.ini
> > [Settings]
> > ...
> > gtk-xft-dpi = 142
> > 
> > (Similar for ~/.config/gtk-4.0/settings.ini and ~/.gtkrc-2.0 - minus 
> > the '[Settings]' part for the latter, BTW.)
> > 
> > And it works in all programs, including the Ungoogled Chromium which is 
> > my default browser.

So, I have:

$ grep -n dpi ~/.gtkrc-2.0 ~/.config/gtk*/settings.ini
/home/user/.gtkrc-2.0:10:gtk-xft-dpi = 142
/home/user/.config/gtk-3.0/settings.ini:13:gtk-xft-dpi = 142
/home/user/.config/gtk-4.0/settings.ini:11:gtk-xft-dpi = 142

You can also try adding the keys:

gtk-cursor-theme-name=yourthemename
gtk-cursor-theme-size=36

to those files, or changing the GNOME settings with:

$ gsettings set org.gnome.desktop.interface cursor-theme yourthemename
$ gsettings set org.gnome.desktop.interface cursor-size 36

Arch wiki[1] has a number of other settings to check for specific
environments, which might override the previously mentioned settings,
keeping them from being applied. Good luck!

Again: I have a HiDPI system running OpenBSD 7.9-release, without
applying any hacky solutions like deleting X cursor fonts, with set
cursor theme and size in all programs.

[1]: https://wiki.archlinux.org/title/Cursor_themes

Reply via email to