diff options
-rw-r--r-- | bindings.lua | 19 |
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) ) |