5 LOG_FILE
=~
/var
/log
/xlaunch.log
11 printf "${fmt}\n" $@ | twrap.sh
>> "$LOG_FILE"
14 launch_then_killall
() {
16 local -r timeout
="${2:-1}" # 2nd arg or default to 1.
24 # IDK what magic is at work here, but launching mate-appearance-properties
25 # does the job better than setting scaling variables.
26 # TODO Get to the bottom of how it works and replicate directly.
27 # TODO Try this: https://wiki.archlinux.org/title/HiDPI#Xorg
28 launch_then_killall
'mate-appearance-properties' 1
31 # https://wiki.archlinux.org/index.php/HiDPI#GDK_3_(GTK_3)
35 # https://wiki.archlinux.org/index.php/HiDPI#Qt_5
36 # https://doc.qt.io/qt-5/highdpi.html
37 # https://blog.qt.io/blog/2016/01/26/high-dpi-support-in-qt-5-6/
38 #export QT_SCALE_FACTOR=2 # Causes qutebrowser UI fonts to have large gaps.
39 #export QT_FONT_DPI=192 # Scales qutebrowser UI fonts as expected.
43 local -r scripts_dir
=~
/.xlaunch.d
45 # XXX dunst lazily started by dbus?
46 dunst
--startup_notification -conf ~
/.config
/dunst
/dunstrc
&
52 log
'[error] Looking for scripts in directory: "%s"' "$scripts_dir"
53 for script in "$scripts_dir"/*; do
54 log
'[debug] Launching script: "%s"' "$script"
59 launch_specialized
() {
60 local -r scripts_dir
=~
/.xlaunch.d.
"$(hostname)"
62 log
'[error] Looking for scripts in directory: "%s"' "$scripts_dir"
63 if test -d "$scripts_dir"
65 for script in "$scripts_dir"/*; do
66 log
'[debug] Launching script: "%s"' "$script"
70 log
'[error] scripts_dir not found: %s' "$scripts_dir"
75 log
'[info] Starting X11'
80 log
'[info] Launching dwm'
This page took 0.096398 seconds and 4 git commands to generate.