From 4f3a226c8bc957e83f68bbdc6cb4410b5ac80aeb Mon Sep 17 00:00:00 2001 From: scbj Date: Thu, 19 Feb 2026 11:01:47 +0100 Subject: [PATCH] added section on how to scale display on x11 --- x11.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 x11.md diff --git a/x11.md b/x11.md new file mode 100644 index 0000000..5311667 --- /dev/null +++ b/x11.md @@ -0,0 +1,25 @@ +# X11 + + +- [X11](#x11) + + + +## Scaling of hdpi displays (high dots per inch) + +If working on setups with varying resolutions, configuring e.g. the font +size of a terminal emulator might be difficult. +X11 allows to scale the (entire) display via X resources. +Edit/create the file `~/.Xresources` and add the following line: + +```sh +Xft.dpi: + +# example: +Xft.dpi: 118 +``` + +To apply the changes execute `xrdb -merge ~/.Xresources`. + +To make the changes permanent add `xrdb -merge ~/.Xresources` to your +`xinitrc` file, if not present already.