Skip to content

Commit 85d568f

Browse files
committed
WSLg flatpaks: modern Nautilus.Devel + Epiphany 50.3, GTK scale 0.75, btop -p 3 default
Multiple operator-flagged fixes 2026-05-10: 1. Nautilus old-looking ("you hard coded an old version of gnome files flatpak"). Root cause: Flathub's org.gnome.Nautilus is END-OF-LIFE (pinned to GNOME 3.28 runtime, years out of date). Fedora flatpak registry doesn't carry Nautilus at all. The ONLY modern flatpak Nautilus is org.gnome.Nautilus.Devel on the gnome-nightly remote -- ships current 50.x+ libadwaita with the modern rounded-corner decorations. Added override file at /var/lib/flatpak/overrides/org.gnome.Nautilus.Devel with the same cairo+software+dark-scheme env as the rest. 2. Epiphany same story: switched install source from flathub (potentially also EOL) to fedora flatpak remote (50.3, current). 3. GTK apps too large: operator-flagged "gnome scaling of apps is probably 25% too big relative to windows application windows". Added GDK_DPI_SCALE=0.75 + QT_FONT_DPI=72 to /etc/profile.d/mios-wslg-gpu.sh AND every flatpak override. 25% smaller GTK rendering matches Windows-native UI size on high-DPI Windows hosts (RTX 4090 / 4K-class displays). 4. btop preset: operator-flagged "btop -p 3 is the correct profile -- make it default launch to preset 3 and have the background be uncolored so we can utilize the Windows acrylic rendering -- make btops colorpalette match and preset 4 to be only showing processes section". /etc/profile.d/mios-btop.sh (NEW) wraps btop to default `-p 3` (cpu+mem full) when no explicit -p/--preset arg is passed. Operator overrides win (btop -p 4, btop --preset 1, etc. pass through). Companion mios-bootstrap commit: - mios.toml [desktop].flatpaks: gnome-nightly:org.gnome.Nautilus.Devel + fedora:org.gnome.Epiphany (replacing old ids) - build-mios.ps1 overlay: adds gnome-nightly remote + appstream refresh; FLATPAK_SHORT map updated with the new ids - src/btop/btop.conf: presets reordered (slot 3 = cpu mem:0, slot 4 = proc:0), shown_boxes = "cpu mem" so even unwrapped btop loads with the canonical view
1 parent 567bce8 commit 85d568f

10 files changed

Lines changed: 77 additions & 0 deletions

etc/profile.d/mios-btop.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# /etc/profile.d/mios-btop.sh
2+
#
3+
# Wrap `btop` so plain invocations land on the canonical MiOS preset
4+
# (preset 3 = cpu+mem full, transparent-bg, mios palette). Operator
5+
# 2026-05-10: "btop -p 3 is the correct profile -- make it default
6+
# launch to preset 3 and have the background be uncolored so we can
7+
# utilize the Windows acrylic rendering".
8+
#
9+
# `btop -p 4` (also reachable via `mios proc`-style) shows only the
10+
# processes section per operator's preset-4 request.
11+
#
12+
# Operator can bypass by passing any explicit -p / --preset arg:
13+
# btop -> btop -p 3
14+
# btop -p 4 -> btop -p 4 (operator override wins)
15+
# btop --preset 1 -> btop --preset 1 (operator override wins)
16+
#
17+
# Interactive-shell only; cron/scripted btop sees the real binary.
18+
19+
[ -n "${PS1:-}" ] || return 0
20+
21+
btop() {
22+
local has_preset=0
23+
for arg in "$@"; do
24+
case "$arg" in
25+
-p|--preset|-p[0-9]*|--preset=*) has_preset=1; break ;;
26+
esac
27+
done
28+
if [ $has_preset -eq 0 ]; then
29+
command btop -p 3 "$@"
30+
else
31+
command btop "$@"
32+
fi
33+
}

etc/profile.d/mios-wslg-gpu.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,24 @@ export WAYLAND_DISPLAY="${WAYLAND_DISPLAY:-wayland-0}"
7474
# XWayland at /tmp/.X11-unix/X0 -- ensure DISPLAY points there.
7575
export DISPLAY="${DISPLAY:-:0}"
7676

