#!/usr/bin/env bash # =============================================================== # 🧠 Omarchy Setup Script v2.9 β€” Intel Edition # --------------------------------------------------------------- # Autor: Marco G. # DescripciΓ³n: # Prepara un entorno completo de trabajo con Zsh, Oh My Zsh, # Oh My Posh, Homebrew, herramientas de desarrollo, codecs Intel, # drivers Epson, Logitech y utilidades varias. # Este script NO instala DaVinci Resolve, solo deja el sistema listo. # =============================================================== # --------------------------------------------------------------- # 🧩 FunciΓ³n de seguridad: abortar si algo falla # --------------------------------------------------------------- set -e trap 'echo "❌ Error en la lΓ­nea $LINENO. Abortando instalaciΓ³n."; exit 1' ERR # --------------------------------------------------------------- # 🎨 Banner inicial estilo Catppuccin # --------------------------------------------------------------- cat << "EOF" ╔═════════════════════════════════════════════════════╗ β•‘ 🧠 Omarchy System Setup v2.9 β•‘ β•‘ Intel Iris Xe β€’ Arch Linux β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• EOF sleep 1 # --------------------------------------------------------------- # 🧰 ActualizaciΓ³n de sistema y herramientas base # --------------------------------------------------------------- echo "πŸ”§ Actualizando sistema base..." sudo pacman -Syu --noconfirm echo "πŸ“¦ Instalando utilidades esenciales..." sudo pacman -S --needed --noconfirm \ base-devel git curl wget zip unzip p7zip unrar tar \ fastfetch nano htop btop eza tree zoxide bat fzf ripgrep \ python python-pip nodejs npm go \ docker docker-compose \ gnome-keyring openssh lsof ntp \ flatpak # --------------------------------------------------------------- # πŸ–₯️ InstalaciΓ³n de controladores Intel Iris Xe # --------------------------------------------------------------- echo "🎞️ Instalando controladores y codecs para Intel Iris Xe..." sudo pacman -S --needed --noconfirm \ mesa libva-intel-driver intel-media-driver \ vulkan-intel vulkan-icd-loader \ libvdpau-va-gl libva-utils \ gstreamer gst-libav gst-plugins-good gst-plugins-bad gst-plugins-ugly \ ffmpeg opencl-clang intel-compute-runtime clinfo # --------------------------------------------------------------- # 🧾 Impresoras Epson (L4150 + Epson Scan2) # --------------------------------------------------------------- echo "πŸ–¨οΈ Instalando drivers Epson..." sudo pacman -S --needed --noconfirm cups sane simple-scan sudo systemctl enable --now cups.service yay -S --needed --noconfirm epson-inkjet-printer-escpr2 epson-scanner-2 # --------------------------------------------------------------- # πŸ–±οΈ Logitech: ltunify y logiops # --------------------------------------------------------------- echo "πŸ–±οΈ Instalando soporte Logitech..." sudo pacman -S --needed --noconfirm ltunify logiops # --------------------------------------------------------------- # πŸ’» Aplicaciones grΓ‘ficas esenciales # --------------------------------------------------------------- echo "πŸͺŸ Instalando aplicaciones grΓ‘ficas..." sudo pacman -S --needed --noconfirm \ filezilla gedit code cursor telegram-desktop # --------------------------------------------------------------- # 🧴 InstalaciΓ³n de Zsh + Oh My Zsh + plugins + Oh My Posh # --------------------------------------------------------------- echo "πŸ’„ Instalando Zsh y entorno de shell..." sudo pacman -S --needed --noconfirm zsh # Cambiar shell por defecto a Zsh if [ "$SHELL" != "/bin/zsh" ]; then chsh -s /bin/zsh fi # Instalar Oh My Zsh si no existe if [ ! -d "$HOME/.oh-my-zsh" ]; then echo "🌈 Instalando Oh My Zsh..." RUNZSH=no KEEP_ZSHRC=yes sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" fi # Instalar plugins echo "πŸ”Œ Instalando plugins de Zsh..." ZSH_CUSTOM=${ZSH_CUSTOM:-~/.oh-my-zsh/custom} git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions 2>/dev/null || true git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting 2>/dev/null || true git clone https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/colorize $ZSH_CUSTOM/plugins/colorize 2>/dev/null || true # Instalar Oh My Posh echo "✨ Instalando Oh My Posh..." curl -s https://ohmyposh.dev/install.sh | bash -s oh-my-posh font install meslo # --------------------------------------------------------------- # 🍺 InstalaciΓ³n de Homebrew # --------------------------------------------------------------- echo "🍺 Instalando Homebrew..." if ! command -v brew &>/dev/null; then /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" fi # --------------------------------------------------------------- # 🧩 ConfiguraciΓ³n de .bashrc (lanza Zsh + Homebrew env) # --------------------------------------------------------------- echo "βš™οΈ Ajustando ~/.bashrc..." cat << 'EOBASH' > ~/.bashrc # If not running interactively, don't do anything [[ $- != *i* ]] && return # Omarchy default rc source ~/.local/share/omarchy/default/bash/rc # Lanzar Zsh automΓ‘ticamente si no estamos ya en Zsh if [ -t 1 ] && [ -z "$ZSH_VERSION" ]; then exec zsh fi # Inicializar Homebrew eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" EOBASH # --------------------------------------------------------------- # πŸ” Activar servicios bΓ‘sicos # --------------------------------------------------------------- echo "πŸ”‘ Habilitando servicios..." sudo systemctl enable --now docker.service sudo systemctl enable --now ntpd.service sudo systemctl enable --now gnome-keyring-daemon.service || true # --------------------------------------------------------------- # βœ… Mensaje final # --------------------------------------------------------------- cat << "EOF" ╔═══════════════════════════════════════════════════════════╗ β•‘ βœ… Sistema preparado con Γ©xito β€” Omarchy Setup v2.9 β•‘ β•‘ Reinicia tu sesiΓ³n o ejecuta 'exec zsh' para aplicar todo β•‘ β•‘ Luego copia tu archivo .zshrc de Omarchy v2.1. β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• EOF