[openbox] high DPI screens with openbox

TT turkuting at gmail.com
Wed Feb 10 13:22:36 EST 2016


On 02/10/2016 08:16 PM, Louis-David Mitterrand wrote:
> On Wed, Feb 10, 2016 at 06:14:54AM +0200, TT wrote:
>> On 02/09/2016 01:12 PM, Jim Rees wrote:
>>> Louis-David Mitterrand wrote:
>>>
>>>    I have a new Dell XPS 15" laptop with 3840x2160 resolution.
>>>    In openbox is there a way/tool to scale up the UI like in gnome so the
>>>    interface appears with a "normal" size while keeping native resolution?
>>>
>>> The font sizes are all in points, so if you have correctly configured your X
>>> server and fontconfig to know what dpi the screen is, the text should appear
>>> in "normal" size. At least that's the theory. I'm not sure how the icons
>>> work.
>>> _______________________________________________
>>> openbox mailing list
>>> openbox at icculus.org
>>> http://icculus.org/mailman/listinfo/openbox
>> in other words, if you set dpi accordingly in your X server's settings, it
>> should work.
>> something like this:
>>
>> #!/bin/bash
>>
>> XFT_SETTINGS="
>> Xft.antialias:  1
>> Xft.autohint:   0
>> Xft.dpi:        96 <== you need a different value here.
>> Xft.hinting:    1
>> Xft.hintstyle:  hintfull
>> Xft.lcdfilter:  lcddefault
>> Xft.rgba:       rgb
>> "
>>
>> echo "$XFT_SETTINGS" | xrdb -merge > /dev/null 2>&1
>>
>> save it, make executable and add to your autostart.
> My gods it works, thanks!
good!
now if your system parses ~/.Xdefaults or ~/.Xresources, it would be 
more elegant to define the value there.

> _______________________________________________
> openbox mailing list
> openbox at icculus.org
> http://icculus.org/mailman/listinfo/openbox

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20160210/a93207ca/attachment.html>


More information about the openbox mailing list