Refactor mouse cursor installation for cleaner setup and error handling; update file permissions for several scripts.

This commit is contained in:
Marco Gallegos
2025-11-14 20:19:47 -06:00
parent c620db69c2
commit f2e3fde219
4 changed files with 9 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ run_module_main() {
# --- Definición de Paquetes ---
local PACMAN_BASE=(
git curl wget base-devel unzip neofetch htop fastfetch btop
git curl wget base-devel unzip htop fastfetch btop
vim nano tmux xdg-utils xdg-user-dirs stow
)
local PACMAN_MULTIMEDIA=(

0
modules/disk-format.sh Normal file → Executable file
View File

0
modules/hyprland-config.sh Normal file → Executable file
View File

View File

@@ -26,10 +26,15 @@ install_mouse_cursor() {
if curl -sL "$DOWNLOAD_URL" -o "${TEMP_DIR}/${ARCHIVE_NAME}"; then
tar -xJf "${TEMP_DIR}/${ARCHIVE_NAME}" -C "${TEMP_DIR}"
mkdir -p "$HOME/.icons"
# Mover el contenido extraído al directorio de iconos
# Asegurar una instalación limpia eliminando la versión anterior si existe
if [ -d "${TEMP_DIR}/${CURSOR_THEME}" ]; then
mv "${TEMP_DIR}/${CURSOR_THEME}" "$HOME/.icons/"
log_success "Tema de cursor instalado en ~/.icons/"
rm -rf "$HOME/.icons/${CURSOR_THEME}" # Eliminar destino para evitar conflictos
if mv "${TEMP_DIR}/${CURSOR_THEME}" "$HOME/.icons/"; then
log_success "Tema de cursor instalado en ~/.icons/"
else
log_error "No se pudo mover el tema del cursor a ~/.icons/"
return 1
fi
else
log_error "El directorio del tema '${CURSOR_THEME}' no se encontró en el archivo."
return 1