Avoid using confusing syntax in README.

This commit is contained in:
Xinhao Yuan 2021-04-18 13:16:59 -04:00
parent 971edae6aa
commit a04e2d6e35
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ The function is compatible with the previous `machi.layout.create(name, editor,
### Starting editor in lua
Call `local editor = machi.editor.create()` to create an editor.
To edit the layout `l` on screen `s`, call `editor.start_interactive(s = awful.screen.focused(), l = awful.layout.get(s))`.
To edit the layout `l` on screen `s`, call `editor.start_interactive(s, l)`.
Calling it with no arguments would be the same as `editor.start_interactive(awful.screen.focused(), awful.layout.get(awful.screen.focused()))`.
### Basic usage