Power management Sway edition

Hi,

I tried searching but didnt find what I was looking for.

I run the latest endeavouros sway edition on a laptop with a thunderbolt dock. When the computer goes to sleep it disconnects the dock. Is there an easy way to disable sleep while in dock or how is powermanagement handle in the sway edition?

Best regards.