Created
August 17, 2021 19:31
-
-
Save adkinss/709f9458ea2f23ee2bf29391c8d713e5 to your computer and use it in GitHub Desktop.
Terminator shell script on WSL that launches the real terminator with better support for 4k monitors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# For font size and blurry issues on 4k monitors, read the following article: | |
# https://superuser.com/questions/1370361/blurry-fonts-on-using-windows-default-scaling-with-wsl-gui-applications-hidpi | |
# Place this script in $HOME/bin. | |
# Update your PATH to include $HOME/bin before /usr/bin. | |
# Make sure your X Server has been started before running this script. | |
export DISPLAY=:0 | |
# Recommended settings are GDK_SCALE=0.5 and GDK_DPI_SCALE=2 | |
export GDK_SCALE=1 | |
export GDK_DPI_SCALE=1.5 | |
cd $HOME | |
/usr/bin/terminator --geometry 3614x1960+3973-61 $* 2>/dev/null & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment