-dpi_scale() {
- # IDK what magic is at work here, but launching mate-appearance-properties
- # does the job better than setting scaling variables.
- # TODO Get to the bottom of how it works and replicate directly.
- # TODO Try this: https://wiki.archlinux.org/title/HiDPI#Xorg
- launch_then_killall 'mate-appearance-properties' 1
-
- # GDK 3 (GTK 3)
- # https://wiki.archlinux.org/index.php/HiDPI#GDK_3_(GTK_3)
- #export GDK_SCALE=2
-
- # QT
- # https://wiki.archlinux.org/index.php/HiDPI#Qt_5
- # https://doc.qt.io/qt-5/highdpi.html
- # https://blog.qt.io/blog/2016/01/26/high-dpi-support-in-qt-5-6/
- #export QT_SCALE_FACTOR=2 # Causes qutebrowser UI fonts to have large gaps.
- #export QT_FONT_DPI=192 # Scales qutebrowser UI fonts as expected.
-}
+tmux_new_win() {
+ local -r command="$1"
+ local -r window_id=$(counter_next)
+ local -r window_name=$(basename "$command")
+ local -r pane=0
+
+ log \
+ '[debug] tmux window_id:"%s", window_name:"%s", command:"%s"' \
+ "$window_id" "$window_name" "$command"