Adding support for setting up a layout of the new tag.

This commit is contained in:
Gergely Peidl 2017-02-13 11:26:38 +01:00
parent 1c04624c0a
commit ddcaa07827
No known key found for this signature in database
GPG Key ID: CF17F270EADA712B
1 changed files with 2 additions and 2 deletions

View File

@ -111,13 +111,13 @@ end
-- {{{ Dynamic tagging -- {{{ Dynamic tagging
-- Add a new tag -- Add a new tag
function util.add_tag() function util.add_tag(layout)
awful.prompt.run { awful.prompt.run {
prompt = "New tag name: ", prompt = "New tag name: ",
textbox = awful.screen.focused().mypromptbox.widget, textbox = awful.screen.focused().mypromptbox.widget,
exe_callback = function(name) exe_callback = function(name)
if not name or #name == 0 then return end if not name or #name == 0 then return end
awful.tag.add(name, { screen = awful.screen.focused() }):view_only() awful.tag.add(name, { screen = awful.screen.focused(), layout = layout or awful.layout.layouts[0] }):view_only()
end end
} }
end end