shift_monitors: add a docstring (for -h)
This commit is contained in:
parent
12b2c2297d
commit
d55b77db1e
1 changed files with 1 additions and 0 deletions
|
@ -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]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue