From a04e2d6e35ba3051ab53cc514b86113935349243 Mon Sep 17 00:00:00 2001 From: Xinhao Yuan Date: Sun, 18 Apr 2021 13:16:59 -0400 Subject: [PATCH] Avoid using confusing syntax in README. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1c3cb45..5915103 100644 --- a/README.md +++ b/README.md @@ -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