# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
#bind = $mainMod, RETURN, exec, kitty
bind = $mainMod, RETURN, exec, $terminal
#bind = $mainMod, TAB, cyclenext
bind = $mainMod SHIFT, TAB, cyclenext, prev
#bind = $mainMod, M, exit,
bind = $mainMod, A, exec, pkill rofi || ~/.config/rofi/volume/volume.sh
bind = $mainMod, C, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy
bind = $mainMod, E, exec, xdg-open ~
bind = $mainMod, F, fullscreen
bind = $mainMod, G, exec, pkill rofi || ~/.config/rofi/shortcuts/hypr.sh
bind = $mainMod, I, exec, pkill rofi || $HOME/.config/rofi/emojis/emojis.sh | rofi -dmenu -theme $HOME/.config/rofi/emojis/emojis.rasi -mesg "  Emojis"
bind = $mainMod, M, exec, pkill rofi || networkmanager_dmenu
bind = $mainMod, N, exec, pkill rofi || ~/.config/rofi/nm-vpn/nm-vpn.sh
bind = $mainMod, R, exec, pkill rofi || ~/.config/rofi/launcher/launcher.sh run
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, Q, killactive,
bind = $mainMod, S, exec, pkill rofi || rofi -show "ssh"
bind = $mainMod, T, exec, pkill rofi || rofi -show fb -modes "fb:~/.config/rofi/settings-menu/setmen.sh" -theme $HOME/.config/rofi/settings-menu/settings-menu.rasi
bind = $mainMod, U, exec, $HOME/.config/conky/conkytoggler
bind = $mainMod, V, togglefloating,
bind = $mainMod, SPACE, exec, pkill rofi || ~/.config/rofi/launcher/launcher.sh
# bind = $mainMod, T, exec, pkill rofi || ~/.config/rofi/settings-menu/settings-menu.sh
bind = $mainMod, F4, exec, wlogout -P 1 -s -r 10 -c 10
bind = $mainMod, escape, exec, killall -SIGUSR1

# Move focus with mainMod
# bind = $mainMod, H, movefocus, l
# bind = $mainMod, J, movefocus, d
# bind = $mainMod, K, movefocus, u
# bind = $mainMod, L, movefocus, r

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

# Switch workspaces with mainMod + [0-9]
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

# Move active window to a workspace with mainMod + SHIFT + [0-9]
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

# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

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

#bind = ALT, TAB, exec, pkill rofi || ~/.config/rofi/launcher/launcher.sh window
bind = ALT,W, exec, killall waybar && waybar &
#bind = $mainMod,tab,hycov:toggleoverview
bind = $mainMod,tab, exec, hyprnome


#bind = $mainMod,tab,exec, pkill rofi || rofi -show window -theme $HOME/.config/rofi/app-switcher/app-switcher.rasi
#bind = $mainMod, L, exec, swaync-client -t -sw
#bind = $mainMod, K, exec, xkill

bind=,PRINT,exec, hyprm-screenshot
#bind=,PRINT,exec, pkill rofi || ~/.config/rofi/screenshot/screenshot.sh
bind = CTRL ALT, DELETE, exec, alacritty -t "BTOP" -e btop -p 1
#bind = CTRL ALT, DELETE, exec, sysmontask
#bind = CTRL ALT, DELETE, exec, env GTK_THEME=Adwaita:dark resources

#ind = $mainMod, O, exec, ~/.config/rofi/powermenu/powermenu.sh






# MODKEYS


# SPECIAL MODKEYS
binde = ,XF86AudioRaiseVolume, exec, /home/dom/.local/bin/volnote up
binde = $mainMod, Page_Up, exec, /home/dom/.local/bin/volnote up

binde = ,XF86AudioLowerVolume, exec, /home/dom/.local/bin/volnote down
binde = $mainMod, Page_Down, exec, /home/dom/.local/bin/volnote down

binde = ,XF86AudioMute, exec, /home/dom/.local/bin/volnote mute
binde = ,XF86MonBrightnessUp, exec, swayosd --brightness raise
binde = ,XF86MonBrightnessDown, exec, swayosd --brightness lower

binde = ,XF86AudioPlay, exec, /home/dom/.local/bin/volnote toggle
binde = ,XF86AudioStop, exec, playerctl stop
binde = ,XF86AudioPrev, exec, playerctl prev
binde = ,XF86AudioNext, exec, playerctl next

bindr = CAPS, Caps_Lock, exec, /home/dom/.local/bin/capsnote


# OSD (swayosd)
# binde = ,XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise
# binde = $mainMod, KP_Add, exec, swayosd-client --output-volume raise
# binde = $mainMod, Page_Up, exec, swayosd-client --output-volume raise

# binde = ,XF86AudioLowerVolume, exec, swayosd-client --output-volume lower
# binde = $mainMod, KP_Subtract, exec, swayosd-client --output-volume lower
# binde = $mainMod, Page_Down, exec, swayosd-client --output-volume lower

# binde = ,XF86AudioMute, exec, swayosd-client --output-volume mute-toggle
# binde = ,XF86MonBrightnessUp, exec, swayosd --brightness raise
# binde = ,XF86MonBrightnessDown, exec, swayosd --brightness lower

# bindr = CAPS, Caps_Lock, exec, swayosd --caps-lock