shift_monitors: add a docstring (for -h)

This commit is contained in:
fdev31 2023-05-04 19:41:18 +02:00
parent 12b2c2297d
commit d55b77db1e

View file

@ -8,6 +8,7 @@ class Extension(Plugin):
self.monitors = [mon["name"] for mon in await hyprctlJSON("monitors")] self.monitors = [mon["name"] for mon in await hyprctlJSON("monitors")]
async def run_shift_monitors(self, arg: str): async def run_shift_monitors(self, arg: str):
"""Swaps monitors' workspaces in the given direction"""
direction: int = int(arg) direction: int = int(arg)
if direction > 0: if direction > 0:
mon_list = self.monitors[:-1] mon_list = self.monitors[:-1]