# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
#bind = Control Shift, x, submap, $mode-system
#submap = $mode-system
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = SUPER, F, exec, hyprctl dispatch setfloating true && hyprctl dispatch centerwindow

bind = SUPER, V, exec, kitty --class kitty-floating --hold -e fastfetch --kitty ~/Imágenes/arch_logo.png

bind = $mainMod SHIFT, Return, exec, uwsm app -- hyprctl dispatch movetoworkspacesilent special:scratchpad
bind = $mainMod, Return, exec, uwsm app -- termite -c ~/.config/termite/config_hyprland #foot
bind = $mainMod, W, exec, systemd-inhibit --what=idle --why="avoid dimming firefox" firefox
bind = $mainMod, Q, killactive, 
bind = $mainMod, E, exec, nautilus 
bind = $mainMod SHIFT, D, exec, bemoji -t
bind = $mainMod SHIFT, E, exec, /home/teraflops/.config/rofi/powermenu/type-2/powermenu.sh
bind = $mainMod, F, fullscreen,
bind = $mainMod, S, togglefloating, 
bind = $mainMod, D, exec, /home/teraflops/.config/rofi/launchers/type-2/launcher.sh
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod SHIFT, R, exec, /home/teraflops/.config/hypr/scripts/reload.sh
#bind = $mainMod, L, exec, wallock -c /home/teraflops/.config/wallock/config -o lock
bind = $mainMod, L, exec, ~/.local/bin/video_lock.sh
bind = $mainMod SHIFT, X, exec, /home/teraflops/.local/bin/screenshot_interactive_hyprland.sh
bind = $mainMod, X, exec, /home/teraflops/.local/bin/screenshot_hyprland.sh
bind = $mainMod ALT, X, exec, /home/teraflops/.local/bin/screenshot_edit_hyprland.sh
bind = $mainMod ALT SHIFT, X, exec, /home/teraflops/.local/bin/screenshot_edit_zone_hyprland.sh

#bind = , F24, exec, ~/.local/bin/aura.sh

bind = , XF86Launch3, exec, /home/teraflops/.local/bin/aura.sh
bind = , XF86Launch4, exec, /home/teraflops/.local/bin/power.sh
bind = , XF86Launch1, exec, /usr/bin/rog-control-center


bind = $mainMod CTRL, right, resizeactive, 10 0
bind = $mainMod CTRL, left, resizeactive, -10 0
bind = $mainMod CTRL, up, resizeactive, 0 -10
bind = $mainMod CTRL, down, resizeactive, 0 10

bind = $mainMod, M, exec, foot -e neomutt

bind = $mainMod, K, exec, /home/teraflops/.local/bin/screenrec.sh
bind = $mainMod SHIFT, K, exec, /home/teraflops/.local/bin/screenrec_zone.sh

bind = $mainMod SHIFT, F, exec, hyprctl --batch "dispatch togglefloating ; dispatch centerwindow 1"

bind = , xf86audioraisevolume, exec, ~/.local/bin/vol.sh up  
bind = , xf86audiolowervolume, exec, ~/.local/bin/vol.sh down  
bind = , xf86AudioMute, exec,  ~/.local/bin/vol.sh toggle

#bind = , code:117, exec, playerctl play-pause
#bind = , code:115, exec, playerctl next
#bind = , code:110, exec, playerctl previous
#bind = , code:117, exec, playerctl stop

bind = , XF86AudioPrev, exec, playerctl previous
bind = , XF86AudioNext, exec, playerctl next
bind = , XF86AudioPlay, exec, playerctl play
bind = , XF86AudioPause, exec, playerctl pause


bind=,XF86MonBrightnessDown,exec,brightnessctl --device=amdgpu_bl1 set 5%-
bind=,XF86MonBrightnessUp,exec,brightnessctl --device=amdgpu_bl1 set +5%

bind=,XF86KbdBrightnessUp,exec,brightnessctl --device='asus::kbd_backlight' set +1
bind=,XF86KbdBrightnessDown,exec,brightnessctl --device='asus::kbd_backlight' set 1-

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d

# Move focused window around
bind = $mainMod SHIFT, left, movewindow, l
bind = $mainMod SHIFT, right, movewindow, r
bind = $mainMod SHIFT, up, movewindow, u
bind = $mainMod SHIFT, down, movewindow, d

bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
# bind = $mainMod, 5, workspace, 5
# bind = $mainMod, 6, workspace, 6
# bind = $mainMod, 7, workspace, 7
# bind = $mainMod, 8, workspace, 8
# bind = $mainMod, 9, workspace, 9
# bind = $mainMod, 0, workspace, 10
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
# bind = $mainMod SHIFT, 5, movetoworkspace, 5
# bind = $mainMod SHIFT, 6, movetoworkspace, 6
# bind = $mainMod SHIFT, 7, movetoworkspace, 7
# bind = $mainMod SHIFT, 8, movetoworkspace, 8
# bind = $mainMod SHIFT, 9, movetoworkspace, 9
# bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

# Something acts like Alt+Tab
bind = SUPER, Tab, cyclenext,
bind = SUPER, Tab, bringactivetotop,
