Skip to content

Instantly share code, notes, and snippets.

@jaywilliams jaywilliams/
Last active Oct 4, 2018

What would you like to do?

See Also:

Setting DPI manually Note: While you can set any dpi you like and applications using Qt and GTK will scale accordingly, it's recommended to set it to 96, 120 (25% higher), 144 (50% higher), 168 (75% higher), 192 (100% higher) etc., to reduce scaling artifacts to GUI that use bitmaps. Reducing it below 96 dpi may not reduce size of graphical elements of GUI as typically the lowest dpi the icons are made for is 96.

# The bang exclamation is used for comments in the Xresources file
nano $HOME/.Xresources
!Xft.dpi: 96
Xft.dpi: 227
Xft.rgba: rgb
Xft.antialias: true Xft.hinting: false Xft.lcdfilter: lcddefault

nano $HOME/.xinitrc
# hidpi
export GDK_SCALE=2
export GDK_DPI_SCALE=0.95

xrandr --dpi 227

# Adjust keyboard typematic delay and rate
xset r rate 270 30

exec i3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.