NB! It seems this console command is not compatible with CS2.
Command Profile

CL_BOBAMT_VERT

CS:GO

This command changes how much your viewmodel & gun barrel moves up and down when you're moving forward.

Syntax
cl_bobamt_vert [Value]

Description

This command changes how much your viewmodel & gun barrel moves up and down when you're moving forward.

Syntax And Arguments

cl_bobamt_vert [Value]
Value The value attached to how much your viewomodel/gun barrel moves up and down as you run. The higher the command, the more exaggerated the movement is. The command is capped at 2 and goes to 0.1 at its lowest. 0.25 is the default value of this command.