def _shrink_main(self, amt):
        """Will shrink the client that currently in the main pane"""
        self.ratio -= amt
        self.ratio = max(self.min_ratio, self.ratio)
Will shrink the client that currently in the main pane
libqtile/layout/xmonad.py