From 71679a6f1542b1495ddab5d933580802a50be2ed Mon Sep 17 00:00:00 2001 From: Marco Gallegos Date: Sat, 6 Dec 2025 17:45:10 -0600 Subject: [PATCH] refactor(hypr_config): Improve bindings documentation and organization; update font in hyprlock.conf --- hypr_config/bindings.conf | 124 +++++++++++++++++++++++++++++++------- hypr_config/envs.conf | 1 + hypr_config/hyprlock.conf | 2 +- hypr_config/monitors.conf | 2 +- modules/apps.sh | 7 ++- 5 files changed, 111 insertions(+), 25 deletions(-) diff --git a/hypr_config/bindings.conf b/hypr_config/bindings.conf index 5aafb8e..32e8a54 100644 --- a/hypr_config/bindings.conf +++ b/hypr_config/bindings.conf @@ -1,33 +1,113 @@ -# Application bindings +################################################################################ +# 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 -bindd = SUPER, RETURN, Terminal, exec, $terminal --dir="$(omarchy-cmd-terminal-cwd)" -bindd = SUPER, E, File manager, exec, uwsm-app -- nautilus --new-window -bindd = SUPER SHIFT, B, Browser, exec, $browser -bindd = SUPER SHIFT ALT, B, Browser (private), exec, $browser --private -bindd = SUPER SHIFT, M, Music, exec, omarchy-launch-or-focus spotify -bindd = SUPER SHIFT, N, Editor, exec, omarchy-launch-editor -bindd = SUPER SHIFT, T, Activity, exec, $terminal -e btop -bindd = SUPER SHIFT, D, Docker, exec, $terminal -e lazydocker -bindd = SUPER SHIFT, G, Signal, exec, omarchy-launch-or-focus signal "uwsm-app -- signal-desktop" -bindd = SUPER SHIFT, O, Obsidian, exec, omarchy-launch-or-focus "^obsidian$" "uwsm-app -- obsidian -disable-gpu --enable-wayland-ime" -bindd = SUPER SHIFT, W, Typora, exec, uwsm-app -- typora --enable-wayland-ime -bindd = SUPER SHIFT, SLASH, Passwords, exec, uwsm-app -- 1password -# If your web app url contains #, type it as ## to prevent hyprland treating it as a comment + +################################################################################ +# 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" -bindd = SUPER SHIFT ALT, A, Grok, exec, omarchy-launch-webapp "https://grok.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/" -bindd = SUPER SHIFT ALT, G, WhatsApp, exec, omarchy-launch-or-focus-webapp WhatsApp "https://web.whatsapp.com/" -bindd = SUPER SHIFT CTRL, G, Google Messages, exec, omarchy-launch-or-focus-webapp "Google Messages" "https://messages.google.com/web/conversations" -bindd = SUPER SHIFT, P, Google Photos, exec, omarchy-launch-or-focus-webapp "Google Photos" "https://photos.google.com/" -bindd = SUPER SHIFT, X, X, exec, omarchy-launch-webapp "https://x.com/" -bindd = SUPER SHIFT ALT, X, X Post, exec, omarchy-launch-webapp "https://x.com/compose/post" -# Overwrite existing bindings, like putting Omarchy Menu on Super + Space +# 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 +# bindd = SUPER, SPACE, Omarchy Menu, exec, omarchy-menu +################################################################################ + diff --git a/hypr_config/envs.conf b/hypr_config/envs.conf index 42528a1..7f6d464 100644 --- a/hypr_config/envs.conf +++ b/hypr_config/envs.conf @@ -5,3 +5,4 @@ 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 diff --git a/hypr_config/hyprlock.conf b/hypr_config/hyprlock.conf index 063d793..4778146 100644 --- a/hypr_config/hyprlock.conf +++ b/hypr_config/hyprlock.conf @@ -22,7 +22,7 @@ input-field { outer_color = $outer_color outline_thickness = 4 - font_family = CaskaydiaMono Nerd Font Propo + font_family = MesloLGLDZ Nerd Font font_color = $font_color placeholder_text = Enter Password 󰈷 diff --git a/hypr_config/monitors.conf b/hypr_config/monitors.conf index 85de4bd..0244130 100644 --- a/hypr_config/monitors.conf +++ b/hypr_config/monitors.conf @@ -17,4 +17,4 @@ 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. \ No newline at end of file +# para evitar problemas de tamaño en el monitor externo. diff --git a/modules/apps.sh b/modules/apps.sh index aa28b7b..a38a091 100755 --- a/modules/apps.sh +++ b/modules/apps.sh @@ -342,7 +342,12 @@ EOF if command_exists teamviewer; then log_info "Habilitando servicio TeamViewer..." sudo systemctl enable --now teamviewerd.service 2>/dev/null || true - log_success "TeamViewer daemon habilitado e iniciado" + if sudo teamviewer --daemon start >/dev/null 2>&1; then + log_success "TeamViewer daemon iniciado" + else + log_warning "No se pudo iniciar el daemon de TeamViewer con 'teamviewer --daemon start'" + fi + sudo teamviewer --daemon enable >/dev/null 2>&1 || true fi if command_exists tlp; then