Commit | Line | Data |
---|---|---|
6db09847 SK |
1 | #! /bin/bash |
2 | ||
3 | set -e | |
4 | ||
aa281a4d SK |
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 | |
6db09847 | 34 | |
aa281a4d | 35 | /usr/libexec/mate-settings-daemon --replace --debug |