You are not logged in.

#1 2023-01-30 14:28:16

hawkis
Member
Registered: 2023-01-04
Posts: 13

Force running applications to adjust to Xft.dpi

I have a laptop with a 4k display and set the following in ~/.Xresources:

Xft.dpi: 96

When I connect external screens, I re-adjust it and set it to:

Xft.dpi: 192

After changing the DPI I reload the resource file using:

xrdb ~/.Xresources

Then reloading i3wm refreshes the DPI for the i3statusbar and desktop background. However, running applications still use the old DPI. I have to manually quit and re-launch every application for it to adjust to the new DPI. Is there some way to force the applications to re-read the xorg resource file to adjust DPI on the fly?

Alternatively, is there a way to quit and re-open all applications (preserve layout and workspaces) in i3wm or xorg?

Last edited by hawkis (2023-01-30 14:35:28)

Offline

Board footer

Powered by FluxBB