Hyprland: Add window management keybinds

This commit is contained in:
GHOSCHT 2024-12-15 14:15:09 +01:00
parent 83f3edf2d3
commit c9d6554663
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82

View file

@ -112,11 +112,13 @@
bind = [ bind = [
"$mainMod, Return, exec, $terminal" "$mainMod, Return, exec, $terminal"
"$mainMod SHIFT, C, killactive" "$mainMod SHIFT, C, killactive"
"$mainMod, C ,exec, hyprshade off && hyprpicker -a && hyprshade on bluelight"
"$mainMod SHIFT, Q, exit" "$mainMod SHIFT, Q, exit"
"$mainMod, T, togglefloating" "$mainMod, T, togglefloating"
"$mainMod, Space, exec, $menu" "$mainMod, Space, exec, $menu"
"$mainMod, P, pseudo" # dwindle "$mainMod, P, pseudo" # determine subsplit
"$mainMod, J, togglesplit" # dwindle "$mainMod, F, fullscreen, 0"
"$mainMod SHIFT, F, fullscreen, 1"
", Print, exec, hyprshade off && grim -g \"$(slurp -w 0 -d)\" - | wl-copy && hyprshade on bluelight" ", Print, exec, hyprshade off && grim -g \"$(slurp -w 0 -d)\" - | wl-copy && hyprshade on bluelight"
# Move focus with mainMod + arrow keys # Move focus with mainMod + arrow keys
@ -124,6 +126,10 @@
"$mainMod, right, movefocus, r" "$mainMod, right, movefocus, r"
"$mainMod, up, movefocus, u" "$mainMod, up, movefocus, u"
"$mainMod, down, movefocus, d" "$mainMod, down, movefocus, d"
"$mainMod, h, movefocus, l"
"$mainMod, j, movefocus, d"
"$mainMod, k, movefocus, u"
"$mainMod, l, movefocus, r"
# Switch workspaces with mainMod + [0-9] # Switch workspaces with mainMod + [0-9]
"$mainMod, 1, split:workspace, 1" "$mainMod, 1, split:workspace, 1"
@ -149,6 +155,34 @@
"$mainMod SHIFT, 9, split:movetoworkspacesilent, 9" "$mainMod SHIFT, 9, split:movetoworkspacesilent, 9"
"$mainMod SHIFT, 0, split:movetoworkspacesilent, 10" "$mainMod SHIFT, 0, split:movetoworkspacesilent, 10"
# window control
"$mainMod SHIFT, left, movewindow, l"
"$mainMod SHIFT, right, movewindow, r"
"$mainMod SHIFT, up, movewindow, u"
"$mainMod SHIFT, down, movewindow, d"
"$mainMod SHIFT, h, movewindow, l"
"$mainMod SHIFT, j, movewindow, d"
"$mainMod SHIFT, k, movewindow, u"
"$mainMod SHIFT, l, movewindow, r"
"$mainMod CTRL, left, resizeactive, -80 0"
"$mainMod CTRL, right, resizeactive, 80 0"
"$mainMod CTRL, up, resizeactive, 0 -80"
"$mainMod CTRL, down, resizeactive, 0 80"
"$mainMod CTRL, h, resizeactive, -80 0"
"$mainMod CTRL, j, resizeactive, 0 80"
"$mainMod CTRL, k, resizeactive, 0 -80"
"$mainMod CTRL, l, resizeactive, 80 0"
"$mainMod ALT, left, moveactive, -80 0"
"$mainMod ALT, right, moveactive, 80 0"
"$mainMod ALT, up, moveactive, 0 -80"
"$mainMod ALT, down, moveactive, 0 80"
"$mainMod ALT, h, moveactive, -80 0"
"$mainMod ALT, j, moveactive, 0 80"
"$mainMod ALT, k, moveactive, 0 -80"
"$mainMod ALT, l, moveactive, 80 0"
# Example special workspace (scratchpad) # Example special workspace (scratchpad)
"$mainMod, S, togglespecialworkspace, magic" "$mainMod, S, togglespecialworkspace, magic"
"$mainMod SHIFT, S, movetoworkspace, special:magic" "$mainMod SHIFT, S, movetoworkspace, special:magic"