Skip to content

Instantly share code, notes, and snippets.

Last active October 4, 2018 17:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jaywilliams/1bdab5056346060ad7e1e1f213c63a08 to your computer and use it in GitHub Desktop.

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