~mil/sxmo-devel

sxmo-utils: HiDPI support v1 APPLIED

~tetrakist
This adds partial HiDPI support based on Chris Billington's gracious
contributions in #193. 

The a patch of sxmo-xdm-config is also needed
to fully implement Chris' approach.

Once these are applied, apps may
need their font settings adjusted to about half the previous point size,
again per Chris' recommendations.

tetrakist (1):
  Add HiDPI support: Xft Xresources, and xorg monitor dimesions

 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

-- 
2.30.1
#454559 .build.yml success
builds.sr.ht
sxmo-utils/patches/.build.yml: SUCCESS in 21s

[HiDPI support][0] from [~tetrakist][1]

[0]: https://lists.sr.ht/~mil/sxmo-devel/patches/20884
[1]: mailto:tetrakist@mutandum.com

✓ #454559 SUCCESS sxmo-utils/patches/.build.yml https://builds.sr.ht/~mil/job/454559
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mil/sxmo-devel/patches/20884/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH sxmo-utils 1/1] Add HiDPI support: Xft Xresources, and xorg monitor dimesions Export this patch

~tetrakist
From: tetrakist <tetrakist@mutandum.com>

---
 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 63b9553..3328362 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
-- 
2.30.1
builds.sr.ht
sxmo-utils/patches/.build.yml: SUCCESS in 21s

[HiDPI support][0] from [~tetrakist][1]

[0]: https://lists.sr.ht/~mil/sxmo-devel/patches/20884
[1]: mailto:tetrakist@mutandum.com

✓ #454559 SUCCESS sxmo-utils/patches/.build.yml https://builds.sr.ht/~mil/job/454559