mirror of https://github.com/lcpz/lain.git
Merge pull request #314 from geripgeri/feature/add_tag_set_layout
Adding support for setting up a layout of the new tag.
This commit is contained in:
commit
f4870b8858
|
@ -111,13 +111,13 @@ end
|
|||
-- {{{ Dynamic tagging
|
||||
|
||||
-- Add a new tag
|
||||
function util.add_tag()
|
||||
function util.add_tag(layout)
|
||||
awful.prompt.run {
|
||||
prompt = "New tag name: ",
|
||||
textbox = awful.screen.focused().mypromptbox.widget,
|
||||
exe_callback = function(name)
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue