Start an X session with a predefined dpi value

startx

  • The startx script is a front end to xinit that provides a nice user interface for running a single session of the X Window System.
    More information: <https://x.org/releases/X11R7.5/doc/man/man1/startx.1.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

startx -- -dpi {{value}}

click the source code to copy install startx on any operating system with command-not-found.com