2024-09-09 16:59:28 +05:00
|
|
|
plugin {
|
|
|
|
morebinds {
|
|
|
|
shift_double = hyprctl dispatch submap moveFocus
|
|
|
|
esc_double = hyprctl dispatch submap reset
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# ----------------Submaps----------------- #
|
|
|
|
|
|
|
|
# Empty Map #
|
|
|
|
submap = disableOtherKeyBinds
|
2025-06-26 19:57:04 +05:00
|
|
|
bind = SUPER, escape, submap, reset
|
2024-09-09 16:59:28 +05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Normal #
|
|
|
|
submap = reset
|
2025-06-26 19:57:04 +05:00
|
|
|
bind = SUPER, F, submap, disableOtherKeyBinds
|
2024-09-09 16:59:28 +05:00
|
|
|
|
|
|
|
# Application Binds
|
|
|
|
bind = ALT, T, exec, kitty
|
|
|
|
bind = ALT, E, exec, nautilus
|
2025-04-24 22:01:50 +05:00
|
|
|
bind = ALT, F, exec, librewolf
|
2024-09-09 16:59:28 +05:00
|
|
|
bind = ALT, V, exec, code
|
2025-02-17 20:37:47 +05:00
|
|
|
bind = ALT, Z, exec, zeditor
|
2024-09-09 16:59:28 +05:00
|
|
|
bind = ALT, M, exec, /opt/ultimmc/run.sh
|
|
|
|
bind = ALT, D, exec, discord
|
|
|
|
bind = ALT, W, exec, flatpak run com.rtosta.zapzap
|
2025-06-26 19:57:04 +05:00
|
|
|
bind = SUPER, SUPER_L, exec, rofi -show drun -sort -matching fuzzy
|
2024-09-09 16:59:28 +05:00
|
|
|
|
2025-04-24 22:01:50 +05:00
|
|
|
# Windows VM
|
|
|
|
bind = CTRL ALT SHIFT, W, exec, /home/rafayahmad/dotfiles/scripts/startWin11.sh
|
|
|
|
|
2024-09-09 16:59:28 +05:00
|
|
|
# Window movement
|
2025-06-26 19:57:04 +05:00
|
|
|
bind = SUPER, V, togglefloating,
|
|
|
|
bind = SUPER, H, togglesplit, # dwindle
|
2024-09-09 16:59:28 +05:00
|
|
|
bind = CTRL, Q, killactive,
|
|
|
|
bind = ALT, TAB, cyclenext,
|
2025-06-26 19:57:04 +05:00
|
|
|
bind = SUPER, TAB, swapnext,
|
|
|
|
bind = SUPER, N, exec, swaync-client -t -sw
|
2024-09-09 16:59:28 +05:00
|
|
|
|
|
|
|
# Move focus
|
|
|
|
bind = CTRL ALT, L, movefocus, r
|
|
|
|
bind = CTRL ALT, J, movefocus, l
|
|
|
|
bind = CTRL ALT, I, movefocus, u
|
|
|
|
bind = CTRL ALT, K, movefocus, d
|
|
|
|
|
|
|
|
# Fullscreen
|
|
|
|
bind = , F11, fullscreen, 0
|
2025-06-26 19:57:04 +05:00
|
|
|
bind = SUPER, F11, fullscreen, 1
|
2024-09-09 16:59:28 +05:00
|
|
|
# bind = ALT, F11, fakefullscreen,
|
|
|
|
|
|
|
|
# Hyprlock
|
2025-06-26 19:57:04 +05:00
|
|
|
bind = SUPER CTRL, L, exec, ~/dotfiles/scripts/currentWallpaperHyprlock.sh
|
2024-09-09 16:59:28 +05:00
|
|
|
|
2025-06-26 19:57:04 +05:00
|
|
|
# bind = SUPER, M, exec, ~/scripts/killhypr
|
|
|
|
bind = SUPER, M, exit,
|
|
|
|
bind = SUPER, F4, exec, ~/dotfiles/scripts/blurWlogout.sh
|
|
|
|
bind = SUPER, R, exec, ~/dotfiles/scripts/reloadwaybar
|
|
|
|
bind = SUPER CTRL, R, exec, killall waybar
|
2024-09-09 16:59:28 +05:00
|
|
|
|
|
|
|
# Screenshots
|
2025-02-17 20:37:47 +05:00
|
|
|
bind = , Print, exec, grim -g "$(slurp)" - | wl-copy
|
2025-06-26 19:57:04 +05:00
|
|
|
bind = SUPER, Print, exec, grim - | wl-copy
|
2025-02-17 20:37:47 +05:00
|
|
|
bind = CTRL, Print, exec, grim -g "$(slurp)"
|
2025-06-26 19:57:04 +05:00
|
|
|
bind = CTRL SUPER, Print, exec, grim
|
2024-09-09 16:59:28 +05:00
|
|
|
|
2025-01-01 08:16:50 +05:00
|
|
|
# Clipboard
|
|
|
|
bind = SUPER SHIFT, V, exec, kitty --class clipse -e clipse
|
|
|
|
|
2024-09-09 16:59:28 +05:00
|
|
|
# Color Picker
|
|
|
|
bind = ALT, P, exec, hyprpicker --format=hex -a
|
|
|
|
|
|
|
|
# Audio Controls
|
2025-04-24 22:01:50 +05:00
|
|
|
bindel=, code:123, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
|
|
|
bindel=, code:122, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
|
|
|
bindl=, code:121, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
2024-09-09 16:59:28 +05:00
|
|
|
# Brightness Controls
|
2025-04-24 22:01:50 +05:00
|
|
|
bindel = , code:233, exec, brightnessctl s 1%+ && echo true > /home/rafayahmad/dotfiles/.config/eww/brightnessShow
|
|
|
|
bindel = , code:232, exec, brightnessctl s 1%- && echo true > /home/rafayahmad/dotfiles/.config/eww/brightnessShow
|
2024-09-09 16:59:28 +05:00
|
|
|
|
|
|
|
# Resize windows
|
|
|
|
binde = ALT, L, resizeactive, 50 0
|
|
|
|
binde = ALT, J, resizeactive, -50 0
|
|
|
|
binde = ALT, I, resizeactive, 0 -50
|
|
|
|
binde = ALT, K, resizeactive, 0 50
|
|
|
|
|
|
|
|
# Center floating window
|
2025-06-26 19:57:04 +05:00
|
|
|
bind = SUPER, C, centerwindow,
|
2024-09-09 16:59:28 +05:00
|
|
|
|
|
|
|
# Move windows in tile
|
2025-06-26 19:57:04 +05:00
|
|
|
bind = SUPER, L, movewindow, r
|
|
|
|
bind = SUPER, J, movewindow, l
|
|
|
|
bind = SUPER, I, movewindow, u
|
|
|
|
bind = SUPER, K, movewindow, d
|
2024-09-09 16:59:28 +05:00
|
|
|
|
|
|
|
# Switch workspaces with mainMod + [0-9]
|
2025-06-26 19:57:04 +05:00
|
|
|
bind = SUPER, 1, workspace, 1
|
|
|
|
bind = SUPER, 2, workspace, 2
|
|
|
|
bind = SUPER, 3, workspace, 3
|
|
|
|
bind = SUPER, Q, workspace, 4
|
|
|
|
bind = SUPER, W, workspace, 5
|
|
|
|
bind = SUPER, E, workspace, 6
|
|
|
|
bind = SUPER, A, workspace, 7
|
|
|
|
bind = SUPER, S, workspace, 8
|
|
|
|
bind = SUPER, D, workspace, 9
|
|
|
|
bind = SUPER, 0, workspace, 10
|
|
|
|
bind = ALT, 1, togglespecialworkspace, whatsapp
|
|
|
|
bind = ALT, 2, togglespecialworkspace, thunderbird
|
2024-09-09 16:59:28 +05:00
|
|
|
|
|
|
|
# Move active window to a workspace and switch with mainMod + SHIFT + [0-9]
|
2025-06-26 19:57:04 +05:00
|
|
|
bind = SUPER SHIFT, 1, movetoworkspace, 1
|
|
|
|
bind = SUPER SHIFT, 2, movetoworkspace, 2
|
|
|
|
bind = SUPER SHIFT, 3, movetoworkspace, 3
|
|
|
|
bind = SUPER SHIFT, Q, movetoworkspace, 4
|
|
|
|
bind = SUPER SHIFT, W, movetoworkspace, 5
|
|
|
|
bind = SUPER SHIFT, E, movetoworkspace, 6
|
|
|
|
bind = SUPER SHIFT, A, movetoworkspace, 7
|
|
|
|
bind = SUPER SHIFT, S, movetoworkspace, 8
|
|
|
|
bind = SUPER SHIFT, D, movetoworkspace, 9
|
|
|
|
bind = SUPER SHIFT, 0, movetoworkspace, 10
|
|
|
|
bind = ALT SHIFT, 1, movetoworkspace, special:whatsapp
|
|
|
|
bind = ALT SHIFT, 2, movetoworkspace, special:thunderbird
|
2024-09-09 16:59:28 +05:00
|
|
|
|
|
|
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
2025-06-26 19:57:04 +05:00
|
|
|
bind = SUPER CTRL, 1, movetoworkspacesilent, 1
|
|
|
|
bind = SUPER CTRL, 2, movetoworkspacesilent, 2
|
|
|
|
bind = SUPER CTRL, 3, movetoworkspacesilent, 3
|
|
|
|
bind = SUPER CTRL, Q, movetoworkspacesilent, 4
|
|
|
|
bind = SUPER CTRL, W, movetoworkspacesilent, 5
|
|
|
|
bind = SUPER CTRL, E, movetoworkspacesilent, 6
|
|
|
|
bind = SUPER CTRL, A, movetoworkspacesilent, 7
|
|
|
|
bind = SUPER CTRL, S, movetoworkspacesilent, 8
|
|
|
|
bind = SUPER CTRL, D, movetoworkspacesilent, 9
|
|
|
|
bind = SUPER CTRL, 0, movetoworkspacesilent, 10
|
|
|
|
bind = ALT CTRL, 1, movetoworkspacesilent, special:whatsapp
|
|
|
|
bind = ALT CTRL, 2, movetoworkspacesilent, special:thunderbird
|
2024-09-09 16:59:28 +05:00
|
|
|
|
|
|
|
# Example special workspace (scratchpad)
|
2025-06-26 19:57:04 +05:00
|
|
|
# bind = SUPER, S, togglespecialworkspace, magic
|
|
|
|
# bind = SUPER SHIFT, S, movetoworkspace, special:magic
|
2024-09-09 16:59:28 +05:00
|
|
|
|
|
|
|
# Scroll through existing workspaces with mainMod + scroll
|
2025-06-26 19:57:04 +05:00
|
|
|
bind = SUPER, mouse_down, workspace, e+1
|
|
|
|
bind = SUPER, mouse_up, workspace, e-1
|
2024-09-09 16:59:28 +05:00
|
|
|
|
|
|
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
2025-06-26 19:57:04 +05:00
|
|
|
bindm = SUPER, mouse:272, movewindow
|
2024-09-09 16:59:28 +05:00
|
|
|
bindm = ALT, mouse:272, resizewindow
|
|
|
|
|
|
|
|
# Shutdown/Reboot
|
|
|
|
bind = CTRL ALT, Z, exec, reboot
|
|
|
|
bind = CTRL ALT, X, exec, shutdown now
|