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 diff --git a/modules/ssh-keyring.sh b/modules/ssh-keyring.sh index 2c9d5af..f2a0798 100755 --- a/modules/ssh-keyring.sh +++ b/modules/ssh-keyring.sh @@ -46,6 +46,12 @@ EOF local keyring_socket="/run/user/${target_uid}/keyring/ssh" + # 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" + if [[ ! -S "$keyring_socket" ]]; then log_error "No se encontró el socket de GNOME Keyring en la ruta esperada: ${keyring_socket}" log_warning "Esto usualmente significa que el servicio no se ha iniciado correctamente con tu sesión de escritorio."