I. Disclaimer
- This script is a copied of
https://gist.github.com/tdcosta100/7def60bccc8ae32cf9cacb41064b1c0fbut "converted" for Kali inside WSL - Set DPI inside WSL doesn't work (command
xfconf-query -c xsettings -p /Gdk/WindowScalingFactor -n -t int -s 2works but it creates a glitch that windows manager won't run). To increate DPI, user can change WSL settings (however, the quality of text in WSL will be really bad) (checkhttps://github.com/microsoft/wslg/issues/590)
Save this file C:/users/username/.wslgconfig, then wsl --shutdown. File's contents:
[system-distro-env]
WESTON_RDP_HI_DPI_SCALING=true
WESTON_RDP_FRACTIONAL_HI_DPI_SCALING=true