diff --git a/scripts/grub-theme/background.png b/scripts/grub-theme/background.png new file mode 100644 index 0000000..683466d Binary files /dev/null and b/scripts/grub-theme/background.png differ diff --git a/scripts/grub-theme/icons/autre.png b/scripts/grub-theme/icons/autre.png new file mode 100644 index 0000000..ee0ceab Binary files /dev/null and b/scripts/grub-theme/icons/autre.png differ diff --git a/scripts/grub-theme/icons/photobooth.png b/scripts/grub-theme/icons/photobooth.png new file mode 100644 index 0000000..643ad36 Binary files /dev/null and b/scripts/grub-theme/icons/photobooth.png differ diff --git a/scripts/grub-theme/icons/photostation.png b/scripts/grub-theme/icons/photostation.png new file mode 100644 index 0000000..3054b9f Binary files /dev/null and b/scripts/grub-theme/icons/photostation.png differ diff --git a/scripts/grub-theme/select_c.png b/scripts/grub-theme/select_c.png new file mode 100644 index 0000000..2f53240 Binary files /dev/null and b/scripts/grub-theme/select_c.png differ diff --git a/scripts/grub-theme/select_e.png b/scripts/grub-theme/select_e.png new file mode 100644 index 0000000..0fda206 Binary files /dev/null and b/scripts/grub-theme/select_e.png differ diff --git a/scripts/grub-theme/select_n.png b/scripts/grub-theme/select_n.png new file mode 100644 index 0000000..843a1d9 Binary files /dev/null and b/scripts/grub-theme/select_n.png differ diff --git a/scripts/grub-theme/select_ne.png b/scripts/grub-theme/select_ne.png new file mode 100644 index 0000000..fc60fc9 Binary files /dev/null and b/scripts/grub-theme/select_ne.png differ diff --git a/scripts/grub-theme/select_nw.png b/scripts/grub-theme/select_nw.png new file mode 100644 index 0000000..fc60fc9 Binary files /dev/null and b/scripts/grub-theme/select_nw.png differ diff --git a/scripts/grub-theme/select_s.png b/scripts/grub-theme/select_s.png new file mode 100644 index 0000000..843a1d9 Binary files /dev/null and b/scripts/grub-theme/select_s.png differ diff --git a/scripts/grub-theme/select_se.png b/scripts/grub-theme/select_se.png new file mode 100644 index 0000000..fc60fc9 Binary files /dev/null and b/scripts/grub-theme/select_se.png differ diff --git a/scripts/grub-theme/select_sw.png b/scripts/grub-theme/select_sw.png new file mode 100644 index 0000000..fc60fc9 Binary files /dev/null and b/scripts/grub-theme/select_sw.png differ diff --git a/scripts/grub-theme/select_w.png b/scripts/grub-theme/select_w.png new file mode 100644 index 0000000..0fda206 Binary files /dev/null and b/scripts/grub-theme/select_w.png differ diff --git a/scripts/grub-theme/theme.txt b/scripts/grub-theme/theme.txt new file mode 100644 index 0000000..d3901e8 --- /dev/null +++ b/scripts/grub-theme/theme.txt @@ -0,0 +1,35 @@ +# Theme GRUB tactile - Triple Boot Terra +title-text: "" +desktop-color: "#1a1a2e" +message-color: "#ffffff" +message-bg-color: "#000000" +terminal-font: "DejaVu Sans Bold 24" + ++ boot_menu { + left = 10% + top = 15% + width = 80% + height = 70% + item_font = "DejaVu Sans Bold 36" + item_color = "#cccccc" + selected_item_font = "DejaVu Sans Bold 42" + selected_item_color = "#ffffff" + item_height = 120 + item_padding = 20 + item_spacing = 30 + item_icon_space = 30 + icon_width = 96 + icon_height = 96 + selected_item_pixmap_style = "select_*.png" +} + ++ label { + left = 0 + top = 90% + width = 100% + height = 30 + text = "Toucher pour selectionner - Appuyer sur Entree pour demarrer" + font = "DejaVu Sans 18" + color = "#888888" + align = "center" +} diff --git a/scripts/tripleboot-install.sh b/scripts/tripleboot-install.sh index bbc4e9e..5b2211c 100644 --- a/scripts/tripleboot-install.sh +++ b/scripts/tripleboot-install.sh @@ -248,24 +248,47 @@ mount --bind /proc "$MNT/proc" mount --bind /sys "$MNT/sys" mount --bind /run "$MNT/run" -# Creer les entrees GRUB personnalisees +# === THEME GRUB TACTILE === +info "Installation du theme GRUB tactile..." + +THEME_DEST="$MNT/boot/grub/themes/terra" +mkdir -p "$THEME_DEST/icons" + +# Copier le theme depuis le repo clone +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +if [ -d "$SCRIPT_DIR/grub-theme" ]; then + cp "$SCRIPT_DIR/grub-theme/theme.txt" "$THEME_DEST/" + cp "$SCRIPT_DIR/grub-theme/background.png" "$THEME_DEST/" + cp "$SCRIPT_DIR/grub-theme/select_"*.png "$THEME_DEST/" + cp "$SCRIPT_DIR/grub-theme/icons/"*.png "$THEME_DEST/icons/" +else + warn "Theme GRUB non trouve dans $SCRIPT_DIR/grub-theme, theme par defaut" +fi + +# Installer les polices GRUB +chroot "$MNT" bash -c 'grub-mkfont -s 36 -o /boot/grub/fonts/DejaVuSansBold36.pf2 /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf 2>/dev/null || true' +chroot "$MNT" bash -c 'grub-mkfont -s 42 -o /boot/grub/fonts/DejaVuSansBold42.pf2 /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf 2>/dev/null || true' +chroot "$MNT" bash -c 'grub-mkfont -s 18 -o /boot/grub/fonts/DejaVuSans18.pf2 /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf 2>/dev/null || true' +chroot "$MNT" bash -c 'grub-mkfont -s 24 -o /boot/grub/fonts/DejaVuSansBold24.pf2 /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf 2>/dev/null || true' + +# Creer les entrees GRUB personnalisees avec icones cat > "$MNT/etc/grub.d/40_custom" < "$MNT/etc/default/grub" </dev/null || true + chroot "$MNT" update-grub # Nettoyer