hypr: add bindings for resizing with hjkl
This commit is contained in:
+32
-14
@@ -1,22 +1,27 @@
|
||||
##############
|
||||
## BINDINGS ##
|
||||
##############
|
||||
###############
|
||||
## VARIABLES ##
|
||||
###############
|
||||
# Wiki: https://wiki.hyprland.org/Hypr-Ecosystem/hyprlang#defining-variables
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Keywords and https://wiki.hyprland.org/Configuring/Binds for information on how to configure input
|
||||
$mainMod = SUPER # The master key
|
||||
|
||||
$media = amberol # Media App
|
||||
$terminal = kitty # Terminal Emulator
|
||||
$fm = nautilus # File Manager
|
||||
$menu = anyrun # App Runner
|
||||
$dmenu = anyrun --plugins libstdin.so # dmenu app
|
||||
|
||||
$terminal = kitty
|
||||
$fileManager = nautilus
|
||||
$menu = anyrun
|
||||
$dmenu = anyrun --plugins libstdin.so
|
||||
$mainMod = SUPER
|
||||
$lockscreen = hyprlock
|
||||
$screenshotDir = $HOME/Screenshots
|
||||
$screenshotFull = hyprshot -m output -o $screenshotDir
|
||||
$screenshotSelect = hyprshot -m region -o $screenshotDir
|
||||
$media = amberol
|
||||
|
||||
##############
|
||||
## BINDINGS ##
|
||||
##############
|
||||
# Wiki: https://wiki.hyprland.org/Configuring/Binds
|
||||
|
||||
|
||||
# Main binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = $mainMod, K, exec, $terminal
|
||||
bind = $mainMod, Q, killactive
|
||||
bind = $mainMod, E, exec, $fileManager
|
||||
@@ -25,6 +30,7 @@ bind = $mainMod, SPACE, exec, $menu
|
||||
bind = $mainMod, P, pseudo,
|
||||
bind = $mainMod, J, togglesplit
|
||||
bind = $mainMod, N, exec, astal toggle control-center
|
||||
bind = $mainMod, M, exec, astal toggle center-window
|
||||
bind = $mainMod, L, exec, $lockscreen
|
||||
bind = $mainMod, F11, fullscreen
|
||||
|
||||
@@ -54,12 +60,17 @@ bind = $mainMod, W, exec, sh $XDG_CONFIG_HOME/hypr/scripts/change-wallpaper.sh
|
||||
# Reload UI(Astal and AGS)
|
||||
bind = $mainMod, F7, exec, ags request reload
|
||||
|
||||
##################
|
||||
### NAVIGATION ###
|
||||
##################
|
||||
|
||||
# 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 windows with keyboard keys
|
||||
bind = $mainMod SHIFT, left, movewindow, l
|
||||
bind = $mainMod SHIFT, right, movewindow, r
|
||||
@@ -67,11 +78,18 @@ bind = $mainMod SHIFT, up, movewindow, u
|
||||
bind = $mainMod SHIFT, down, movewindow, d
|
||||
bind = $mainMod SHIFT, C, centerwindow
|
||||
|
||||
# Resize windows with arrowkeys
|
||||
|
||||
# Resize windows with arrow keys / hjkl
|
||||
bind = $mainMod ALT, left, resizeactive, -60 0
|
||||
bind = $mainMod ALT, right, resizeactive, 60 0
|
||||
bind = $mainMod ALT, up, resizeactive, 0 -60
|
||||
bind = $mainMod ALT, down, resizeactive, 0 60
|
||||
bind = $mainMod ALT, up, resizeactive, 0 -60
|
||||
bind = $mainMod ALT, right, resizeactive, 60 0
|
||||
|
||||
bind = $mainMod ALT, H, resizeactive, -60 0
|
||||
bind = $mainMod ALT, J, resizeactive, 0 60
|
||||
bind = $mainMod ALT, K, resizeactive, 0 -60
|
||||
bind = $mainMod ALT, L, resizeactive, 60 0
|
||||
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod, 1, workspace, 1
|
||||
|
||||
Reference in New Issue
Block a user