[hypr] feat: New modes

This commit is contained in:
Tibo De Peuter 2025-11-26 09:12:47 +01:00
parent 1de1c15acc
commit e92c0b8f45
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
3 changed files with 81 additions and 3 deletions

View file

@ -85,9 +85,6 @@ animations {
}
gestures {
workspace_swipe = true
workspace_swipe_fingers = 3
workspace_swipe_min_fingers = false
workspace_swipe_distance = 300
workspace_swipe_invert = true
workspace_swipe_min_speed_to_force = 30
@ -103,6 +100,12 @@ gestures {
workspace_swipe_forever = true
workspace_swipe_use_r = false
# hyprlang if !HYPRLAND_V_0_53
workspace_swipe = true
workspace_swipe_fingers = 3
workspace_swipe_min_fingers = false
# hyprlang endif
}
group {
@ -258,6 +261,10 @@ env = XCURSOR_SIZE,24
# SHIFT CAPS CTRL/CONTROL ALT MOD2 MOD3 SUPER/WIN/LOGO/MOD4 MOD5
$flag = MOD4
$LMB = mouse:272
$RMB = mouse:273
$MMB = mouse:274
$left = h
$down = j
$up = k

View file

@ -56,6 +56,10 @@ bind = $flag+Shift, s, settiled
bind = $flag, F11, fullscreen, 1
bind = $flag+Shift, F11, fullscreen, 0
bindm = $flag, $LMB, movewindow
bindm = $flag, $RMB, resizewindow
bindc = $flag, $LMB, togglefloating
# Workspaces
$ws1 = 1

View file

@ -1,3 +1,62 @@
# Resizing
$mode_resize = Resize
bind = $flag, R, submap, $mode_resize
submap = $mode_resize
bind = , F, togglefloating
binde = , $right, resizeactive, 10 0
binde = , $up, resizeactive, 0 -10
binde = , $left, resizeactive, -10 0
binde = , $down, resizeactive, 0 10
binde = , Right , resizeactive, 10 0
binde = , Up, resizeactive, 0 -10
binde = , Left, resizeactive, -10 0
binde = , Down, resizeactive, 0 10
binde = Shift, $right, resizeactive, 50 0
binde = Shift, $up, resizeactive, 0 -50
binde = Shift, $left, resizeactive, -50 0
binde = Shift, $down, resizeactive, 0 50
binde = Shift, Right, resizeactive, 50 0
binde = Shift, Up, resizeactive, 0 -50
binde = Shift, Left, resizeactive, -50 0
binde = Shift, Down, resizeactive, 0 50
binde = $flag, $right, moveactive, 10 0
binde = $flag, $up, moveactive, 0 -10
binde = $flag, $left, moveactive, -10 0
binde = $flag, $down, moveactive, 0 10
binde = $flag, Right, moveactive, 10 0
binde = $flag, Up, moveactive, 0 -10
binde = $flag, Left, moveactive, -10 0
binde = $flag, Down, moveactive, 0 10
binde = $flag+Shift, $right, moveactive, 50 0
binde = $flag+Shift, $up, moveactive, 0 -50
binde = $flag+Shift, $left, moveactive, -50 0
binde = $flag+Shift, $down, moveactive, 0 50
binde = $flag+Shift, Right , moveactive, 50 0
binde = $flag+Shift, Up, moveactive, 0 -50
binde = $flag+Shift, Left, moveactive, -50 0
binde = $flag+Shift, Down, moveactive, 0 50
# hyprlang if HYPRLAND_V_0_53
#gesture = 3, swipe, move
#gesture = 4, swipe, resize
# hyprlang endif
bind = $flag, R, submap, reset
bind = , Escape, submap, reset
bind = , Return, submap, reset
submap = reset
# System actions
$mode_system = System (l)ock, (s)leep, (h)ibernate, (r)eboot, (Shift+s)hutdown
bind = Ctrl+Alt, Delete, submap, $mode_system
@ -36,3 +95,11 @@ bind = , Return, submap, reset
submap = reset
# Ignore (all) keybinds. Useful when working with Virtual Machines.
$mode_ignore=Ignore keybinds - Press Control+Alt+Insert to escape.
bind = Ctrl+Alt, Insert, submap, $mode_ignore
submap = $mode_ignore
bind = Ctrl+Alt, Insert, submap, reset
submap = reset