set step size resize

This commit is contained in:
Joachim Nielandt 2023-05-18 11:48:04 +02:00
parent bd40b3cdd5
commit 540f3fd989
2 changed files with 18 additions and 16 deletions

View File

@ -9,25 +9,25 @@ mode --pango_markup $mode_resize {
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
$bindsym $left resize shrink width $resizestepsize
$bindsym $down resize grow height $resizestepsize
$bindsym $up resize shrink height $resizestepsize
$bindsym $right resize grow width $resizestepsize
$bindsym $left_alt resize shrink width 10px
$bindsym $down_alt resize grow height 10px
$bindsym $up_alt resize shrink height 10px
$bindsym $right_alt resize grow width 10px
$bindsym $left_alt resize shrink width $resizestepsize
$bindsym $down_alt resize grow height $resizestepsize
$bindsym $up_alt resize shrink height $resizestepsize
$bindsym $right_alt resize grow width $resizestepsize
$bindsym Shift+$left resize shrink width 50px
$bindsym Shift+$down resize grow height 50px
$bindsym Shift+$up resize shrink height 50px
$bindsym Shift+$right resize grow width 50px
$bindsym Shift+$left resize shrink width $resizestepsize
$bindsym Shift+$down resize grow height $resizestepsize
$bindsym Shift+$up resize shrink height $resizestepsize
$bindsym Shift+$right resize grow width $resizestepsize
$bindsym Shift+$left_alt resize shrink width 50px
$bindsym Shift+$down_alt resize grow height 50px
$bindsym Shift+$up_alt resize shrink height 50px
$bindsym Shift+$right_alt resize grow width 50px
$bindsym Shift+$left_alt resize shrink width $resizestepsize
$bindsym Shift+$down_alt resize grow height $resizestepsize
$bindsym Shift+$up_alt resize shrink height $resizestepsize
$bindsym Shift+$right_alt resize grow width $resizestepsize
## Resize // Window Gaps // + - ##
$bindsym minus gaps inner current minus 5px

View File

@ -10,6 +10,8 @@ set $background $HOME/pictures/wallpapers/iceland.jpg
set $swayconfig $HOME/.config/sway
set $swayscripts $swayconfig/scripts
# resize behaviour
set $resizestepsize 30px
###
### Variables