chore(merge): bring fix/installer-wizard up to date with Main
Main replaced WinBoat with PacManager 1.6.2 (fetched from the public Gitea, installed under /opt and shipped in the live image) and added the install progress steps, the Vulkan-per-GPU fix and the default emoji font. This branch keeps everything that is specific to it: Intel RST/VMD handling (fws-intel-rst, --no-nvram in the kickstart and fws-grub-finalize, the ESP lookup fix), the Broadcom wl driver, fws-bugreport and the step-by-step wizard. Where the two sides disagreed on PacManager, Main wins: the vendored 1.4.3 tarball, the FWS launcher and the target-only install block (build.sh and kickstart) are dropped, since the package now ships in packages.x86_64 and the LiveOS payload copies it to the target. Launchers call PacManager, the binary Main's package exposes on PATH.
This commit is contained in:
commit
423dcc66dc
37 files changed
+1836
-258
No files matched your search
@@ -126,7 +126,7 @@ def _project_tab(osr):
|
||||
feats.set_markup(
|
||||
"<b>Inclus :</b> installateur graphique · plusieurs bureaux "
|
||||
"(GNOME, KDE, Hyprland, i3, XFCE) · Steam & Proton-GE · "
|
||||
"réalité virtuelle (SteamVR) · winboat (applications Windows) · "
|
||||
"réalité virtuelle (SteamVR) · PacManager (paquets) · "
|
||||
"pare-feu · réparation système intégrée.")
|
||||
feats.set_line_wrap(True)
|
||||
feats.set_max_width_chars(52)
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
# FWS — publie l'avancement de l'installation pour l'écran de progression
|
||||
# d'Anaconda (pyanaconda/modules/runtime/scripts/runtime.py lit ce fichier et
|
||||
# le transforme en « Script 2/3 · Installation du bureau — 62 % »).
|
||||
#
|
||||
# Usage : fws-install-step <pourcentage 0-100> "<ce qui est en cours>"
|
||||
#
|
||||
# Le fichier est toujours écrit dans le rootfs COURANT (/var/log/…) : dans le
|
||||
# %post chrooté c'est le système installé (que l'installeur lit via
|
||||
# /mnt/sysroot), dans les %post --nochroot c'est le live. Écriture atomique
|
||||
# (fichier temporaire + mv) pour que l'installeur ne lise jamais une ligne à
|
||||
# moitié écrite.
|
||||
#
|
||||
# Best-effort : le code retour est toujours 0 — un souci de progression ne doit
|
||||
# jamais faire échouer l'installation (les %post sont en `set -x`, pas en
|
||||
# `set -e`, mais autant ne pas tenter le diable).
|
||||
set -u
|
||||
|
||||
FILE=/var/log/fws-install-progress
|
||||
|
||||
[ "$#" -ge 2 ] || exit 0
|
||||
PERCENT="$1"
|
||||
shift
|
||||
case "$PERCENT" in
|
||||
''|*[!0-9]*) exit 0 ;;
|
||||
esac
|
||||
[ "$PERCENT" -le 100 ] || PERCENT=100
|
||||
|
||||
mkdir -p "${FILE%/*}" 2>/dev/null || exit 0
|
||||
if printf '%s|%s\n' "$PERCENT" "$*" > "$FILE.tmp" 2>/dev/null; then
|
||||
mv -f "$FILE.tmp" "$FILE" 2>/dev/null || rm -f "$FILE.tmp" 2>/dev/null
|
||||
fi
|
||||
exit 0
|
||||
@@ -126,8 +126,11 @@ if printf '%s' "$GPU" | grep -qiE 'NVIDIA|GeForce'; then
|
||||
# tout simplement inutilisable.
|
||||
if [ "$_NEWEST" -eq 0 ] || [ "$_NEWEST" -ge $((16#1E00)) ]; then
|
||||
GPU_NOTE="NVIDIA 0x$(printf '%04x' "$_NEWEST") → modules ouverts (Turing ou plus récent)"
|
||||
# libva-nvidia-driver : le pilote VA-API (décodage vidéo matériel) —
|
||||
# nvidia-utils ne fournit que le VDPAU historique ; sans ce paquet,
|
||||
# Firefox/Chrome et les lecteurs décodent en CPU et saccadent en 4K.
|
||||
GPU_PKGS="$GPU_PKGS nvidia-open-dkms nvidia-utils nvidia-settings \
|
||||
opencl-nvidia egl-wayland linux-headers dkms"
|
||||
opencl-nvidia egl-wayland libva-nvidia-driver linux-headers dkms"
|
||||
[ "$LIB32" = 1 ] && GPU_PKGS="$GPU_PKGS lib32-nvidia-utils lib32-opencl-nvidia"
|
||||
# Portable hybride : de quoi basculer entre iGPU et carte dédiée.
|
||||
# Délimiteurs de mot OBLIGATOIRES : sans eux « ATI » matche dans
|
||||
@@ -280,7 +283,7 @@ esac
|
||||
[ -n "$VM_PKGS" ] && group vm "Outils invité de la machine virtuelle" "$VM_DETECT" $VM_PKGS
|
||||
|
||||
# ── 10) Conteneurs ──────────────────────────────────────────────────────────
|
||||
# Requis par winboat-bin (applications Windows).
|
||||
# Moteur de conteneurs sans démon : applications isolées (Distrobox, images OCI).
|
||||
group containers "Conteneurs (Podman)" 1 podman
|
||||
|
||||
# ── Groupes À LA DEMANDE ────────────────────────────────────────────────────
|
||||
@@ -375,6 +378,10 @@ if [ "${#SELECTED[@]}" -gt 0 ]; then
|
||||
if [ -n "$VALID" ]; then
|
||||
log "installation :$VALID"
|
||||
if pacman -S --noconfirm --needed $VALID; then
|
||||
# polices : le cache fontconfig doit inclure la police emoji qui
|
||||
# vient d'être installée, sinon les applications déjà lancées ne la
|
||||
# voient qu'au prochain démarrage de session.
|
||||
command -v fc-cache >/dev/null 2>&1 && fc-cache -f >/dev/null 2>&1
|
||||
# MARQUEUR DE RÉUSSITE. C'est lui qui décide si la fenêtre « Pilotes
|
||||
# et matériel » s'ouvre au premier démarrage : posé, elle se tait ;
|
||||
# absent (typiquement : pas de réseau pendant l'installation, le cas
|
||||
@@ -439,9 +446,10 @@ if [ "$BROADCOM_WL" = 1 ] && [ "$_wifi_selected" = 1 ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# NB : winboat-bin (AUR) n'est PAS installé ici (fws-local n'existe pas sur la
|
||||
# NB : fws-pacmanage n'est PAS installé ici (fws-local n'existe pas sur la
|
||||
# cible) : il est intégré à l'image FWS via packages.x86_64 et recopié par le
|
||||
# payload LiveOS d'Anaconda → déjà présent sur le système installé.
|
||||
# payload LiveOS d'Anaconda → déjà présent sur le système installé, dans
|
||||
# /opt/fws-pacmanage (répertoire que son self-update réécrit).
|
||||
|
||||
# ── Vérification et réparation des services ─────────────────────────────────
|
||||
# Jouée après une installation, et seule avec « --check ». Chaque contrôle est
|
||||
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
#!/bin/sh
|
||||
# FWS — fond d'écran par défaut, posé au PREMIER démarrage graphique.
|
||||
#
|
||||
# L'image est EMBARQUÉE dans l'ISO (/usr/local/share/fws/wallpaper.png) au lieu
|
||||
# d'être téléchargée : aucun réseau requis au premier boot, même rendu sur
|
||||
# toutes les installations, et rien à héberger.
|
||||
#
|
||||
# Lancement :
|
||||
# - /etc/xdg/autostart/fws-wallpaper.desktop (KDE, GNOME, XFCE) → « une fois » ;
|
||||
# - Hyprland/i3 (pas d'autostart XDG) : la config de session appelle
|
||||
# « fws-wallpaper --session » à chaque session — ces bureaux n'ont pas de
|
||||
# réglage de fond persistant hors de leur config
|
||||
# (swaybg respawné / feh repose le pixmap racine).
|
||||
#
|
||||
# Marqueur ~/.config/fws/wallpaper-done (même dossier que fws-hello) : une fois
|
||||
# le fond posé, ce script ne touche PLUS à rien — le choix fait ensuite par
|
||||
# l'utilisateur est conservé.
|
||||
# fws-wallpaper --force réapplique le fond FWS par-dessus le choix actuel.
|
||||
#
|
||||
# Code retour : 0 = fond posé (ou déjà posé), 1 = rien à faire (session non
|
||||
# reconnue, outil absent, sans affichage) — l'échec est volontairement silencieux,
|
||||
# on ne casse jamais un démarrage de session pour un fond d'écran.
|
||||
set -u
|
||||
|
||||
[ -n "${HOME:-}" ] || exit 1
|
||||
WALL=/usr/local/share/fws/wallpaper.png
|
||||
STATE_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/fws"
|
||||
FLAG="$STATE_DIR/wallpaper-done"
|
||||
|
||||
MODE=once # once = ignore si déjà posé ; session = repose à chaque
|
||||
# session (Hyprland/i3) ; force = réapplique maintenant
|
||||
for _arg in "$@"; do
|
||||
case "$_arg" in
|
||||
--session) MODE=session ;;
|
||||
--force) MODE=force ;;
|
||||
--autostart) ;; # entrée /etc/xdg/autostart : comportement par défaut
|
||||
-h|--help) awk 'NR > 1 { if ($0 !~ /^#/) exit; sub(/^# ?/, ""); print }' "$0"; exit 0 ;;
|
||||
*) echo "Usage : fws-wallpaper [--force|--session]" >&2; exit 1 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
[ -r "$WALL" ] || exit 1
|
||||
# Pas de session graphique joignable (console, script lancé par un service) : rien à faire.
|
||||
if [ -z "${DISPLAY:-}" ] && [ -z "${WAYLAND_DISPLAY:-}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
[ "$MODE" = "once" ] && [ -e "$FLAG" ] && exit 0
|
||||
|
||||
# --- Détection du bureau ----------------------------------------------------
|
||||
# HYPRLAND_INSTANCE_SIGNATURE / I3SOCK sont les signatures FIABLES exportées aux
|
||||
# processus de session (XDG_CURRENT_DESKTOP n'est pas garanti pour i3).
|
||||
_lower() { printf '%s' "$1" | tr '[:upper:]' '[:lower:]'; }
|
||||
DE=""
|
||||
if [ -n "${HYPRLAND_INSTANCE_SIGNATURE:-}" ]; then
|
||||
DE=hyprland
|
||||
elif [ -n "${I3SOCK:-}" ]; then
|
||||
DE=i3
|
||||
else
|
||||
case "$(_lower "${XDG_CURRENT_DESKTOP:-}")" in
|
||||
*kde*|*plasma*) DE=kde ;;
|
||||
*xfce*) DE=xfce ;;
|
||||
*gnome*|*unity*) DE=gnome ;;
|
||||
*i3*) DE=i3 ;;
|
||||
esac
|
||||
fi
|
||||
[ -n "$DE" ] || exit 1
|
||||
|
||||
# --- KDE --------------------------------------------------------------------
|
||||
# plasma-apply-wallpaperimage passe par plasmashell (DBus) : au tout premier
|
||||
# login plasmashell peut ne pas être prêt → on réessaie ~20 s avant d'abandonner
|
||||
# (sans marqueur, le prochain démarrage retentera).
|
||||
_apply_kde() {
|
||||
command -v plasma-apply-wallpaperimage >/dev/null 2>&1 || return 1
|
||||
_i=0
|
||||
while [ "$_i" -lt 10 ]; do
|
||||
plasma-apply-wallpaperimage "$WALL" >/dev/null 2>&1 && return 0
|
||||
_i=$((_i + 1))
|
||||
sleep 2
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
# --- GNOME ------------------------------------------------------------------
|
||||
_apply_gnome() {
|
||||
command -v gsettings >/dev/null 2>&1 || return 1
|
||||
gsettings set org.gnome.desktop.background picture-uri "file://$WALL" || return 1
|
||||
# Thème sombre (GNOME ≥ 42) : GNOME lit picture-uri-dark dans ce cas.
|
||||
gsettings set org.gnome.desktop.background picture-uri-dark "file://$WALL" 2>/dev/null || true
|
||||
return 0
|
||||
}
|
||||
|
||||
# --- XFCE ------------------------------------------------------------------
|
||||
# xfce4-desktop stocke une propriété « last-image » par moniteur × espace de
|
||||
# travail ; on remplit celles qui existent et, au tout premier login (propriétés
|
||||
# pas encore créées), on les crée pour chaque sortie de xrandr (xfconf nomme les
|
||||
# moniteurs par connecteur depuis XFCE 4.16 : monitorHDMI-1, monitoreDP-1…).
|
||||
_apply_xfce() {
|
||||
command -v xfconf-query >/dev/null 2>&1 || return 1
|
||||
_done=0
|
||||
for _p in $(xfconf-query -c xfce4-desktop -l 2>/dev/null | grep 'last-image$'); do
|
||||
if xfconf-query -c xfce4-desktop -p "$_p" -s "$WALL" >/dev/null 2>&1; then
|
||||
_done=1
|
||||
# 5 = « zoom » (remplit l'écran sans déformer l'image).
|
||||
xfconf-query -c xfce4-desktop -p "${_p%last-image}image-style" \
|
||||
-n -t int -s 5 >/dev/null 2>&1 || true
|
||||
fi
|
||||
done
|
||||
if [ "$_done" -eq 0 ] && command -v xrandr >/dev/null 2>&1; then
|
||||
for _out in $(xrandr --listmonitors 2>/dev/null | awk 'NR>1 {print $4}' | sed 's#.*/##'); do
|
||||
_base="/backdrop/screen0/monitor${_out}/workspace0"
|
||||
xfconf-query -c xfce4-desktop -p "$_base/last-image" \
|
||||
-n -t string -s "$WALL" >/dev/null 2>&1 && _done=1
|
||||
xfconf-query -c xfce4-desktop -p "$_base/image-style" \
|
||||
-n -t int -s 5 >/dev/null 2>&1 || true
|
||||
done
|
||||
fi
|
||||
[ "$_done" -eq 1 ]
|
||||
}
|
||||
|
||||
# --- Hyprland ---------------------------------------------------------------
|
||||
# swaybg (layer-shell) affiche le fond ; setsid le détache du script, qui se
|
||||
# termine tout de suite (sinon Hyprland attendrait un exec-once zombie).
|
||||
_apply_hyprland() {
|
||||
command -v swaybg >/dev/null 2>&1 || return 1
|
||||
pkill -x swaybg >/dev/null 2>&1 || true
|
||||
setsid swaybg -i "$WALL" -m fill >/dev/null 2>&1 &
|
||||
return 0
|
||||
}
|
||||
|
||||
# --- i3 --------------------------------------------------------------------
|
||||
_apply_i3() {
|
||||
command -v feh >/dev/null 2>&1 || return 1
|
||||
feh --bg-fill "$WALL" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
case "$DE" in
|
||||
kde) _apply_kde ;;
|
||||
gnome) _apply_gnome ;;
|
||||
xfce) _apply_xfce ;;
|
||||
hyprland) _apply_hyprland ;;
|
||||
i3) _apply_i3 ;;
|
||||
*) exit 1 ;;
|
||||
esac || exit 1
|
||||
|
||||
# Marqueur seulement hors « --session » : sur Hyprland/i3 le fond est reposé à
|
||||
# chaque session par la config, le marqueur n'aurait aucun sens.
|
||||
if [ "$MODE" != "session" ]; then
|
||||
mkdir -p "$STATE_DIR" 2>/dev/null && : > "$FLAG" 2>/dev/null || true
|
||||
fi
|
||||
exit 0
|
||||
@@ -65,6 +65,10 @@ misc {
|
||||
# Démarrage de session : barre d'état, notifications, réseau dans le tray,
|
||||
# agent d'authentification GUI (indispensable pour les apps qui demandent
|
||||
# les droits admin : gestionnaire de disques, blueman…).
|
||||
# Fond d'écran FWS : image EMBARQUÉE dans l'ISO (aucun réseau requis) — swaybg
|
||||
# la repose à chaque session, Hyprland n'ayant pas de réglage de fond persistant
|
||||
# hors config. « background_color » ci-dessus reste le repli si swaybg manque.
|
||||
exec-once = fws-wallpaper --session
|
||||
exec-once = waybar
|
||||
exec-once = mako
|
||||
exec-once = nm-applet
|
||||
@@ -86,7 +90,7 @@ bindd = $mod SHIFT, Return, Terminal flottant, exec, kitty --class floating-term
|
||||
bindd = $mod, R, Menu des applications, exec, wofi --show drun
|
||||
bindd = $mod, E, Gestionnaire de fichiers, exec, dolphin
|
||||
bindd = $mod, B, Ouvrir Firefox, exec, firefox
|
||||
bindd = $mod, P, Gestionnaire de paquets (PacManager), exec, fws-pacmanage
|
||||
bindd = $mod, P, Gestionnaire de paquets (PacManager), exec, PacManager
|
||||
bindd = $mod, K, Afficher les raccourcis clavier, exec, fws-keys
|
||||
bindd = $mod, X, Menu d'alimentation (arrêt/redémarrage…), exec, fws-powermenu
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ bindsym $mod+b exec $browser
|
||||
# VR : installation des drivers/runtimes casque (HTC Vive, Index, Quest…)
|
||||
bindsym $mod+Shift+v exec kitty -e fws-vr-setup
|
||||
# Gestionnaire de paquets graphique (rechercher/installer/mettre à jour)
|
||||
bindsym $mod+p exec fws-pacmanage
|
||||
bindsym $mod+p exec PacManager
|
||||
# Panneau des raccourcis clavier (aussi via le bouton ⌌ de la barre)
|
||||
bindsym $mod+k exec fws-keys
|
||||
# Menu d'alimentation (verrouiller/déconnexion/redémarrer/éteindre)
|
||||
@@ -156,6 +156,9 @@ exec_always --no-startup-id sh -c 'pkill -x polybar; sleep 0.3; exec polybar -q
|
||||
# rate le repaint des fenêtres GTK → contenus noirs/artefacts. Les coins
|
||||
# arrondis sont sacrifiés en VM ; sur matériel réel picom se lance normalement.
|
||||
exec --no-startup-id sh -c 'systemd-detect-virt --quiet || exec picom --config ~/.config/picom.conf'
|
||||
# Fond d'écran FWS : image EMBARQUÉE dans l'ISO (aucun réseau requis) — feh
|
||||
# repose le pixmap racine à chaque session (i3 n'a pas de fond persistant).
|
||||
exec --no-startup-id fws-wallpaper --session
|
||||
exec --no-startup-id dunst
|
||||
exec --no-startup-id nm-applet
|
||||
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
|
||||
@@ -35,6 +35,8 @@ line-size = 0
|
||||
font-0 = Noto Sans:size=10;2
|
||||
font-1 = Symbols Nerd Font:size=12;3
|
||||
font-2 = Noto Sans:weight=bold:size=10;2
|
||||
; dernier recours = emoji (police par défaut, etc/fonts/conf.d/99-fws-emoji.conf)
|
||||
font-3 = Noto Color Emoji:size=10;2
|
||||
modules-left = i3 xwindow
|
||||
modules-center = date
|
||||
modules-right = updates keyhelp backlight pulseaudio network cpu memory tray power
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 263 KiB |
@@ -3,7 +3,9 @@
|
||||
(paquet ttf-nerd-fonts-symbols, installé avec le bureau Hyprland). */
|
||||
|
||||
* {
|
||||
font-family: "Noto Sans", "Symbols Nerd Font", sans-serif;
|
||||
/* Noto Color Emoji : dernier recours, pour les emoji des titres/notifications
|
||||
(police par défaut, cf. etc/fonts/conf.d/99-fws-emoji.conf). */
|
||||
font-family: "Noto Sans", "Symbols Nerd Font", "Noto Color Emoji", sans-serif;
|
||||
font-size: 13px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ window {
|
||||
background-color: rgba(30, 30, 46, 0.97);
|
||||
border: 2px solid #89b4fa;
|
||||
border-radius: 14px;
|
||||
font-family: "Noto Sans Mono", monospace;
|
||||
font-family: "Noto Sans Mono", "Noto Color Emoji", monospace;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ window {
|
||||
border-radius: 10px;
|
||||
margin: 12px;
|
||||
padding: 8px 12px;
|
||||
font-family: "Noto Sans", sans-serif;
|
||||
font-family: "Noto Sans", "Noto Color Emoji", sans-serif;
|
||||
}
|
||||
|
||||
#input image { color: #89b4fa; }
|
||||
|
||||
@@ -4,7 +4,7 @@ window {
|
||||
background-color: rgba(30, 30, 46, 0.96); /* base #1e1e2e */
|
||||
border: 2px solid #89b4fa;
|
||||
border-radius: 14px;
|
||||
font-family: "Noto Sans", sans-serif;
|
||||
font-family: "Noto Sans", "Noto Color Emoji", sans-serif;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user