# Configuración de Hyprland para Multi-Monitor Support en Ax-Shell

# Configurar monitors
monitor=DP-1,1920x1080@60,0x0,1
monitor=HDMI-A-1,1920x1080@60,1920x0,1

# Configurar workspaces por monitor
# Monitor 0: Workspaces 1-10
workspace=1,monitor:DP-1
workspace=2,monitor:DP-1
workspace=3,monitor:DP-1
workspace=4,monitor:DP-1
workspace=5,monitor:DP-1
workspace=6,monitor:DP-1
workspace=7,monitor:DP-1
workspace=8,monitor:DP-1
workspace=9,monitor:DP-1
workspace=10,monitor:DP-1

# Monitor 1: Workspaces 11-20
workspace=11,monitor:HDMI-A-1
workspace=12,monitor:HDMI-A-1
workspace=13,monitor:HDMI-A-1
workspace=14,monitor:HDMI-A-1
workspace=15,monitor:HDMI-A-1
workspace=16,monitor:HDMI-A-1
workspace=17,monitor:HDMI-A-1
workspace=18,monitor:HDMI-A-1
workspace=19,monitor:HDMI-A-1
workspace=20,monitor:HDMI-A-1

# Keybinds globales para Ax-Shell multi-monitor
# Estos comandos se ejecutan en el monitor con foco actual

# Abrir launcher en monitor con foco
bind = SUPER, SPACE, exec, python ~/.config/Ax-Shell/scripts/toggle_launcher.py

# Abrir overview en monitor con foco
bind = SUPER, TAB, exec, python ~/.config/Ax-Shell/scripts/toggle_overview.py

# Navegar entre workspaces del monitor actual
bind = SUPER, 1, workspace, 1
bind = SUPER, 2, workspace, 2
bind = SUPER, 3, workspace, 3
bind = SUPER, 4, workspace, 4
bind = SUPER, 5, workspace, 5
bind = SUPER, 6, workspace, 6
bind = SUPER, 7, workspace, 7
bind = SUPER, 8, workspace, 8
bind = SUPER, 9, workspace, 9
bind = SUPER, 0, workspace, 10

# Mover ventanas a workspaces del monitor actual
bind = SUPER SHIFT, 1, movetoworkspacesilent, 1
bind = SUPER SHIFT, 2, movetoworkspacesilent, 2
bind = SUPER SHIFT, 3, movetoworkspacesilent, 3
bind = SUPER SHIFT, 4, movetoworkspacesilent, 4
bind = SUPER SHIFT, 5, movetoworkspacesilent, 5
bind = SUPER SHIFT, 6, movetoworkspacesilent, 6
bind = SUPER SHIFT, 7, movetoworkspacesilent, 7
bind = SUPER SHIFT, 8, movetoworkspacesilent, 8
bind = SUPER SHIFT, 9, movetoworkspacesilent, 9
bind = SUPER SHIFT, 0, movetoworkspacesilent, 10

# Cambiar entre monitores
bind = SUPER, bracketleft, focusmonitor, DP-1
bind = SUPER, bracketright, focusmonitor, HDMI-A-1

# Mover ventana al otro monitor
bind = SUPER SHIFT, bracketleft, movewindow, mon:DP-1
bind = SUPER SHIFT, bracketright, movewindow, mon:HDMI-A-1