You are not logged in.

#1 2025-02-05 05:10:29

nurali
Member
Registered: 2022-11-14
Posts: 44

GTK application scaling problem on x11

Hello all:
My desktop environment is DWM with a 27 inch 3840px*2160px screen. I wanted a 2 times scaled environment, so I did these:
I have ~/.Xresources:

Xft.dpi: 192
Xcursor.theme: Bibata-Modern-Classic
Xcursor.size: 32
Xft.autohint: 1
Xft.lcdfilter:  lcddefault
Xft.hintstyle:  hintslight
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb

Having /etc/environment

GDK_SCALE=2
GDK_DPI_SCALE=0.5

Having gsettings

ali@gentoo ~ $ gsettings get org.gnome.desktop.interface scaling-factor
uint32 2

Having ~/.config/gtk-3{,4}.0/settings.ini

gtk-xft-dpi=196608

I did those almost one year ago, so I don't much remember (Not also a expert of these) why I did many of them
Now I got a problem that some apps like ungoogled-chromium, pavucontrol,ghostty... are scaling not normally, they are way too large (launch with commands in terminals or with DMENU), it is like 4 times scaled somehow
I use chromium-browser-bin --force-device-scale-factor=2 now and chromium launch with normal scaling
Did I do something wrong?Please somebody teach me a lesson.
Thank you

Offline

Board footer

Powered by FluxBB