From 6981ea4e157f33b37d4b0dcd9b40a517766656ba Mon Sep 17 00:00:00 2001 From: Puechberty Arthur Date: Thu, 30 Jul 2026 03:13:35 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20de=20l'installation=20des?= =?UTF-8?q?=20paquets=20:=20mise=20=C3=A0=20jour=20des=20messages=20d'?= =?UTF-8?q?=C3=A9tat,=20ajout=20de=20nouveaux=20paquets=20et=20ajustement?= =?UTF-8?q?=20des=20commandes=20d'installation=20pour=20une=20meilleure=20?= =?UTF-8?q?gestion=20des=20erreurs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/install.sh b/install.sh index 67806a7..bc779f7 100644 --- a/install.sh +++ b/install.sh @@ -93,13 +93,13 @@ mkdir -p /mnt/boot mount "$PART_EFI" /mnt/boot # 6. Installation du système strict minimum et optimisé -echo "[INFO] Installation des paquets (Noyau ZEN, Hyprland, Wayland, Opti Laptop, TUI)..." +echo "[INFO] Installation des paquets officiels..." pacstrap /mnt base base-devel linux-zen linux-zen-headers linux-firmware btrfs-progs \ networkmanager sudo git neovim \ $MICROCODE power-profiles-daemon thermald acpi acpid brightnessctl \ pipewire pipewire-pulse pipewire-alsa pipewire-jack wireplumber \ mesa wayland xdg-desktop-portal xdg-desktop-portal-hyprland \ - hyprland wofi waybar swaybg ttf-jetbrains-mono-nerd \ + hyprland wofi waybar swaybg ttf-jetbrains-mono-nerd kitty \ bluez bluez-utils thunar playerctl \ fastfetch btop htop ncdu yazi lazygit zram-generator @@ -197,9 +197,11 @@ echo "[INFO] Configuration de sudo sans mot de passe temporaire pour l'installat echo "$USERNAME ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/temp chmod 0440 /etc/sudoers.d/temp -echo "[INFO] Installation de paru-bin (évite de compiler Rust) et autres outils AUR..." -sudo -u $USERNAME bash -c "cd /tmp && git clone https://aur.archlinux.org/paru-bin.git && cd paru-bin && makepkg -si --noconfirm" -sudo -u $USERNAME bash -c "paru -S --noconfirm ghostty-git bluetui || true" +echo "[INFO] Installation de paru-bin..." +sudo -u $USERNAME bash -c "cd /tmp && git clone https://aur.archlinux.org/paru-bin.git && cd paru-bin && makepkg -si --noconfirm" || true + +echo "[INFO] Installation de ghostty et bluetui..." +sudo -u $USERNAME bash -c "paru -S --noconfirm ghostty-git bluetui" || true echo "[INFO] Restauration de la sécurité sudo..." rm -f /etc/sudoers.d/temp @@ -291,6 +293,7 @@ cat << 'HYPRCONF' > \$USER_HOME/.config/hypr/hyprland.lua ---- MONITORS ---- ------------------ +-- See https://wiki.hypr.land/Configuring/Basics/Monitors/ hl.monitor({ output = "", mode = "preferred", @@ -322,10 +325,6 @@ end) hl.env("XCURSOR_SIZE", "24") hl.env("HYPRCURSOR_SIZE", "24") ------------------------ ------ PERMISSIONS ----- ------------------------ - ----------------------- ---- LOOK AND FEEL ---- ----------------------- @@ -454,7 +453,7 @@ local mainMod = "SUPER" hl.bind(mainMod .. " + Return", hl.dsp.exec_cmd(terminal)) local closeWindowBind = hl.bind(mainMod .. " + W", hl.dsp.window.close()) -hl.bind(mainMod .. " + M", hl.dsp.exec_cmd("hyprctl dispatch exit")) +hl.bind(mainMod .. " + M", hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch 'hl.dsp.exit()'")) hl.bind(mainMod .. " + E", hl.dsp.exec_cmd(fileManager)) hl.bind(mainMod .. " + V", hl.dsp.window.float({ action = "toggle" })) hl.bind(mainMod .. " + Space", hl.dsp.exec_cmd(menu)) @@ -530,7 +529,6 @@ if [ -z "\${WAYLAND_DISPLAY}" ] && [ "\${XDG_VTNR}" -eq 1 ]; then while true; do read -s -p "Entrez votre mot de passe pour demarrer Hyprland: " PASS echo "" - # Utilisation de sudo -k pour réinitialiser le cache et forcer la demande if echo "\$PASS" | sudo -S -k true 2>/dev/null; then exec Hyprland break