77+
# ── GTK / Qt scaling on 4K Windows hosts ──────────────────────────
78+
# Operator-flagged 2026-05-10: "gnome scaling of apps is probably
79+
# 25% too big relative to windows application windows". WSLg
80+
# inherits the Windows host's effective DPI scale (typically
81+
# 1.25 / 1.5 on high-DPI laptops). Linux GTK apps then render at
82+
# that scale on top of WSLg's own scale -> apps end up ~25% larger
83+
# than the Windows-native UI they sit next to.
84+
#
85+
# Fix: GDK_DPI_SCALE=0.75 (fractional, scales DOWN by 25%). GDK
86+
# applies this AFTER GDK_SCALE (which is integer-only), so the
87+
# net effect at GDK_SCALE=1 + GDK_DPI_SCALE=0.75 is rendering at
88+
# 75% of native. Operators on standard-DPI hosts can override
89+
# to 1.0 via shell export or ~/.config/environment.d/.
90+
export GDK_DPI_SCALE="${GDK_DPI_SCALE:-0.75}"
91+
# Qt apps (eventual Plasma/KDE GUI) honor the same intent via
92+
# the QT_FONT_DPI knob -- 72 = 75% of the default 96.
93+
export QT_FONT_DPI="${QT_FONT_DPI:-72}"
94+
7795
# ── Vulkan ICD ──────────────────────────────────────────────────
7896
# WSLg ships dzn at /usr/share/vulkan/icd.d/dzn_icd.x86_64.json.
7997
# We don't unset it -- apps that explicitly request Vulkan can

var/lib/flatpak/overrides/app.devsuite.Ptyxis

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ GALLIUM_DRIVER=llvmpipe
88
LIBGL_KOPPER_DISABLE=1
99
WEBKIT_DISABLE_COMPOSITING_MODE=1
1010
ADW_DEBUG_COLOR_SCHEME=force-dark
11+
GDK_DPI_SCALE=0.75
12+
QT_FONT_DPI=72

var/lib/flatpak/overrides/com.github.tchx84.Flatseal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ GALLIUM_DRIVER=llvmpipe
55
LIBGL_KOPPER_DISABLE=1
66
WEBKIT_DISABLE_COMPOSITING_MODE=1
77
GTK_THEME=adw-gtk3-dark
8+
GDK_DPI_SCALE=0.75
9+
QT_FONT_DPI=72

var/lib/flatpak/overrides/com.mattjakeman.ExtensionManager

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ GALLIUM_DRIVER=llvmpipe
88
LIBGL_KOPPER_DISABLE=1
99
WEBKIT_DISABLE_COMPOSITING_MODE=1
1010
ADW_DEBUG_COLOR_SCHEME=force-dark
11+
GDK_DPI_SCALE=0.75
12+
QT_FONT_DPI=72

var/lib/flatpak/overrides/com.vscodium.codium

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ GALLIUM_DRIVER=llvmpipe
55
LIBGL_KOPPER_DISABLE=1
66
WEBKIT_DISABLE_COMPOSITING_MODE=1
77
GTK_THEME=adw-gtk3-dark
8+
GDK_DPI_SCALE=0.75
9+
QT_FONT_DPI=72

var/lib/flatpak/overrides/org.gnome.Epiphany

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ GALLIUM_DRIVER=llvmpipe
88
LIBGL_KOPPER_DISABLE=1
99
WEBKIT_DISABLE_COMPOSITING_MODE=1
1010
ADW_DEBUG_COLOR_SCHEME=force-dark
11+
GDK_DPI_SCALE=0.75
12+
QT_FONT_DPI=72

var/lib/flatpak/overrides/org.gnome.Nautilus

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ GALLIUM_DRIVER=llvmpipe
88
LIBGL_KOPPER_DISABLE=1
99
WEBKIT_DISABLE_COMPOSITING_MODE=1
1010
ADW_DEBUG_COLOR_SCHEME=force-dark
11+
GDK_DPI_SCALE=0.75
12+
QT_FONT_DPI=72
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Context]
2+
filesystems=xdg-config/dconf:ro;xdg-config/gtk-3.0:ro;xdg-config/gtk-4.0:ro;
3+
4+
[Environment]
5+
GSK_RENDERER=cairo
6+
LIBGL_ALWAYS_SOFTWARE=1
7+
GALLIUM_DRIVER=llvmpipe
8+
LIBGL_KOPPER_DISABLE=1
9+
WEBKIT_DISABLE_COMPOSITING_MODE=1
10+
ADW_DEBUG_COLOR_SCHEME=force-dark
11+
GDK_DPI_SCALE=0.75
12+
QT_FONT_DPI=72

var/lib/flatpak/overrides/org.gnome.Software

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ GALLIUM_DRIVER=llvmpipe
88
LIBGL_KOPPER_DISABLE=1
99
WEBKIT_DISABLE_COMPOSITING_MODE=1
1010
ADW_DEBUG_COLOR_SCHEME=force-dark
11+
GDK_DPI_SCALE=0.75
12+
QT_FONT_DPI=72

0 commit comments

Comments
 (0)