summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-03-07 10:17:23 +0100
committerAnton Khirnov <anton@khirnov.net>2021-03-07 10:17:23 +0100
commit6d2a322c072d9c9e461d2f2283b30d89af963d07 (patch)
tree1dc46f7a2bf1f54f1a45785532bd2824f6416d21
parentbc7baa40b130707833a23207b4282c6efa674cee (diff)
bindings: stop using deprecated prompt.run arguments
-rw-r--r--bindings.lua19
1 files changed, 11 insertions, 8 deletions
diff --git a/bindings.lua b/bindings.lua
index 1959d9e..a082bb1 100644
--- a/bindings.lua
+++ b/bindings.lua
@@ -147,14 +147,17 @@ function M.create(workspace)
-- Prompt
awful.key({ modkey }, "n",
function()
- awful.prompt.run({ prompt = "Rename desktop: " },
- mypromptbox[mouse.screen].widget,
- function(input)
- if input then
- local cur_desk = workspace.screen_state[mouse.screen].desktop_idx
- workspace:rename_desktop(cur_desk, input)
- end
- end)
+ awful.prompt.run(
+ { prompt = "Rename desktop: ",
+ textbox = mypromptbox[mouse.screen].widget,
+ exe_callback =
+ function(input)
+ if input then
+ local cur_desk = workspace.screen_state[mouse.screen].desktop_idx
+ workspace:rename_desktop(cur_desk, input)
+ end
+ end})
+
end)
)