From 264966def3dc6f1ec03519f6c53ebdddf68a04ce Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 8 Aug 2023 15:17:20 +0200 Subject: [PATCH] x window system: added dpi scaling section --- wiki/linux/x_window_system.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/wiki/linux/x_window_system.md b/wiki/linux/x_window_system.md index 7cacb59..fc6e903 100644 --- a/wiki/linux/x_window_system.md +++ b/wiki/linux/x_window_system.md @@ -49,6 +49,24 @@ Section "ServerFlags" EndSection ``` +#### Adjust DPI and UI Scale + +The dots per inch (DPI) is a measurement of spatial video dot density. +It has effect on the size of UI elements. +It is recommended to set the DPI inside the file `~/.config/xorg/xpcspec` with the following line. +The DPI number should be adjusted as needed. + +``` +Xft.dpi: 100 +``` + +Afterwards `~/.config/xorg/xpcspec` needs to be sourced in the `~/.xinitrc` file. +For this to work the following line needs to be added into the `~/.xinitrc` file . + +```sh +[ -f "$HOME/.config/xorg/xpcspec" ] && xrdb -merge "$HOME/.config/xorg/xpcspec" +``` + ### Mouse This section describes the handling of mouse by X.