def shrink(self, cidx, amt):
        # get max resizable amount
        margin = self.get_shrink_margin(cidx)
        if amt > margin:  # too much
            self.relative_sizes[cidx] -= \
                self._get_relative_size_from_absolute(margin)
            return amt - margin
        else:
            self.relative_sizes[cidx] -= \
                self._get_relative_size_from_absolute(amt)
            return 0
Reduce the size of a client
dataset/ETHPy150Open qtile/qtile/libqtile/layout/xmonad.py/MonadTall.shrink