From 890b9bc43984c765aa74c943481816964eba6d60 Mon Sep 17 00:00:00 2001 From: tetrakist Date: Tue, 9 Mar 2021 14:31:24 -0800 Subject: [PATCH] Add HiDPI support: Xft Xresources, and xorg monitor dimesions Signed-off-by: Maarten van Gompel --- Makefile | 2 ++ configs/appcfg/xresources_xft.xr | 13 +++++++++++++ configs/xorg/90-monitor.conf | 9 +++++++++ 3 files changed, 24 insertions(+) create mode 100644 configs/appcfg/xresources_xft.xr create mode 100644 configs/xorg/90-monitor.conf diff --git a/Makefile b/Makefile index de7523b..23dfce5 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,8 @@ install: $(PROGRAMS) install -D -m 0644 -t $(DESTDIR)$(PREFIX)/share/applications/ configs/xdg/mimeapps.list + install -D -m 0644 -T configs/xorg/monitor.conf $(DESTDIR)$(PREFIX)/share/X11/xorg.conf.d/90-monitor.conf + mkdir -p $(DESTDIR)/etc/NetworkManager/dispatcher.d install -D -m 0755 -T configs/networkmanager/updatestatusbar.sh $(DESTDIR)/etc/NetworkManager/dispatcher.d/10-updatestatusbar.sh install -D -m 0755 -T configs/networkmanager/resetscaninterval.sh $(DESTDIR)/etc/NetworkManager/dispatcher.d/20-resetscaninterval.sh diff --git a/configs/appcfg/xresources_xft.xr b/configs/appcfg/xresources_xft.xr new file mode 100644 index 0000000..ac1af6b --- /dev/null +++ b/configs/appcfg/xresources_xft.xr @@ -0,0 +1,13 @@ + +! Xresource settings for HiDPI font support with Xft + +Xft.dpi: 192 + +Xft.antialias: true + +Xft.rgba: rgb + +Xft.hinting: true + +Xft.hintstyle: hintslight + diff --git a/configs/xorg/90-monitor.conf b/configs/xorg/90-monitor.conf new file mode 100644 index 0000000..96ea85a --- /dev/null +++ b/configs/xorg/90-monitor.conf @@ -0,0 +1,9 @@ + +Section "Monitor" + + Identifier "DSI-1" + + # Technically should be: Display 190 381, but this looks better(?) + DisplaySize 95 190 + +EndSection