From 6d2a322c072d9c9e461d2f2283b30d89af963d07 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 7 Mar 2021 10:17:23 +0100 Subject: bindings: stop using deprecated prompt.run arguments --- bindings.lua | 19 +++++++++++-------- 1 file 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) ) -- cgit v1.2.3