mirror of
https://github.com/marcogll/omarchy_setup.git
synced 2026-01-13 13:25:16 +00:00
- Integrated mg_dotfiles as regular directory (not submodule) - Added .zshrc.local.example template for local configs without secrets - Added mg_dotfiles/zsh/.zshrc.local to .gitignore to protect API keys - Updated README to reflect mg_dotfiles integration and new structure - Added nvim configuration directory with LazyVim setup
mg_dotfiles
Dotfiles personales para mi configuración de Arch Linux con Hyprland, Omarchy, Zsh y Bash.
📦 Incluye
Shell
- Zsh: Oh My Zsh + Oh My Posh + plugins (git, docker, npm, python, etc.)
- Bash: Config básica con auto-launch a Zsh
- Funciones: yt-dlp (ytm, ytv, ytls), docker, git, venv, etc.
- Aliases: Sistema, Git, Docker, NPM, Python, Arch/Pacman
- Local Config:
.zshrc.local.examplepara personalizaciones sin secretos
Desktop
- Omarchy: Config completa (themes, backgrounds, hooks)
- Hyprland: keybindings, monitors, autostart, idle/lock
- Waybar: Barra personalizada
- Walker: Launcher/appmenu
- Mako: Notificaciones
Terminal
- Alacritty o Kitty: Config temática
- Oh My Posh: Theme Catppuccin Frappé
🚀 Instalación
cd ~/Work/mg_dotfiles
chmod +x install.sh
./install.sh
El script:
- Crea backups automáticos en
~/.dotfiles_backup_FECHA - Crea symlinks a los archivos de configuración
- Genera
~/.zshrc.localdesde.zshrc.local.examplesi no existe
⚙️ Post-instalación
- Recarga tu shell:
source ~/.zshrco reinicia terminal - Config local: Copia el ejemplo y edítalo:
cp mg_dotfiles/zsh/.zshrc.local.example ~/.zshrc.local # Edita ~/.zshrc.local para agregar tus configuraciones locales - API Keys: Agrega tus API keys en
~/.zshrc.local(usa variables de entorno o gestores de secretos):export OPENAI_API_KEY="sk-..." export ANTHROPIC_API_KEY="sk-..." # etc... - Oh My Zsh: Instálalo si no lo tienes:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" - Oh My Posh: Instálalo si no lo tienes:
curl -s https://ohmyposh.dev/install.sh | bash -s
📁 Estructura
~/Work/mg_dotfiles/
├── bash/
│ └── .bashrc
├── zsh/
│ ├── .zshrc
│ ├── .zshrc.help
│ ├── .zshrc.local.example # Plantilla para ~/.zshrc.local
│ └── .zsh_functions/
├── omarchy/
│ ├── omarchy/ # Themes, backgrounds, hooks
│ ├── hypr/ # Hyprland config
│ ├── waybar/ # Bar config
│ ├── walker/ # Launcher config
│ ├── alacritty/ # Terminal (opcional)
│ ├── kitty/ # Terminal (opcional)
│ └── mako/ # Notificaciones
└── install.sh
🔥 Comandos útiles
Zsh functions
ytm <URL>- Descarga audio de YouTube a~/Videos/YouTube/Music/ytv <URL> [calidad]- Descarga video de YouTube (1080/720/480)ytls- Lista últimas descargasvenv create|on|off- Gestiona entornos virtuales Pythonkillport <puerto>- Mata proceso en puerto específicoextract <archivo>- Extrae cualquier archivo comprimidomkcd <dir>- Crea directorio y entra en él
Aliases destacados
pacu/yayu- Actualizar sistemapaci/yayi- Instalar paquetega,gcm,glog- Git shortcutsdc,dps,dex- Docker compose shortcutsnrs,nrd,nrb- NPM run shortcuts
⚠️ Archivos excluidos
Los siguientes archivos NO están incluidos (por seguridad/privacidad):
zsh/.zshrc.local- Contiene API keys (usa.zshrc.local.examplecomo plantilla)misc/.gitconfig- Config personal con tokens~/.zsh_history,~/.bash_history- Historiales~/.oh-my-zsh/- Demasiado grande para incluir
📝 Notas
- El archivo
~/.zshrc.localdebe copiarse desde.zshrc.local.exampley editarse manualmente - IMPORTANTE: No pongas API keys reales en
.zshrc.local.example- usa solo configuraciones públicas allí - El script de instalación crea symlinks, no copia archivos
- Los backups se guardan en
~/.dotfiles_backup_FECHA
🤝 Contribuciones
Estos son mis dotfiles personales, siéntete libre de usarlos como referencia.