mirror of
https://github.com/marcogll/omarchy_setup.git
synced 2026-01-13 21:35:16 +00:00
refactor: externalize dotfiles to mg_dotfiles and cleanup local configs
This commit is contained in:
536
.zshrc
536
.zshrc
@@ -1,536 +0,0 @@
|
|||||||
# =============================================================================
|
|
||||||
# CONFIGURACIÓN ZSH - Marco Gallegos v3.0
|
|
||||||
# =============================================================================
|
|
||||||
#
|
|
||||||
# Este archivo configura el entorno de la terminal Zsh. Incluye la
|
|
||||||
# configuración del PATH, la carga de Oh My Zsh, la inicialización de
|
|
||||||
# Oh My Posh, y una colección de alias y funciones para mejorar la
|
|
||||||
# productividad.
|
|
||||||
#
|
|
||||||
# =============================================================================
|
|
||||||
|
|
||||||
# --- PATH --------------------------------------------------------------------
|
|
||||||
# Define las rutas donde el sistema buscará los programas ejecutables.
|
|
||||||
# `typeset -U` se asegura de que no haya rutas duplicadas.
|
|
||||||
typeset -U PATH path
|
|
||||||
path=(
|
|
||||||
$HOME/.local/bin # Scripts y binarios instalados por el usuario.
|
|
||||||
$HOME/bin # Directorio personal de binarios.
|
|
||||||
$HOME/.npm-global/bin # Paquetes de Node.js instalados globalmente.
|
|
||||||
$HOME/AppImages # Aplicaciones en formato AppImage.
|
|
||||||
$HOME/go/bin # Binarios de Go.
|
|
||||||
$path # Rutas del sistema existentes.
|
|
||||||
)
|
|
||||||
|
|
||||||
# --- Oh My Zsh ---------------------------------------------------------------
|
|
||||||
# Configuración y carga del framework Oh My Zsh.
|
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
|
||||||
# El tema se deja vacío porque Oh My Posh se encargará de gestionar el prompt.
|
|
||||||
ZSH_THEME=""
|
|
||||||
|
|
||||||
# Lista de plugins de Oh My Zsh a cargar.
|
|
||||||
plugins=(
|
|
||||||
git sudo history colorize
|
|
||||||
docker docker-compose
|
|
||||||
npm node python pip golang
|
|
||||||
copypath copyfile
|
|
||||||
)
|
|
||||||
|
|
||||||
# Desactiva la comprobación de seguridad de Oh My Zsh para directorios
|
|
||||||
# con permisos de escritura para otros usuarios, lo que puede ser molesto.
|
|
||||||
export ZSH_DISABLE_COMPFIX=true
|
|
||||||
# Configuración de la caché de autocompletado para mejorar el rendimiento.
|
|
||||||
zstyle ':completion::complete:*' use-cache on
|
|
||||||
zstyle ':completion::complete:*' cache-path "$HOME/.zcompcache"
|
|
||||||
# Hace que el autocompletado no distinga entre mayúsculas y minúsculas.
|
|
||||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
|
||||||
# Habilita colores en el menú de autocompletado.
|
|
||||||
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
|
||||||
zstyle ':completion:*' menu select
|
|
||||||
|
|
||||||
# Carga Oh My Zsh.
|
|
||||||
[ -r "$ZSH/oh-my-zsh.sh" ] && source "$ZSH/oh-my-zsh.sh"
|
|
||||||
|
|
||||||
# Carga los plugins de resaltado de sintaxis y autosugerencias.
|
|
||||||
# Intenta cargar la versión instalada con Oh My Zsh y, si no la encuentra,
|
|
||||||
# busca la versión instalada en el sistema.
|
|
||||||
[ -r "${ZSH_CUSTOM:-$ZSH/custom}/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" ] && \
|
|
||||||
source "${ZSH_CUSTOM:-$ZSH/custom}/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
|
||||||
if [ ! -r "${ZSH_CUSTOM:-$ZSH/custom}/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" ] && \
|
|
||||||
[ -r "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" ]; then
|
|
||||||
source "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ -r "${ZSH_CUSTOM:-$ZSH/custom}/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] && \
|
|
||||||
source "${ZSH_CUSTOM:-$ZSH/custom}/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
|
||||||
if [ ! -r "${ZSH_CUSTOM:-$ZSH/custom}/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] && \
|
|
||||||
[ -r "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]; then
|
|
||||||
source "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# --- Oh My Posh --------------------------------------------------------------
|
|
||||||
# Inicializa Oh My Posh para personalizar el prompt.
|
|
||||||
if command -v oh-my-posh >/dev/null 2>&1; then
|
|
||||||
# Carga el tema Catppuccin Frappe si existe.
|
|
||||||
if [ -f ~/.poshthemes/catppuccin_frappe.omp.json ]; then
|
|
||||||
eval "$(oh-my-posh init zsh --config ~/.poshthemes/catppuccin_frappe.omp.json)"
|
|
||||||
else
|
|
||||||
# Si no, carga el tema por defecto.
|
|
||||||
eval "$(oh-my-posh init zsh)"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# --- Go ----------------------------------------------------------------------
|
|
||||||
# Configura las variables de entorno para el lenguaje de programación Go.
|
|
||||||
export GOPATH="$HOME/go"
|
|
||||||
export GOBIN="$GOPATH/bin"
|
|
||||||
|
|
||||||
# --- NVM (Node Version Manager) ----------------------------------------------
|
|
||||||
# Carga NVM para gestionar múltiples versiones de Node.js.
|
|
||||||
export NVM_DIR="$HOME/.nvm"
|
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
|
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
|
|
||||||
|
|
||||||
# --- Python ------------------------------------------------------------------
|
|
||||||
# Alias para usar las versiones 3 de python y pip por defecto.
|
|
||||||
alias pip='pip3'
|
|
||||||
alias python='python3'
|
|
||||||
|
|
||||||
# Función para gestionar entornos virtuales de Python.
|
|
||||||
venv() {
|
|
||||||
case "$1" in
|
|
||||||
create) python -m venv .venv && echo "✅ Entorno virtual creado en ./.venv" ;;
|
|
||||||
on|activate)
|
|
||||||
if [ -f ".venv/bin/activate" ]; then
|
|
||||||
. .venv/bin/activate
|
|
||||||
echo "🟢 Entorno virtual activado"
|
|
||||||
else
|
|
||||||
echo "❌ Entorno virtual no encontrado en ./.venv"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
off|deactivate)
|
|
||||||
if command -v deactivate &>/dev/null; then
|
|
||||||
deactivate 2>/dev/null
|
|
||||||
echo "🔴 Entorno virtual desactivado"
|
|
||||||
else
|
|
||||||
echo "🤷 No hay un entorno virtual activo para desactivar"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*) echo "Uso: venv [create|on|off|activate|deactivate]" ;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
# --- Aliases -----------------------------------------------------------------
|
|
||||||
# Colección de atajos para comandos comunes.
|
|
||||||
|
|
||||||
# Generales
|
|
||||||
alias cls='clear'
|
|
||||||
alias ll='ls -alF'
|
|
||||||
alias la='ls -A'
|
|
||||||
alias l='ls -CF'
|
|
||||||
alias ..='cd ..'
|
|
||||||
alias ...='cd ../..'
|
|
||||||
alias ....='cd ../../..'
|
|
||||||
|
|
||||||
# Información del sistema
|
|
||||||
alias ff='fastfetch'
|
|
||||||
alias nf='fastfetch'
|
|
||||||
|
|
||||||
# Gestión de paquetes en Arch Linux
|
|
||||||
alias pacu='sudo pacman -Syu'
|
|
||||||
alias paci='sudo pacman -S'
|
|
||||||
alias pacr='sudo pacman -Rns'
|
|
||||||
alias pacs='pacman -Ss'
|
|
||||||
alias yayu='yay -Syu' # Requiere yay
|
|
||||||
alias yayi='yay -S' # Requiere yay
|
|
||||||
|
|
||||||
# Git
|
|
||||||
alias gs='git status'
|
|
||||||
alias ga='git add'
|
|
||||||
alias gc='git commit'
|
|
||||||
alias gcm='git commit -m'
|
|
||||||
alias gp='git push'
|
|
||||||
alias gl='git pull'
|
|
||||||
alias gd='git diff'
|
|
||||||
alias gb='git branch'
|
|
||||||
alias gco='git checkout'
|
|
||||||
alias gcb='git checkout -b'
|
|
||||||
alias glog='git log --oneline --graph --decorate'
|
|
||||||
gac(){ git add . && git commit -m "$1"; }
|
|
||||||
|
|
||||||
# Docker
|
|
||||||
# Detecta si se usa `docker compose` (nuevo) o `docker-compose` (antiguo).
|
|
||||||
docker compose version >/dev/null 2>&1 && alias dc='docker compose' || alias dc='docker-compose'
|
|
||||||
alias d='docker'
|
|
||||||
alias dps='docker ps -a'
|
|
||||||
alias di='docker images'
|
|
||||||
alias dex='docker exec -it'
|
|
||||||
alias dlog='docker logs -f'
|
|
||||||
|
|
||||||
# NPM
|
|
||||||
alias nrs='npm run start'
|
|
||||||
alias nrd='npm run dev'
|
|
||||||
alias nrb='npm run build'
|
|
||||||
alias nrt='npm run test'
|
|
||||||
alias ni='npm install'
|
|
||||||
alias nid='npm install --save-dev'
|
|
||||||
alias nig='npm install -g'
|
|
||||||
|
|
||||||
# Python
|
|
||||||
alias py='python'
|
|
||||||
alias pir='pip install -r requirements.txt'
|
|
||||||
alias pipi='pip install'
|
|
||||||
alias pipf='pip freeze > requirements.txt'
|
|
||||||
|
|
||||||
# ZeroTier
|
|
||||||
alias zt='sudo zerotier-cli'
|
|
||||||
alias ztstatus='sudo zerotier-cli listnetworks'
|
|
||||||
alias ztinfo='sudo zerotier-cli info'
|
|
||||||
|
|
||||||
# Utilidades
|
|
||||||
alias clima='curl wttr.in/Saltillo'
|
|
||||||
|
|
||||||
# --- IA y ChatGPT ------------------------------------------------------------
|
|
||||||
# Alias para un cliente de ChatGPT en la terminal (ej. 'chatgpt-cli').
|
|
||||||
# Reemplaza 'chatgpt-cli' por el nombre del programa que uses.
|
|
||||||
#
|
|
||||||
# alias chat='chatgpt-cli'
|
|
||||||
# alias chat-q='chatgpt-cli -q' # Para una pregunta rápida sin guardar en el historial.
|
|
||||||
# alias chat-c='chatgpt-cli --continue' # Para continuar la conversación anterior.
|
|
||||||
# alias chat-code='chatgpt-cli --code' # Para preguntas de código.
|
|
||||||
|
|
||||||
# --- Funciones ---------------------------------------------------------------
|
|
||||||
# Funciones personalizadas para tareas comunes.
|
|
||||||
|
|
||||||
# Crea un directorio y se mueve a él.
|
|
||||||
mkcd(){ mkdir -p "$1" && cd "$1"; }
|
|
||||||
|
|
||||||
# Extrae cualquier tipo de archivo comprimido.
|
|
||||||
extract(){
|
|
||||||
[ ! -f "$1" ] && echo "No es un archivo" && return 1
|
|
||||||
case "$1" in
|
|
||||||
*.tar.bz2) tar xjf "$1" ;;
|
|
||||||
*.tar.gz) tar xzf "$1" ;;
|
|
||||||
*.bz2) bunzip2 "$1" ;;
|
|
||||||
*.rar) unrar e "$1" ;;
|
|
||||||
*.gz) gunzip "$1" ;;
|
|
||||||
*.tar) tar xf "$1" ;;
|
|
||||||
*.tbz2) tar xjf "$1" ;;
|
|
||||||
*.tgz) tar xzf "$1" ;;
|
|
||||||
*.zip) unzip "$1" ;;
|
|
||||||
*.Z) uncompress "$1" ;;
|
|
||||||
*.7z) 7z x "$1" ;;
|
|
||||||
*) echo "No se puede extraer '$1': formato no reconocido." ;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
# Mata el proceso que esté usando un puerto específico.
|
|
||||||
killport(){
|
|
||||||
[ $# -eq 0 ] && echo "Uso: killport <puerto>" && return 1
|
|
||||||
local pid=$(lsof -ti:"$1" 2>/dev/null)
|
|
||||||
[ -n "$pid" ] && kill -9 "$pid" && echo "✅ Proceso en puerto $1 eliminado (PID: $pid)" || echo "🤷 No se encontró ningún proceso en el puerto $1"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Inicia un servidor HTTP simple en el directorio actual.
|
|
||||||
serve(){ python -m http.server "${1:-8000}"; }
|
|
||||||
|
|
||||||
# Muestra una lista de todos los alias y funciones personalizadas.
|
|
||||||
zsh_help() {
|
|
||||||
# --- Colores ---
|
|
||||||
local C_DEFAULT="\e[0m"
|
|
||||||
local C_BOLD="\e[1m"
|
|
||||||
local C_TITLE="\e[1;35m" # Bold Magenta
|
|
||||||
local C_SECTION="\e[1;34m" # Bold Blue
|
|
||||||
local C_CMD="\e[0;32m" # Green
|
|
||||||
local C_DESC="\e[0;37m" # White
|
|
||||||
local C_HL="\e[0;33m" # Yellow
|
|
||||||
|
|
||||||
# --- Encabezado ---
|
|
||||||
echo -e "${C_TITLE}╔═════════════════════════════════════════════════════════╗"
|
|
||||||
echo -e "${C_TITLE}║ AYUDA DE LA CONFIGURACIÓN DE ZSH - Comandos ║"
|
|
||||||
echo -e "${C_TITLE}╚═════════════════════════════════════════════════════════╝${C_DEFAULT}"
|
|
||||||
|
|
||||||
# --- Función para imprimir secciones ---
|
|
||||||
print_section() {
|
|
||||||
echo -e "\n${C_SECTION}--- $1 ---${C_DEFAULT}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# --- Función para imprimir comandos ---
|
|
||||||
print_command() {
|
|
||||||
printf " ${C_CMD}%-15s ${C_DESC}%s\n${C_DEFAULT}" "$1" "$2"
|
|
||||||
}
|
|
||||||
|
|
||||||
# --- Alias Generales ---
|
|
||||||
print_section "Alias Generales"
|
|
||||||
print_command "cls" "Limpia la pantalla."
|
|
||||||
print_command "ll" "Lista archivos en formato largo."
|
|
||||||
print_command "la" "Lista todos los archivos (incluyendo ocultos)."
|
|
||||||
print_command "l" "Lista archivos en columnas."
|
|
||||||
print_command ".." "Sube un nivel en el árbol de directorios."
|
|
||||||
print_command "..." "Sube dos niveles."
|
|
||||||
print_command "...." "Sube tres niveles."
|
|
||||||
print_command "ff / nf" "Muestra información del sistema (fastfetch)."
|
|
||||||
|
|
||||||
# --- Gestión de Paquetes (Arch) ---
|
|
||||||
print_section "Gestión de Paquetes (Arch Linux)"
|
|
||||||
print_command "pacu" "Actualiza el sistema (pacman)."
|
|
||||||
print_command "paci" "Instala un paquete (pacman)."
|
|
||||||
print_command "pacr" "Elimina un paquete (pacman)."
|
|
||||||
print_command "pacs" "Busca un paquete (pacman)."
|
|
||||||
print_command "yayu" "Actualiza el sistema (yay)."
|
|
||||||
print_command "yayi" "Instala un paquete (yay)."
|
|
||||||
|
|
||||||
# --- Git ---
|
|
||||||
print_section "Git"
|
|
||||||
print_command "gs" "git status"
|
|
||||||
print_command "ga" "git add"
|
|
||||||
print_command "gc" "git commit"
|
|
||||||
print_command "gcm" "git commit -m '...'"
|
|
||||||
print_command "gac <msg>" "git add . && git commit -m '<msg>'"
|
|
||||||
print_command "gp" "git push"
|
|
||||||
print_command "gl" "git pull"
|
|
||||||
print_command "gd" "git diff"
|
|
||||||
print_command "gb" "git branch"
|
|
||||||
print_command "gco" "git checkout"
|
|
||||||
print_command "gcb" "git checkout -b"
|
|
||||||
print_command "glog" "Muestra un log de commits formateado."
|
|
||||||
|
|
||||||
# --- Docker ---
|
|
||||||
print_section "Docker"
|
|
||||||
print_command "d" "docker"
|
|
||||||
print_command "dc" "docker compose"
|
|
||||||
print_command "dps" "Muestra todos los contenedores."
|
|
||||||
print_command "di" "Muestra todas las imágenes."
|
|
||||||
print_command "dex <id>" "Ejecuta una terminal en un contenedor."
|
|
||||||
print_command "dlog <id>" "Muestra los logs de un contenedor."
|
|
||||||
|
|
||||||
# --- Python ---
|
|
||||||
print_section "Python"
|
|
||||||
print_command "py" "python3"
|
|
||||||
print_command "pip" "pip3"
|
|
||||||
print_command "pipi" "pip install ..."
|
|
||||||
print_command "pir" "pip install -r requirements.txt"
|
|
||||||
print_command "pipf" "pip freeze > requirements.txt"
|
|
||||||
print_command "venv create" "Crea un entorno virtual."
|
|
||||||
print_command "venv on" "Activa el entorno virtual."
|
|
||||||
print_command "venv off" "Desactiva el entorno virtual."
|
|
||||||
print_command "serve [port]" "Inicia un servidor HTTP (puerto 8000 por defecto)."
|
|
||||||
|
|
||||||
# --- Funciones de Utilidad ---
|
|
||||||
print_section "Funciones de Utilidad"
|
|
||||||
print_command "mkcd <dir>" "Crea un directorio y entra en él."
|
|
||||||
print_command "extract <file>" "Extrae cualquier archivo comprimido."
|
|
||||||
print_command "killport <port>" "Mata el proceso que usa un puerto."
|
|
||||||
print_command "clima" "Muestra el clima de Saltillo."
|
|
||||||
print_command "zsh-help" "Muestra esta ayuda."
|
|
||||||
|
|
||||||
# --- Descargas (yt-dlp) ---
|
|
||||||
print_section "Descargas (yt-dlp)"
|
|
||||||
print_command "ytm <url|bús>" "Descarga audio de YouTube como MP3."
|
|
||||||
print_command "ytv <url|bús>" "Descarga video de YouTube como MP4."
|
|
||||||
print_command "ytls" "Lista los últimos 5 archivos descargados."
|
|
||||||
|
|
||||||
# --- Agente SSH ---
|
|
||||||
print_section "Agente SSH"
|
|
||||||
print_command "ssh-list" "Lista las llaves SSH cargadas."
|
|
||||||
print_command "ssh-clear" "Elimina todas las llaves del agente."
|
|
||||||
print_command "ssh-reload" "Recarga todas las llaves SSH."
|
|
||||||
print_command "ssh-github" "Prueba la conexión SSH con GitHub."
|
|
||||||
echo ""
|
|
||||||
}
|
|
||||||
|
|
||||||
# Alias para acceder a la función de ayuda.
|
|
||||||
alias zsh-help='zsh_help'
|
|
||||||
|
|
||||||
# --- yt-dlp (Descargador de vídeos) ------------------------------------------
|
|
||||||
# Funciones mejoradas para descargar audio y video desde YouTube.
|
|
||||||
export YTDLP_DIR="$HOME/Videos/YouTube"
|
|
||||||
mkdir -p "$YTDLP_DIR"/{Music,Videos} 2>/dev/null
|
|
||||||
|
|
||||||
# Descarga audio en formato MP3.
|
|
||||||
ytm() {
|
|
||||||
case "$1" in
|
|
||||||
-h|--help|'')
|
|
||||||
echo "🎵 ytm <URL|búsqueda> - Descarga audio (MP3 320kbps) a $YTDLP_DIR/Music/"
|
|
||||||
echo "Ejemplos:"
|
|
||||||
echo " ytm https://youtu.be/dQw4w9WgXcQ"
|
|
||||||
echo " ytm 'Never Gonna Give You Up'"
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if ! command -v yt-dlp &>/dev/null; then
|
|
||||||
echo "❌ yt-dlp no está instalado. Por favor, instálalo para usar esta función."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
local out="$YTDLP_DIR/Music/%(title).180s.%(ext)s"
|
|
||||||
local opts=(
|
|
||||||
--extract-audio --audio-format mp3 --audio-quality 320K
|
|
||||||
--embed-metadata --embed-thumbnail --convert-thumbnails jpg
|
|
||||||
--no-playlist --retries 10 --fragment-retries 10
|
|
||||||
--user-agent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36"
|
|
||||||
--extractor-args "youtube:player_client=android,web"
|
|
||||||
--progress --newline -o "$out"
|
|
||||||
)
|
|
||||||
|
|
||||||
if [[ "$1" == http* ]]; then
|
|
||||||
echo "📥 Descargando audio..."
|
|
||||||
yt-dlp "${opts[@]}" "$@"
|
|
||||||
else
|
|
||||||
echo "🔍 Buscando: $*"
|
|
||||||
yt-dlp "${opts[@]}" "ytsearch1:$*"
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ $? -eq 0 ] && echo "✅ Audio descargado en: $YTDLP_DIR/Music/" || echo "❌ Falló la descarga de audio."
|
|
||||||
}
|
|
||||||
|
|
||||||
# Descarga vídeo en formato MP4.
|
|
||||||
ytv() {
|
|
||||||
case "$1" in
|
|
||||||
-h|--help|'')
|
|
||||||
echo "🎬 ytv <URL|búsqueda> [calidad] - Descarga video a $YTDLP_DIR/Videos/"
|
|
||||||
echo "Calidades disponibles: 1080, 720, 480 (por defecto: mejor disponible MP4)"
|
|
||||||
echo "Ejemplos:"
|
|
||||||
echo " ytv https://youtu.be/dQw4w9WgXcQ 1080"
|
|
||||||
echo " ytv 'Rick Astley - Never Gonna Give You Up' 720"
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if ! command -v yt-dlp &>/dev/null; then
|
|
||||||
echo "❌ yt-dlp no está instalado. Por favor, instálalo para usar esta función."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
local quality="${2:-best}"
|
|
||||||
local out="$YTDLP_DIR/Videos/%(title).180s.%(ext)s"
|
|
||||||
|
|
||||||
local fmt
|
|
||||||
case "$quality" in
|
|
||||||
1080) fmt='bv*[height<=1080][ext=mp4]+ba/b[height<=1080]' ;;
|
|
||||||
720) fmt='bv*[height<=720][ext=mp4]+ba/b[height<=720]' ;;
|
|
||||||
480) fmt='bv*[height<=480][ext=mp4]+ba/b[height<=480]' ;;
|
|
||||||
*) fmt='bv*[ext=mp4]+ba/b[ext=mp4]/b' ;; # Mejor calidad MP4
|
|
||||||
esac
|
|
||||||
|
|
||||||
local opts=(
|
|
||||||
-f "$fmt" --embed-metadata --embed-thumbnail
|
|
||||||
--embed-subs --sub-langs "es.*,en.*" --convert-thumbnails jpg
|
|
||||||
--no-playlist --retries 10 --fragment-retries 10
|
|
||||||
--user-agent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36"
|
|
||||||
--extractor-args "youtube:player_client=android,web"
|
|
||||||
--progress --newline -o "$out"
|
|
||||||
)
|
|
||||||
|
|
||||||
if [[ "$1" == http* ]]; then
|
|
||||||
echo "📥 Descargando video..."
|
|
||||||
yt-dlp "${opts[@]}" "$1"
|
|
||||||
else
|
|
||||||
echo "🔍 Buscando: $1"
|
|
||||||
yt-dlp "${opts[@]}" "ytsearch1:$1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ $? -eq 0 ] && echo "✅ Video descargado en: $YTDLP_DIR/Videos/" || echo "❌ Falló la descarga de video."
|
|
||||||
}
|
|
||||||
|
|
||||||
# Lista los últimos archivos descargados.
|
|
||||||
ytls() {
|
|
||||||
echo "🎵 Últimos 5 audios descargados en Music:"
|
|
||||||
ls -1t "$YTDLP_DIR/Music" 2>/dev/null | head -5 | sed 's/^/ /' || echo " (vacío)"
|
|
||||||
echo ""
|
|
||||||
echo "🎬 Últimos 5 videos descargados en Videos:"
|
|
||||||
ls -1t "$YTDLP_DIR/Videos" 2>/dev/null | head -5 | sed 's/^/ /' || echo " (vacío)"
|
|
||||||
}
|
|
||||||
|
|
||||||
# --- GNOME Keyring y Agente SSH ----------------------------------------------
|
|
||||||
# Configuración para que GNOME Keyring gestione las claves SSH.
|
|
||||||
if [ -n "$DESKTOP_SESSION" ] && command -v gnome-keyring-daemon >/dev/null 2>&1; then
|
|
||||||
if ! pgrep -u "$USER" gnome-keyring-daemon > /dev/null 2>&1; then
|
|
||||||
eval "$(gnome-keyring-daemon --start --components=pkcs11,secrets,ssh 2>/dev/null)" || true
|
|
||||||
fi
|
|
||||||
export SSH_AUTH_SOCK GPG_AGENT_INFO GNOME_KEYRING_CONTROL GNOME_KEYRING_PID
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Fallback a un agente SSH estándar si GNOME Keyring no está disponible.
|
|
||||||
if [ -z "$SSH_AUTH_SOCK" ]; then
|
|
||||||
export SSH_AGENT_DIR="$HOME/.ssh/agent"
|
|
||||||
mkdir -p "$SSH_AGENT_DIR"
|
|
||||||
SSH_ENV="$SSH_AGENT_DIR/env"
|
|
||||||
|
|
||||||
start_agent() {
|
|
||||||
echo "🔑 Iniciando ssh-agent..."
|
|
||||||
ssh-agent > "$SSH_ENV"
|
|
||||||
chmod 600 "$SSH_ENV"
|
|
||||||
. "$SSH_ENV" > /dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ -f "$SSH_ENV" ]; then
|
|
||||||
. "$SSH_ENV" > /dev/null
|
|
||||||
ps -p $SSH_AGENT_PID > /dev/null 2>&1 || start_agent
|
|
||||||
else
|
|
||||||
start_agent
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d "$HOME/.ssh" ]; then
|
|
||||||
for key in "$HOME/.ssh"/*; do
|
|
||||||
if [ -f "$key" ] && [[ ! "$key" =~ \.pub$ ]] && \
|
|
||||||
[[ ! "$key" =~ known_hosts ]] && [[ ! "$key" =~ authorized_keys ]] && \
|
|
||||||
[[ ! "$key" =~ config ]] && [[ ! "$key" =~ agent ]]; then
|
|
||||||
if ssh-keygen -l -f "$key" &>/dev/null; then
|
|
||||||
local key_fingerprint=$(ssh-keygen -lf "$key" 2>/dev/null | awk '{print $2}')
|
|
||||||
if ! ssh-add -l 2>/dev/null | grep -q "$key_fingerprint"; then
|
|
||||||
if ssh-add "$key" 2>/dev/null; then
|
|
||||||
echo "✅ Llave SSH agregada: $(basename $key)"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Alias para gestionar el agente SSH.
|
|
||||||
alias ssh-list='ssh-add -l'
|
|
||||||
alias ssh-clear='ssh-add -D'
|
|
||||||
alias ssh-reload='
|
|
||||||
ssh-add -D 2>/dev/null
|
|
||||||
for key in ~/.ssh/*; do
|
|
||||||
if [ -f "$key" ] && [[ ! "$key" =~ \.pub$ ]] && ssh-keygen -l -f "$key" &>/dev/null; then
|
|
||||||
ssh-add "$key" 2>/dev/null && echo "✅ $(basename $key)"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
'
|
|
||||||
alias ssh-github='ssh -T git@github.com'
|
|
||||||
|
|
||||||
# --- zoxide ------------------------------------------------------------------
|
|
||||||
# Reemplazo inteligente de `cd` que recuerda los directorios que visitas.
|
|
||||||
if command -v zoxide >/dev/null 2>&1; then
|
|
||||||
eval "$(zoxide init zsh)"
|
|
||||||
alias zz='z -' # Ir al directorio anterior
|
|
||||||
alias zi='zi' # Modo interactivo
|
|
||||||
fi
|
|
||||||
|
|
||||||
# --- Historial de Zsh --------------------------------------------------------
|
|
||||||
# Configuración para un historial de comandos más útil y persistente.
|
|
||||||
HISTSIZE=100000
|
|
||||||
SAVEHIST=100000
|
|
||||||
HISTFILE=~/.zsh_history
|
|
||||||
setopt APPEND_HISTORY SHARE_HISTORY HIST_IGNORE_DUPS HIST_IGNORE_ALL_DUPS HIST_IGNORE_SPACE AUTO_CD EXTENDED_GLOB
|
|
||||||
|
|
||||||
# Deshabilita el bloqueo de la terminal con CTRL+S.
|
|
||||||
stty -ixon 2>/dev/null
|
|
||||||
|
|
||||||
# Habilita colores en `man` y `less`.
|
|
||||||
export LESS='-R'
|
|
||||||
|
|
||||||
# --- Funciones y Configuraciones Locales -------------------------------------
|
|
||||||
# Carga archivos de funciones personalizadas desde ~/.zsh_functions/
|
|
||||||
[ -d "$HOME/.zsh_functions" ] || mkdir -p "$HOME/.zsh_functions"
|
|
||||||
for func_file in "$HOME/.zsh_functions"/*.zsh(N); do
|
|
||||||
source "$func_file"
|
|
||||||
done
|
|
||||||
|
|
||||||
# Carga un archivo de configuración local (~/.zshrc.local) si existe.
|
|
||||||
# Ideal para añadir variables de entorno y configuraciones privadas.
|
|
||||||
[ -f ~/.zshrc.local ] && source ~/.zshrc.local
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
# =============================================================================
|
|
||||||
# .zshrc.local - CONFIGURACIONES LOCALES Y PRIVADAS
|
|
||||||
# =============================================================================
|
|
||||||
#
|
|
||||||
# Este archivo es para tus configuraciones personales, como variables de
|
|
||||||
# entorno, claves de API y alias privados.
|
|
||||||
#
|
|
||||||
# Para usarlo:
|
|
||||||
# 1. Renombra este archivo a `.zshrc.local`.
|
|
||||||
# 2. Descomenta y añade tus claves y configuraciones.
|
|
||||||
#
|
|
||||||
# El archivo `.zshrc` principal cargará este fichero automáticamente si existe,
|
|
||||||
# manteniendo tus datos privados separados de la configuración principal.
|
|
||||||
#
|
|
||||||
# =============================================================================
|
|
||||||
|
|
||||||
# --- Claves de API para Modelos de IA ---
|
|
||||||
# Descomenta las líneas que necesites y añade tus claves.
|
|
||||||
|
|
||||||
# export OPENAI_API_KEY="sk-..."
|
|
||||||
# export GOOGLE_API_KEY="..."
|
|
||||||
# export ANTHROPIC_API_KEY="..."
|
|
||||||
|
|
||||||
# --- Otras Variables de Entorno ---
|
|
||||||
# Ejemplo de una variable para un token de GitHub.
|
|
||||||
# export GITHUB_TOKEN="ghp_..."
|
|
||||||
|
|
||||||
# --- Alias Personales ---
|
|
||||||
# Puedes añadir aquí tus propios alias para no modificar el .zshrc principal.
|
|
||||||
#
|
|
||||||
# alias miservidor="ssh usuario@servidor.com"
|
|
||||||
# alias mi-proyecto="cd ~/Rutas/a/mi/proyecto"
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
# Extra autostart processes
|
|
||||||
# exec-once = uwsm-app -- my-service
|
|
||||||
# Aplicar mi tema de cursor a GTK
|
|
||||||
exec-once = gsettings set org.gnome.desktop.interface cursor-theme 'Bibata-Modern-Ice'
|
|
||||||
|
|
||||||
# Establecer el tema de iconos Tela Nord
|
|
||||||
|
|
||||||
# -----------------------------------------------------
|
|
||||||
# CONFIGURACIÓN DE TEMA DE ICONOS
|
|
||||||
# -----------------------------------------------------
|
|
||||||
exec-once = /usr/lib/xdg-desktop-portal-gtk
|
|
||||||
exec-once = sleep 1
|
|
||||||
exec-once = gsettings set org.gnome.desktop.interface icon-theme 'Tela-nord-dark'
|
|
||||||
@@ -1,113 +0,0 @@
|
|||||||
################################################################################
|
|
||||||
# HYPRLAND BINDINGS #
|
|
||||||
################################################################################
|
|
||||||
# Cómo funcionan los bindings:
|
|
||||||
#
|
|
||||||
# bindd = MODIFICADORES, TECLA, Nombre, exec, comando
|
|
||||||
#
|
|
||||||
# • MODIFICADORES = SUPER | SHIFT | CTRL | ALT (puedes combinarlos)
|
|
||||||
# • TECLA = tecla física: RETURN, C, T, ESCAPE, etc.
|
|
||||||
# • Nombre = etiqueta descriptiva (solo texto)
|
|
||||||
# • exec = ejecuta un comando (lo más usado)
|
|
||||||
#
|
|
||||||
# Notas:
|
|
||||||
# - Cada binding debe tener TODOS los parámetros.
|
|
||||||
# - Si una línea queda incompleta, Hyprland marcará un error.
|
|
||||||
# - Si duplicas una combinación de teclas, Hyprland usa la última.
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------
|
|
||||||
# Variables (solo comodidad)
|
|
||||||
# ------------------------------
|
|
||||||
$terminal = uwsm-app -- xdg-terminal-exec
|
|
||||||
$browser = omarchy-launch-browser
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# APPLICATION BINDS #
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
# Terminal con cwd actual (SUPER + ENTER)
|
|
||||||
bindd = SUPER, RETURN, Terminal, exec, $terminal --dir="$(omarchy-cmd-terminal-cwd)"
|
|
||||||
|
|
||||||
# Explorador de archivos (SUPER + E)
|
|
||||||
bindd = SUPER, E, File Manager, exec, uwsm-app -- nautilus --new-window
|
|
||||||
|
|
||||||
# Navegador normal (SUPER + SHIFT + B)
|
|
||||||
bindd = SUPER SHIFT, B, Browser, exec, $browser
|
|
||||||
|
|
||||||
# Navegador privado (SUPER + SHIFT + ALT + B)
|
|
||||||
bindd = SUPER SHIFT ALT, B, Browser Private, exec, $browser --private
|
|
||||||
|
|
||||||
# Spotify (SUPER + SHIFT + M)
|
|
||||||
bindd = SUPER SHIFT, M, Music, exec, omarchy-launch-or-focus spotify
|
|
||||||
|
|
||||||
# Editor (omarchy) (SUPER + SHIFT + N)
|
|
||||||
bindd = SUPER SHIFT, N, Editor, exec, omarchy-launch-editor
|
|
||||||
|
|
||||||
# Monitor del sistema tipo Windows (CTRL + SHIFT + ESCAPE)
|
|
||||||
bindd = CTRL SHIFT, ESCAPE, Activity Monitor, exec, $terminal -e btop
|
|
||||||
|
|
||||||
# Lazydocker (SUPER + SHIFT + D)
|
|
||||||
bindd = SUPER SHIFT, D, Docker, exec, $terminal -e lazydocker
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# WEB APP BINDINGS #
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
# ChatGPT (SUPER + SHIFT + A)
|
|
||||||
bindd = SUPER SHIFT, A, ChatGPT, exec, omarchy-launch-webapp "https://chatgpt.com"
|
|
||||||
|
|
||||||
# Grok (SUPER + SHIFT + G)
|
|
||||||
bindd = SUPER SHIFT, G, Grok, exec, omarchy-launch-webapp "https://grok.com"
|
|
||||||
|
|
||||||
# Google Calendar (SUPER + SHIFT + C)
|
|
||||||
bindd = SUPER SHIFT, C, Calendar, exec, omarchy-launch-webapp "https://calendar.google.com/"
|
|
||||||
|
|
||||||
# Gmail (SUPER + SHIFT + E)
|
|
||||||
bindd = SUPER SHIFT, E, Email, exec, omarchy-launch-webapp "https://mail.google.com/"
|
|
||||||
|
|
||||||
# YouTube (SUPER + SHIFT + Y)
|
|
||||||
bindd = SUPER SHIFT, Y, YouTube, exec, omarchy-launch-webapp "https://youtube.com/"
|
|
||||||
|
|
||||||
# WhatsApp Web (SUPER + SHIFT + W)
|
|
||||||
bindd = SUPER SHIFT, W, WhatsApp, exec, omarchy-launch-or-focus-webapp WhatsApp "https://web.whatsapp.com/"
|
|
||||||
|
|
||||||
# Google Photos (SUPER + SHIFT + P)
|
|
||||||
bindd = SUPER SHIFT, P, Google Photos, exec, omarchy-launch-or-focus-webapp "Google Photos" "https://photos.google.com/"
|
|
||||||
|
|
||||||
# Jules (SUPER + SHIFT + J)
|
|
||||||
bindd = SUPER SHIFT, J, Jules, exec, omarchy-launch-webapp "https://jules.google.com/"
|
|
||||||
|
|
||||||
# Outlook (SUPER + ALT + O)
|
|
||||||
bindd = SUPER ALT, O, Outlook, exec, omarchy-launch-webapp "https://outlook.com/"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# APPS NATIVAS #
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
# Telegram Desktop (SUPER + SHIFT + T)
|
|
||||||
bindd = SUPER SHIFT, T, Telegram, exec, omarchy-launch-or-focus "^TelegramDesktop$" "/usr/bin/Telegram"
|
|
||||||
|
|
||||||
# VS Code (SUPER + SHIFT + V)
|
|
||||||
bindd = SUPER SHIFT, V, VSCode, exec, uwsm-app -- code
|
|
||||||
|
|
||||||
# Antigravity (SUPER + ALT + V)
|
|
||||||
bindd = SUPER ALT, V, Antigravity, exec, /home/marco/.antigravity/antigravity --password-store="gnome-libsecret"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# OPTIONAL OVERRIDES #
|
|
||||||
################################################################################
|
|
||||||
# Ejemplo: poner Omarchy Menu en SUPER + SPACE
|
|
||||||
# unbind = SUPER, SPACE
|
|
||||||
# bindd = SUPER, SPACE, Omarchy Menu, exec, omarchy-menu
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# Extra env variables
|
|
||||||
# env = MY_GLOBAL_ENV,setting
|
|
||||||
# Mi tema de cursor personalizado
|
|
||||||
env = HYPRCURSOR_THEME,Bibata-Modern-Ice
|
|
||||||
env = HYPRCURSOR_SIZE,24
|
|
||||||
env = XCURSOR_THEME,Bibata-Modern-Ice
|
|
||||||
env = XCURSOR_SIZE,24
|
|
||||||
env = OMARCHY_SCREENSHOT_DIR,$HOME/Pictures/Screenshots
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
general {
|
|
||||||
lock_cmd = omarchy-lock-screen # lock screen and 1password
|
|
||||||
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
|
||||||
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
|
||||||
inhibit_sleep = 3 # wait until screen is locked
|
|
||||||
}
|
|
||||||
|
|
||||||
listener {
|
|
||||||
timeout = 150 # 2.5min
|
|
||||||
on-timeout = pidof hyprlock || omarchy-launch-screensaver # start screensaver (if we haven't locked already)
|
|
||||||
}
|
|
||||||
|
|
||||||
listener {
|
|
||||||
timeout = 300 # 5min
|
|
||||||
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
|
||||||
}
|
|
||||||
|
|
||||||
listener {
|
|
||||||
timeout = 330 # 5.5min
|
|
||||||
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
|
||||||
on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
# Learn how to configure Hyprland: https://wiki.hyprland.org/Configuring/
|
|
||||||
|
|
||||||
# Use defaults Omarchy defaults (but don't edit these directly!)
|
|
||||||
source = ~/.local/share/omarchy/default/hypr/autostart.conf
|
|
||||||
source = ~/.local/share/omarchy/default/hypr/bindings/media.conf
|
|
||||||
source = ~/.local/share/omarchy/default/hypr/bindings/clipboard.conf
|
|
||||||
source = ~/.local/share/omarchy/default/hypr/bindings/tiling-v2.conf
|
|
||||||
source = ~/.local/share/omarchy/default/hypr/bindings/utilities.conf
|
|
||||||
source = ~/.local/share/omarchy/default/hypr/envs.conf
|
|
||||||
source = ~/.local/share/omarchy/default/hypr/looknfeel.conf
|
|
||||||
source = ~/.local/share/omarchy/default/hypr/input.conf
|
|
||||||
source = ~/.local/share/omarchy/default/hypr/windows.conf
|
|
||||||
source = ~/.config/omarchy/current/theme/hyprland.conf
|
|
||||||
|
|
||||||
# Change your own setup in these files (and overwrite any settings from defaults!)
|
|
||||||
source = ~/.config/hypr/monitors.conf
|
|
||||||
source = ~/.config/hypr/input.conf
|
|
||||||
source = ~/.config/hypr/bindings.conf
|
|
||||||
source = ~/.config/hypr/envs.conf
|
|
||||||
source = ~/.config/hypr/looknfeel.conf
|
|
||||||
source = ~/.config/hypr/autostart.conf
|
|
||||||
|
|
||||||
# Add any other personal Hyprland configuration below
|
|
||||||
# windowrule = workspace 5, class:qemu
|
|
||||||
env = LIBVA_DRIVER_NAME,iHD
|
|
||||||
env = MOZ_ENABLE_WAYLAND,1
|
|
||||||
|
|
||||||
#Ajustes de escalado para aplicaciones GTK/QT
|
|
||||||
env = GDK_SCALE,1
|
|
||||||
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
|
||||||
env = QT_QPA_PLATFORM,wayland;xcb
|
|
||||||
|
|
||||||
|
|
||||||
# CORRECCIÓN PARA APPS GIGANTES (Spotify, VSCode, Discord)
|
|
||||||
xwayland {
|
|
||||||
force_zero_scaling = true
|
|
||||||
}
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
source = ~/.config/omarchy/current/theme/hyprlock.conf
|
|
||||||
|
|
||||||
background {
|
|
||||||
monitor =
|
|
||||||
color = $color
|
|
||||||
path = ~/.config/omarchy/current/background
|
|
||||||
blur_passes = 3
|
|
||||||
}
|
|
||||||
|
|
||||||
animations {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
input-field {
|
|
||||||
monitor =
|
|
||||||
size = 650, 100
|
|
||||||
position = 0, 0
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
|
|
||||||
inner_color = $inner_color
|
|
||||||
outer_color = $outer_color
|
|
||||||
outline_thickness = 4
|
|
||||||
|
|
||||||
font_family = MesloLGLDZ Nerd Font
|
|
||||||
font_color = $font_color
|
|
||||||
|
|
||||||
placeholder_text = Enter Password
|
|
||||||
check_color = $check_color
|
|
||||||
fail_text = <i>$FAIL ($ATTEMPTS)</i>
|
|
||||||
|
|
||||||
rounding = 0
|
|
||||||
shadow_passes = 0
|
|
||||||
fade_on_empty = false
|
|
||||||
}
|
|
||||||
|
|
||||||
auth {
|
|
||||||
fingerprint:enabled = true
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# Makes hyprsunset do nothing to the screen by default
|
|
||||||
# Without this, the default applies some tint to the monitor
|
|
||||||
profile {
|
|
||||||
time = 07:00
|
|
||||||
identity = true
|
|
||||||
}
|
|
||||||
|
|
||||||
# Enable auto switch to nightlight:
|
|
||||||
# profile {
|
|
||||||
# time = 20:00
|
|
||||||
# temperature = 4000
|
|
||||||
# }
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
# ================================
|
|
||||||
# 🧭 Hyprland input configuration
|
|
||||||
# ================================
|
|
||||||
input {
|
|
||||||
kb_layout = es
|
|
||||||
kb_model = pc105
|
|
||||||
kb_options =
|
|
||||||
repeat_rate = 40
|
|
||||||
repeat_delay = 600
|
|
||||||
numlock_by_default = true
|
|
||||||
|
|
||||||
touchpad {
|
|
||||||
clickfinger_behavior = true
|
|
||||||
scroll_factor = 0.4
|
|
||||||
# natural_scroll = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Scroll sensitivity per app
|
|
||||||
windowrule = scrolltouchpad 1.5, class:(Alacritty|kitty)
|
|
||||||
windowrule = scrolltouchpad 0.2, class:com.mitchellh.ghostty
|
|
||||||
|
|
||||||
# Three-finger gesture: switch workspace
|
|
||||||
gesture = 3, horizontal, workspace
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
# Change the default Omarchy look'n'feel
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#general
|
|
||||||
general {
|
|
||||||
# No gaps between windows or borders
|
|
||||||
# gaps_in = 0
|
|
||||||
# gaps_out = 0
|
|
||||||
# border_size = 0
|
|
||||||
|
|
||||||
# Use master layout instead of dwindle
|
|
||||||
# layout = master
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
|
||||||
decoration {
|
|
||||||
# Use round window corners
|
|
||||||
# rounding = 8
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Dwindle-Layout/
|
|
||||||
dwindle {
|
|
||||||
# Avoid overly wide single-window layouts on wide screens
|
|
||||||
# single_window_aspect_ratio = 1 1
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# ---------------------------------------------------------
|
|
||||||
# CONFIGURACIÓN ESPECÍFICA: Laptop + Huawei Externo
|
|
||||||
# ---------------------------------------------------------
|
|
||||||
|
|
||||||
# 1. Laptop (eDP-1) - Pantalla Surface/HiDPI
|
|
||||||
monitor = eDP-1, 3000x2000@60, 0x0, 2
|
|
||||||
|
|
||||||
# 2. Monitor Externo Huawei (DP-2)
|
|
||||||
# CAMBIO: Usamos 'preferred' para que detecte solo 1920x1080@75Hz
|
|
||||||
# Posición: 1500x0 (calculado: 3000/2 = 1500)
|
|
||||||
monitor = DP-2, preferred, 1500x0, 1
|
|
||||||
|
|
||||||
# 3. Fallback (Otros monitores)
|
|
||||||
monitor = , preferred, auto, 1
|
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
|
||||||
# Limpieza de variables antiguas
|
|
||||||
# ---------------------------------------------------------
|
|
||||||
# Asegúrate de NO tener "env = GDK_SCALE,2" descomentado en otro lado
|
|
||||||
# para evitar problemas de tamaño en el monitor externo.
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/amber.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/arctic-blue.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/autumn-leaves.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/blood-orange.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/blue-light-reduce.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/brightness-boost.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/cel-shade.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/cherry-blossom.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/chromatic-shift.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/color-blind-deuteranopia.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/color-invert.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/color-pop.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/comic-book.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/cool-tone.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/crt-breakdown.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/crt-glitch.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/crunch-mode.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/cyberpunk-neon.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/cyberpunk.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/depth-of-field.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/desaturate.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/desert-sand.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/dream.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/duotone.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/film-grain.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/forest-green.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/frost.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/gameboy.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/genesis.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/glitch-wave.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/golden-hour.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/grayscale.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/high-contrast.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/holo-interface.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/hue-shift-180.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/hue-shift-90.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/infrared.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/liquid.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/low-light.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/midnight-purple.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/monochrome-amber.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/monochrome-blue.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/monochrome-cyan.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/monochrome-green.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/monochrome-lavender.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/monochrome-mint.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/monochrome-orange.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/monochrome-peach.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/monochrome-pink.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/monochrome-purple.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/monochrome-red.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/monochrome-teal.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/monochrome-yellow.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/negative.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/night-vision.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/noir.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/ocean.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/oil-paint.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/old-crt.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/posterize.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/power-crunch.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/protanopia.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/purple-haze.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/retro-glow.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/retro-vhs.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/saturate.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/scanlines.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/sepia.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/soft-contrast.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/solarize.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/sunset.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/system-meltdown.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/technicolor.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/thermal.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/tritanopia.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/tritone.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/underwater.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/vaporwave.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/vibe-00s.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/vibe-40s.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/vibe-50s.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/vibe-60s.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/vibe-70s.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/vibe-80s.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/vibe-90s.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/vintage-film.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/vintage.glsl
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/aether/shaders/warm-tone.glsl
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user