Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the resolution to fit 1920x1080, font scalling and projector setup #399

Closed
J0aoSiqueira opened this issue Jan 24, 2025 · 5 comments

Comments

@J0aoSiqueira
Copy link

Dear developer, I'm using a laptop with a dual setup between windows and Arch with your dotfiles and I loved your configuration, but I felt that the image and video quality seems to be lower than 1080p, which my laptop is capable of. Therefore, I'd like to know how can I setup the dotfiles to fit 1920x1080, and to put the font scalling to 125% (that is standard for windows). Also, I'm used to project the laptop in university for presentation, so I'd like to know how to setup a dual monitor with a project in ocasional cases.

@gh0stzk
Copy link
Owner

gh0stzk commented Jan 24, 2025

Hello for the dpi scaling:
open a terminal a write this:
In the case you dont have a .Xresources file in your home.
echo "Xft.dpi: 120" >> .Xresources
now type:
xrdb -merge .Xresources

You should have installed the package xorg-xrdb, if not install it.
Now if you open an app, the scalling is visible.

that works but if you want fine grained config read this #392

So now everything must be bigger except the polybar, to change that, in the file config.ini inside all rices ~/.config/bspwm/rices/RICENAME/config.ini search for the dpi = 96 option, is commented in all cases, uncomment and chenge it for dpi = 120 save it and soft reload with ctrl + super + alt + s now your bar must look according to setup.

So if you wanna change the font size if still doesnt looks fine for you, install the lxappearance package, from there you can change some aspects of the gtk, including the font size and type etc..

About dual monitor, 2 days ago i pushed an update to automatically detects and configure your monitors, 7e07cba if you install my dots after january 22, you should have no problem connecting your lap to external monitors, but after you connect an external monitor, you should restart bspwm with super + alt + r

@J0aoSiqueira
Copy link
Author

J0aoSiqueira commented Jan 27, 2025

So, I did the xrgb and the rices suggestion, but some apps got very huge, like web browsers (chrome and brave), spotify, discord, etc. I know that my dpi for my configuration is 141 (1920x1080 15.6"), but my apps it's kind of like zoomed it. How can I fix that?

Update: I actually fixed it by removing the GDK_SCALE and GDK_DPI_SCALE from the bspwmrc, but I'd like to know if is there a conflict between the xrdb and the dpi option.

@Elixir-Software-Developer
Copy link

@gh0stzk gh0stzk reopened this Jan 27, 2025
@gh0stzk
Copy link
Owner

gh0stzk commented Jan 27, 2025

So, I did the xrgb and the rices suggestion, but some apps got very huge, like web browsers (chrome and brave), spotify, discord, etc. I know that my dpi for my configuration is 141 (1920x1080 15.6"), but my apps it's kind of like zoomed it. How can I fix that?

Update: I actually fixed it by removing the GDK_SCALE and GDK_DPI_SCALE from the bspwmrc, but I'd like to know if is there a conflict between the xrdb and the dpi option.

I think yes, the xrdb option scale your dpi or resolution, and if then you apply the gdk_scale or dpi_scale options, will scale at double.
What i do is the xrdb method and in bspwmrc i put at the end xrandr --dpi yourdpi, the same in xresources file.

@gh0stzk
Copy link
Owner

gh0stzk commented Jan 27, 2025

apparently, we need the xrandr --dpi somedpi At first glance, with the xrdb method "everything" is solved, but I realized that, for example, the rofi menu to select the theme is displayed incorrectly, and if you apply the xrandr --dpi command, it is solved, which is why both are necessary. methods.

@gh0stzk gh0stzk closed this as completed Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants