fix: hidpi missing export

This commit is contained in:
Daniel Langbein 2021-05-13 21:26:12 +02:00
parent 954339b73d
commit 2aea163638
6 changed files with 9 additions and 7 deletions

View File

@ -7,7 +7,7 @@ cd "${LOCAL_PKG_DIR}" || exit
match="0"
for PKG in ./*.pkg.tar.{xz,zst}; do
[ -f "$PKG" ] || { echo "No match for pattern $PKG"; continue; }
[ -f "$PKG" ] || { echo "No match for pattern $PKG"; continue; } # alternatively: shopt -s nullglob
# if we are here, there is at least one match!
match="1"

View File

@ -2,7 +2,7 @@
_pkgname=theme
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.2
pkgver=0.0.3
pkgrel=1
pkgdesc="Uniform look for QT and GTK applications"
arch=('any')
@ -16,7 +16,6 @@ sha256sums=('SKIP')
package() {
cd "${_reponame}/pkg/${pkgname}"
# Prefix 98 so that it is run before 99_hidpi.sh
install -Dm0644 98_qt5_theme.sh "$pkgdir"/etc/profile.d/98_qt5_theme.sh
install -Dm0644 99_qt5_theme.sh "$pkgdir"/etc/profile.d/99_qt5_theme.sh
install -Dm0644 Trolltech.conf "$pkgdir"/etc/xdg/Trolltech.conf
}

View File

@ -17,7 +17,7 @@ aur sync -c adwaita-qt
Enable via env variable.
```shell
echo 'export QT_STYLE_OVERRIDE=adwaita' | sudo tee -a /etc/profile.d/98_qt5_theme.sh
echo 'export QT_STYLE_OVERRIDE=adwaita' | sudo tee -a /etc/profile.d/99_qt5_theme.sh
```
## qt4

View File

@ -1,2 +1,2 @@
QT_AUTO_SCREEN_SCALE_FACTOR=1
QT_FONT_DPI=144
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_FONT_DPI=144

View File

@ -0,0 +1,3 @@
WindowScalingFactor
TODO: 99_hidpi.sh with an QT application (e.g. NC client)