X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/6a3294bd7341e60be917aafbcb14f2dc416fae9d..81c816eb8d566dd8e75ce0d9040650f0c905145a:/util/init.lua?ds=inline diff --git a/util/init.lua b/util/init.lua index 78889bc..3f6dd0f 100644 --- a/util/init.lua +++ b/util/init.lua @@ -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.suit.tile }):view_only() end } end