I would like to have bash script run by screen every time when i attach (start.sh) or detach (end.sh) session.
Is there any way to configure screen to do that?
If you have the scripts, then you can do that. But screen by itself does not have hooks to be called on reattach or detach. There is no event handler system accessible to the user.
However for detach, you might be able to