From a2c74e671d70340024554cd9f2e890facc6ef702 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 19 Nov 2025 09:52:16 -0600 Subject: [PATCH 1/3] =?UTF-8?q?Fix:=20Corregido=20el=20m=C3=B3dulo=20SSH?= =?UTF-8?q?=20Keyring=20y=20Mejoras=20Generales=20(#11)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add dev tools, AI aliases, and improve zshrc documentation This commit introduces several new features and improvements: - **Adds Development Tools to `apps.sh`:** The `apps.sh` module now installs essential development tools, including `python`, `pip`, `nodejs`, `npm`, `uv`, and `nvm`. - **Implements `.zshrc.local` for Private Variables:** - A `.zshrc.local.example` file has been added to serve as a template for users to securely store their private environment variables, such as API keys. - The main `.zshrc` file now sources `.zshrc.local` if it exists. - **Adds AI Aliases to `.zshrc`:** A new section has been added to `.zshrc` with example aliases for interacting with command-line AI tools. - **Improves `.zshrc` Documentation:** The `.zshrc` file has been thoroughly documented with comments in Spanish, explaining the purpose of each section. The title has also been updated and professionalized. - **Fixes a Regression:** This commit restores the `ytm`, `ytv`, `ytls`, and SSH agent functions in `.zshrc` that were accidentally removed in a previous step. * feat: improve keyring UX and icon manager flow This commit introduces two main improvements to the user experience: 1. **Refactors the Icon Manager for Non-Interactive Installation:** - The `icon_manager.sh` module can now be run in a non-interactive mode. - The "Install All" process has been updated to use this non-interactive mode, which installs the default icon theme without pausing the script or requiring user input. 2. **Improves the GNOME Keyring Workflow:** - The script no longer errors out if the GNOME Keyring agent is not immediately available after installation. - Instead, a clear summary message is now displayed at the end of the "Install All" process, instructing the user to log out and back in, and then run the SSH key synchronization module separately. This provides a much smoother and more intuitive user experience. * fix: improve GNOME Keyring socket detection This commit fixes a bug in the `ssh-keyring.sh` module where the GNOME Keyring socket could not be found after a system reboot. The script now explicitly determines the user's UID to construct the correct path to the socket, instead of relying on the potentially unreliable `$UID` environment variable. This makes the socket detection more robust, especially when the script is run with `sudo`. * fix: improve GNOME Keyring socket detection This commit fixes a bug in the `ssh-keyring.sh` module where the GNOME Keyring socket could not be found after a system reboot. The script now uses the `logname` command to reliably determine the user's UID and construct the correct path to the socket, instead of relying on environment variables that can be unreliable when the script is run with `sudo`. This makes the socket detection more robust. * feat: Añadir nuevas herramientas para desarrolladores Se han añadido los siguientes paquetes al módulo `apps.sh`: - python - pip - nodejs - npm - uv - nvm (a través de una función de instalación) Esto proporciona un entorno de desarrollo más completo desde el principio. --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: Marco Gallegos --- modules/ssh-keyring.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/modules/ssh-keyring.sh b/modules/ssh-keyring.sh index 2c218e5..6186ed5 100755 --- a/modules/ssh-keyring.sh +++ b/modules/ssh-keyring.sh @@ -37,13 +37,14 @@ sync_ssh_keyring() { SSH_AUTH_SOCK=/run/user/$UID/keyring/ssh EOF - local keyring_eval="" - if keyring_eval="$(gnome-keyring-daemon --start --components=ssh,secrets 2>/dev/null)"; then - eval "$keyring_eval" - log_success "GNOME Keyring iniciado." - else - log_info "GNOME Keyring ya estaba en ejecución." - fi + # No intentamos iniciar el daemon. Después de un reinicio de sesión, ya debería estar activo. + log_info "Buscando el socket del agente de GNOME Keyring..." + + # Obtenemos el UID del usuario dueño del directorio HOME. Este método es más fiable. + local target_uid + target_uid=$(stat -c '%u' "$HOME") + + local keyring_socket="/run/user/${target_uid}/keyring/ssh" local target_uid target_uid=$(id -u "$(logname)") @@ -61,6 +62,8 @@ EOF return 1 fi fi + + log_success "Socket de GNOME Keyring encontrado en: ${keyring_socket}" export SSH_AUTH_SOCK="$keyring_socket" local ssh_dir="${HOME}/.ssh" From ff2ec8b5490e98e425b3fb6221bf017cda5f4268 Mon Sep 17 00:00:00 2001 From: Marco Gallegos Date: Wed, 19 Nov 2025 09:52:47 -0600 Subject: [PATCH 2/3] Test (#12) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add dev tools, AI aliases, and improve zshrc documentation This commit introduces several new features and improvements: - **Adds Development Tools to `apps.sh`:** The `apps.sh` module now installs essential development tools, including `python`, `pip`, `nodejs`, `npm`, `uv`, and `nvm`. - **Implements `.zshrc.local` for Private Variables:** - A `.zshrc.local.example` file has been added to serve as a template for users to securely store their private environment variables, such as API keys. - The main `.zshrc` file now sources `.zshrc.local` if it exists. - **Adds AI Aliases to `.zshrc`:** A new section has been added to `.zshrc` with example aliases for interacting with command-line AI tools. - **Improves `.zshrc` Documentation:** The `.zshrc` file has been thoroughly documented with comments in Spanish, explaining the purpose of each section. The title has also been updated and professionalized. - **Fixes a Regression:** This commit restores the `ytm`, `ytv`, `ytls`, and SSH agent functions in `.zshrc` that were accidentally removed in a previous step. * feat: improve keyring UX and icon manager flow This commit introduces two main improvements to the user experience: 1. **Refactors the Icon Manager for Non-Interactive Installation:** - The `icon_manager.sh` module can now be run in a non-interactive mode. - The "Install All" process has been updated to use this non-interactive mode, which installs the default icon theme without pausing the script or requiring user input. 2. **Improves the GNOME Keyring Workflow:** - The script no longer errors out if the GNOME Keyring agent is not immediately available after installation. - Instead, a clear summary message is now displayed at the end of the "Install All" process, instructing the user to log out and back in, and then run the SSH key synchronization module separately. This provides a much smoother and more intuitive user experience. * fix: improve GNOME Keyring socket detection This commit fixes a bug in the `ssh-keyring.sh` module where the GNOME Keyring socket could not be found after a system reboot. The script now explicitly determines the user's UID to construct the correct path to the socket, instead of relying on the potentially unreliable `$UID` environment variable. This makes the socket detection more robust, especially when the script is run with `sudo`. * fix: improve GNOME Keyring socket detection This commit fixes a bug in the `ssh-keyring.sh` module where the GNOME Keyring socket could not be found after a system reboot. The script now uses the `logname` command to reliably determine the user's UID and construct the correct path to the socket, instead of relying on environment variables that can be unreliable when the script is run with `sudo`. This makes the socket detection more robust. * feat: Añadir nuevas herramientas para desarrolladores Se han añadido los siguientes paquetes al módulo `apps.sh`: - python - pip - nodejs - npm - uv - nvm (a través de una función de instalación) Esto proporciona un entorno de desarrollo más completo desde el principio. --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> From f338df2a0ea84966a65fac8369d7f90f3febd039 Mon Sep 17 00:00:00 2001 From: Marco Gallegos Date: Wed, 19 Nov 2025 10:53:34 -0600 Subject: [PATCH 3/3] Ajustes bindings y monitores --- hypr_config/autostart.conf | 2 +- hypr_config/hyprland.conf | 11 +++++++++++ hypr_config/monitors.conf | 31 ++++++++++++++++--------------- 3 files changed, 28 insertions(+), 16 deletions(-) diff --git a/hypr_config/autostart.conf b/hypr_config/autostart.conf index fe5a809..ddda7aa 100644 --- a/hypr_config/autostart.conf +++ b/hypr_config/autostart.conf @@ -10,4 +10,4 @@ exec-once = gsettings set org.gnome.desktop.interface cursor-theme 'Bibata-Moder # ----------------------------------------------------- exec-once = /usr/lib/xdg-desktop-portal-gtk exec-once = sleep 1 -exec-once = gsettings set org.gnome.desktop.interface icon-theme 'Papirus-Dark' +exec-once = gsettings set org.gnome.desktop.interface icon-theme 'Tela-nord-dark' diff --git a/hypr_config/hyprland.conf b/hypr_config/hyprland.conf index df4d125..dbbed95 100644 --- a/hypr_config/hyprland.conf +++ b/hypr_config/hyprland.conf @@ -24,3 +24,14 @@ source = ~/.config/hypr/autostart.conf # 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 +} \ No newline at end of file diff --git a/hypr_config/monitors.conf b/hypr_config/monitors.conf index 2f1f0db..85de4bd 100644 --- a/hypr_config/monitors.conf +++ b/hypr_config/monitors.conf @@ -1,19 +1,20 @@ -# See https://wiki.hyprland.org/Configuring/Monitors/ -# List current monitors and resolutions possible: hyprctl monitors -# Format: monitor = [port], resolution, position, scale +# --------------------------------------------------------- +# CONFIGURACIÓN ESPECÍFICA: Laptop + Huawei Externo +# --------------------------------------------------------- -# Optimized for retina-class 2x displays, like 13" 2.8K, 27" 5K, 32" 6K. -env = GDK_SCALE,2 -monitor=,preferred,auto,auto +# 1. Laptop (eDP-1) - Pantalla Surface/HiDPI +monitor = eDP-1, 3000x2000@60, 0x0, 2 -# Good compromise for 27" or 32" 4K monitors (but fractional!) -# env = GDK_SCALE,1.75 -# monitor=,preferred,auto,1.666667 +# 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 -# Straight 1x setup for low-resolution displays like 1080p or 1440p -# env = GDK_SCALE,1 -# monitor=,preferred,auto,1 +# 3. Fallback (Otros monitores) +monitor = , preferred, auto, 1 -# Example for Framework 13 w/ 6K XDR Apple display -# monitor = DP-5, 6016x3384@60, auto, 2 -# monitor = eDP-1, 2880x1920@120, auto, 2 +# --------------------------------------------------------- +# 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. \ No newline at end of file