mirror of
https://github.com/marcogll/omarchy_setup.git
synced 2026-01-13 13:25:16 +00:00
Refactor mouse cursor installation for cleaner setup and error handling; update file permissions for several scripts.
This commit is contained in:
@@ -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
0
modules/disk-format.sh
Normal file → Executable file
0
modules/hyprland-config.sh
Normal file → Executable file
0
modules/hyprland-config.sh
Normal file → Executable 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/"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user