I’ve been using my new 4K monitor on Bspwm awhile and got things almost sorted out (custom fonts in xresources), set Polybar bigger and stuff. Some elements are still very small, for example navigation buttons in PCManFM (same with Thunar) and Pamac, in Spotify everything is small. Could it be a GTK thing or something else like that?
The system is usable as is, but it would be nice to fix those little things also.
For simple window managers I think the best option might be setting the display size explicitly with an Xorg configuration file but I don’t have any HiDPI screens so I’m not completely sure.
I don’t really use many gui applications aside from a browser and steam (both of which have their own way of handling it), so below is purely copy/paste from the wiki’s hidpi page. Also worth noting the panel I have is 28" so the default scale of most applications after setting xft dpi is perfectly usable.
For gtk2 has no way to set scaling so you’ll have to make a custom theme.
For gtk3
export GDK_SCALE=2 # UI scale
export GDK_DPI_SCALE=0.5 # text scale
For Qt
export QT_AUTO_SCREEN_SCALE_FACTOR=1 # can cause issues with text size
Oomox the theme creator gives you the option to adapt the gtk2 assets of the theme for a hidpi screen. I personally haven’t used it as I found it a little unreliable @eesau it might be worth trying that for you though.
Regarding GDK_* scaling settings, as described it doesn’t do anything for gtk2 applications, install
pcmanfm-gtk3
to have it work or that particular file manager.
Likewise you can grab the Qt version and use the Qt scale setting described above and in the wiki page.
Sadly this is just the state of things, Xft settings will only get you as far as it’s adoption and not everything uses it, luckily there is enough application specific configuration to get it usable (at least in my case)
Sorry, my concentration levels are very low. Certainly not my strongest point these days.
Yes, Spotify is ok now. Thanks! I don’t know what’s wrong with PCManFM, but changing to gtk3 -version didn’t help. I’ll check things tomorrow if feel sharper.