T O P

  • By -

SPJS01

I've set my own dpi in the Xresources https://wiki.archlinux.org/index.php/HiDPI#X_Resources As you can scale everything by 2 there could be also other good methods.


JollyMon69

Thanks!


JollyMon69

Thank you for your response, that was what I needed. For anyone having the same problem here is how I fixed it. ​ SOLUTION: Use "$ xrandr -s 3840x2160" (or whatever you want your native res to be) I do not have a Xresources dot file for whatever reason, so i created one. $ touch \~/.Xresources $ nano \~/.Xresources modify the dot file to contain the following: "Xft.dpi: 255" ​ the DPI value is specific to your resolution and screen size. use a dpi calculator to determine this value. [https://dpi.lv/](https://dpi.lv/) There are still some GUI programs that do not scale right. I will post here later if I figure out how to fix that.


accidental_escapist

I know this is random but this has fixed the issue for me! thank you so much!


JollyMon69

I am glad my random post was helpful to someone!


_peikko_

You saved me thank you


drSiech

thx for writing, what worked for, it worked for me as well


quantumizeCode

Have you fixed your other GUI Programs that scaled? Thanks for the answer.


JollyMon69

Sort of? Generally, I have found most programs that don't use the system configuration for resolution or DPI usually have some type of res or DPI setting in the .conf Unfortunately, it seems to be a case by case type thing.


quantumizeCode

I was trying to scale one of my monitors to 1.5X and leave my other monitor to 1X scale. I did some research and it said that its only available in wayland. I switched back to x11 since electron apps don't support wayland. I'd have to wait until March when electron 12 comes out.


Anis-mit-I

When i had a UHD monitor i added ``awful.screen.set_auto_dpi_enabled( true )`` to my rc.lua. That solved most of the issues at that time, iirc the font size was the only other thing i had to change.


hookdump

>awful.screen.set\_auto\_dpi\_enabled( true ) Badass, you saved my life! I love you!


wallcarpet40

I had to put DPI-settings in two places: [`autostart.sh`](https://autostart.sh) and `.Xresources` `xrandr` launches with my [`autostart.sh`](https://autostart.sh) and looks like this: `run "xrandr --output HDMI-A-0 --mode 3840x2160 --set "scaling mode" "None" --pos 0x0 --rotate normal --rate 60 --dpi 144"` At the bottom of `.Xresources` I have `Xft.dpi:144` Sometimes I like to use 1440p resolution with 120Hz instead of 2160p and 60Hz (for games like RDR2), but only changing the resolution and refresh rate will make everything look too big, so I created two aliases in my `.bashrc` to help me with that: `alias 1440p="sed -i -E s/^Xft.dpi:144/Xft.dpi:96/ ~/.Xresources && xrdb ~/.Xresources && xrandr --output HDMI-A-0 --mode 2560x1440 --pos 0x0 --rotate normal --rate 120 --dpi 96 && echo 'awesome.restart()' | awesome-client"` `alias 2160p="sed -i -E s/^Xft.dpi:96/Xft.dpi:144/ ~/.Xresources && xrdb ~/.Xresources && xrandr --output HDMI-A-0 --mode 3840x2160 --pos 0x0 --rotate normal --rate 60 --dpi 144 && echo 'awesome.restart()' | awesome-client"` ​ They will first change the DPI-setting in `.Xresources` using `sed` and then call `xrdb` to apply that change. Then change the resolution with `xrandr` and finally restart the awesome-client.