Track VSCode settings
[khome.git] / home / .xlaunch.d / 0-dpi_scale
1 #! /bin/bash
2
3 set -e
4
5 launch_then_killall() {
6 local -r program="$1"
7 local -r timeout="${2:-1}" # 2nd arg or default to 1.
8
9 "$program"&
10 sleep "$timeout"
11 killall "$program"
12 }
13
14 main() {
15 # IDK what magic is at work here, but launching mate-appearance-properties
16 # does the job better than setting scaling variables.
17 # TODO Get to the bottom of how it works and replicate directly.
18 # TODO Try this: https://wiki.archlinux.org/title/HiDPI#Xorg
19 launch_then_killall 'mate-appearance-properties' 1
20
21 # GDK 3 (GTK 3)
22 # https://wiki.archlinux.org/index.php/HiDPI#GDK_3_(GTK_3)
23 #export GDK_SCALE=2
24
25 # QT
26 # https://wiki.archlinux.org/index.php/HiDPI#Qt_5
27 # https://doc.qt.io/qt-5/highdpi.html
28 # https://blog.qt.io/blog/2016/01/26/high-dpi-support-in-qt-5-6/
29 #export QT_SCALE_FACTOR=2 # Causes qutebrowser UI fonts to have large gaps.
30 #export QT_FONT_DPI=192 # Scales qutebrowser UI fonts as expected.
31 }
32
33 main
This page took 0.075995 seconds and 4 git commands to generate.