From 252b3cf634069b566396da8bcbab1d53293da8e0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 24 Jul 2019 00:24:31 +0200 Subject: [PATCH] improved DPI scaling for several applications --- modules/display_ws5inch.mk | 6 ++++-- modules/xfce/etc/xdg/xfce4/terminal/terminalrc | 1 + .../xfce/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml | 1 + .../etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml | 4 ++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/display_ws5inch.mk b/modules/display_ws5inch.mk index c7698c7..7b3e941 100644 --- a/modules/display_ws5inch.mk +++ b/modules/display_ws5inch.mk @@ -44,5 +44,7 @@ _display_ws5inch: ${CFGROOT} _copy _mount mkdir -p "$${CFGROOT}/etc/X11/Xresources/" printf 'Xft.dpi: 180\n' >"$${CFGROOT}/etc/X11/Xresources/dpi_resolution" # Workaround for applications that do not handle DPI scaling correctly - -sed -i 's;^Exec=chromium;Exec=env GDK_DPI_SCALE=.5 chromium;' $${CFGROOT}/usr/share/applications/chromium*.desktop - -sed -i 's;^Exec=firefox;Exec=env GDK_DPI_SCALE=.5 firefox;' $${CFGROOT}/usr/share/applications/firefox*.desktop + -sed -i 's;^Exec=;Exec=env GDK_DPI_SCALE=.5 ;' \ + $${CFGROOT}/usr/share/applications/chromium*.desktop \ + $${CFGROOT}/usr/share/applications/firefox*.desktop \ + $${CFGROOT}/usr/share/applications/exo-web-browser.desktop diff --git a/modules/xfce/etc/xdg/xfce4/terminal/terminalrc b/modules/xfce/etc/xdg/xfce4/terminal/terminalrc index a2256b7..cf74883 100644 --- a/modules/xfce/etc/xdg/xfce4/terminal/terminalrc +++ b/modules/xfce/etc/xdg/xfce4/terminal/terminalrc @@ -1,3 +1,4 @@ [Configuration] BackgroundMode=TERMINAL_BACKGROUND_TRANSPARENT BackgroundDarkness=0.850000 +FontName=Monospace 8 diff --git a/modules/xfce/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml b/modules/xfce/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml index e1206fd..86720cf 100644 --- a/modules/xfce/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml +++ b/modules/xfce/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml @@ -3,5 +3,6 @@ + diff --git a/modules/xfce/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml b/modules/xfce/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml index 5b74cf3..bd43732 100644 --- a/modules/xfce/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml +++ b/modules/xfce/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml @@ -18,7 +18,7 @@ - + @@ -28,7 +28,7 @@ - + -- 2.39.2