From ee2c4732476d7b562ed50c2b10a601726b9cff62 Mon Sep 17 00:00:00 2001 From: Marco Gallegos Date: Thu, 6 Nov 2025 14:55:23 -0600 Subject: [PATCH] Refactor Omarchy setup script for clarity and updates Updated the Omarchy setup script to improve clarity and functionality. Adjusted comments, removed unnecessary lines, and added additional configuration for VLC and Homebrew. --- omarchy_zsh_setup/omarchy-setup.sh | 65 ++++++++++++++++++------------ 1 file changed, 40 insertions(+), 25 deletions(-) diff --git a/omarchy_zsh_setup/omarchy-setup.sh b/omarchy_zsh_setup/omarchy-setup.sh index 29d5a88..85f9d2e 100644 --- a/omarchy_zsh_setup/omarchy-setup.sh +++ b/omarchy_zsh_setup/omarchy-setup.sh @@ -1,27 +1,28 @@ #!/usr/bin/env bash # =============================================================== -# 🧠 Omarchy Setup Script v3.0 β€” Intel Edition +# 🧠 Omarchy Setup Script β€” 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, VLC y utilidades varias. -# Este script NO instala DaVinci Resolve, solo deja el sistema listo. +# drivers Epson, Logitech y utilidades varias. +# Este script tambiΓ©n configura VLC como reproductor por defecto +# y descarga tus archivos personalizados de Omarchy. # =============================================================== # --------------------------------------------------------------- -# 🧩 FunciΓ³n de seguridad: abortar si algo falla +# 🧩 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 +# 🎨 Banner de inicio # --------------------------------------------------------------- cat << "EOF" ╔═════════════════════════════════════════════════════╗ -β•‘ 🧠 Omarchy System Setup v3.0 β•‘ +β•‘ 🧠 Omarchy System Setup β•‘ β•‘ Intel Iris Xe β€’ Arch Linux β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• EOF @@ -43,7 +44,7 @@ sudo pacman -S --needed --noconfirm \ flatpak # --------------------------------------------------------------- -# πŸ–₯️ InstalaciΓ³n de controladores Intel Iris Xe +# πŸ–₯️ Controladores Intel Iris Xe y codecs multimedia # --------------------------------------------------------------- echo "🎞️ Instalando controladores y codecs para Intel Iris Xe..." sudo pacman -S --needed --noconfirm \ @@ -51,23 +52,28 @@ sudo pacman -S --needed --noconfirm \ 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 + ffmpeg intel-compute-runtime clinfo + +# opencl-clang (viene de AUR) +if ! pacman -Q opencl-clang &>/dev/null; then + echo "βš™οΈ Instalando opencl-clang desde AUR..." + yay -S --noconfirm opencl-clang +fi # --------------------------------------------------------------- -# 🎡 InstalaciΓ³n de VLC + codecs + configuraciΓ³n predeterminada +# 🎬 InstalaciΓ³n de VLC y codecs adicionales # --------------------------------------------------------------- -echo "🎢 Instalando VLC y codecs multimedia..." -sudo pacman -S --needed --noconfirm vlc +echo "🎧 Instalando VLC y codecs multimedia..." +sudo pacman -S --needed --noconfirm vlc vlc-plugins-all -# Establecer VLC como reproductor predeterminado de audio y video -echo "βš™οΈ Configurando VLC como reproductor predeterminado..." +# Asociar archivos multimedia con VLC +echo "πŸ—‚οΈ Configurando VLC como reproductor por defecto..." xdg-mime default vlc.desktop audio/mpeg +xdg-mime default vlc.desktop audio/mp3 xdg-mime default vlc.desktop audio/x-wav -xdg-mime default vlc.desktop audio/flac xdg-mime default vlc.desktop video/mp4 xdg-mime default vlc.desktop video/x-matroska xdg-mime default vlc.desktop video/x-msvideo -xdg-mime default vlc.desktop video/x-ms-wmv # --------------------------------------------------------------- # 🧾 Impresoras Epson (L4150 + Epson Scan2) @@ -91,7 +97,7 @@ sudo pacman -S --needed --noconfirm \ filezilla gedit code cursor telegram-desktop # --------------------------------------------------------------- -# 🧴 InstalaciΓ³n de Zsh + Oh My Zsh + plugins + Oh My Posh +# πŸ’„ InstalaciΓ³n de Zsh + Oh My Zsh + plugins + Oh My Posh # --------------------------------------------------------------- echo "πŸ’„ Instalando Zsh y entorno de shell..." sudo pacman -S --needed --noconfirm zsh @@ -128,25 +134,34 @@ if ! command -v brew &>/dev/null; then fi # --------------------------------------------------------------- -# 🧩 ConfiguraciΓ³n de .bashrc (lanza Zsh + Homebrew env) +# βš™οΈ ConfiguraciΓ³n de .bashrc para lanzar Zsh y Homebrew # --------------------------------------------------------------- echo "βš™οΈ Ajustando ~/.bashrc..." cat << 'EOBASH' > ~/.bashrc -# If not running interactively, don't do anything +# Si no es interactivo, salir [[ $- != *i* ]] && return -# Omarchy default rc -source ~/.local/share/omarchy/default/bash/rc +# Inicializar Homebrew +eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" # Lanzar Zsh automΓ‘ticamente si no estamos ya en Zsh if [ -t 1 ] && [ -z "$ZSH_VERSION" ]; then exec zsh fi - -# Inicializar Homebrew -eval "$($(brew --prefix)/bin/brew shellenv)" EOBASH +# --------------------------------------------------------------- +# πŸ“₯ Descarga de configuraciones y scripts de Omarchy +# --------------------------------------------------------------- +echo "πŸ“₯ Descargando configuraciones de Omarchy..." +mkdir -p ~/Omarchy + +curl -fsSL -o ~/.zshrc "https://raw.githubusercontent.com/marcogll/scripts_mg/refs/heads/main/omarchy_zsh_setup/.zshrc" +curl -fsSL -o ~/Omarchy/omarchy-setup.sh "https://raw.githubusercontent.com/marcogll/scripts_mg/refs/heads/main/omarchy_zsh_setup/omarchy-setup.sh" +curl -fsSL -o ~/Omarchy/davinci_resolve_intel.sh "https://raw.githubusercontent.com/marcogll/scripts_mg/refs/heads/main/omarchy_zsh_setup/davince_resolve_intel.sh" + +chmod +x ~/Omarchy/*.sh + # --------------------------------------------------------------- # πŸ” Activar servicios bΓ‘sicos # --------------------------------------------------------------- @@ -160,8 +175,8 @@ sudo systemctl enable --now gnome-keyring-daemon.service || true # --------------------------------------------------------------- cat << "EOF" ╔═══════════════════════════════════════════════════════════╗ -β•‘ βœ… Sistema preparado con Γ©xito β€” Omarchy Setup v3.0 β•‘ +β•‘ βœ… Sistema preparado con Γ©xito β€” Omarchy Setup β•‘ β•‘ Reinicia tu sesiΓ³n o ejecuta 'exec zsh' para aplicar todo β•‘ -β•‘ Luego copia tu archivo .zshrc de Omarchy v2.1. β•‘ +β•‘ Archivos descargados en ~/Omarchy β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• EOF