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

[Help wanted] How to scale the apps? #30

Closed
PhyX-Meow opened this issue Apr 22, 2021 · 5 comments
Closed

[Help wanted] How to scale the apps? #30

PhyX-Meow opened this issue Apr 22, 2021 · 5 comments

Comments

@PhyX-Meow
Copy link

PhyX-Meow commented Apr 22, 2021

I have an 2560x1440 screen, and have these in my .zshrc

export QT_SCALE_FACTOR=2
export GDK_SCALE=2

But some apps still look small. Eg. mousepad. How can I make them scale?

My distro is Manjaro, with xfce4 installed.

@PhyX-Meow
Copy link
Author

By the way, is there any way to disable WSLg temporarily and so I can use back to x410.

@spronovo
Copy link
Collaborator

@PhyX-Meow you can use the following entry in your .wslconfig file (e.g. c:\Users\spronovo.wslconfig) to disable guiApplications entirely.

[wsl2]
guiApplications=false

You'll then need to restart WSL for the changes to take effect (wsl --shutdown from an elevated command prompt or powershell on Windows).

Did you try using scaling on the Windows side (settings -> System -> Display)... this will scale your Linux application as well, although at the moment WSLg only support integer scale (100%, 200%, fractional scaling like 150% is currently disabled by default.)

image

@PhyX-Meow
Copy link
Author

Thanks, I set 150% in windows scale, so that's why my wsl app looks still small.
I would disable it at least for now, 200% is too big for my screen.

@hideyukn88
Copy link
Member

@PhyX-Meow , if you want to try out fractional scaling (such as 150%), please refer #23. And in case you don't want WSLg to auto scale, but prefer to let framework (such as Qt or GDK) to scale, then you can set WESTON_RDP_DISABLE_HI_DPI_SCALING=true in .wslgconfig.

@PhyX-Meow
Copy link
Author

@hideyukn88 Thanks very much for your advise, I will try it.

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