From ddcaa078273e04ad225334014abe70e1cfd0f17a Mon Sep 17 00:00:00 2001 From: Gergely Peidl Date: Mon, 13 Feb 2017 11:26:38 +0100 Subject: [PATCH 1/1] Adding support for setting up a layout of the new tag. --- util/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/init.lua b/util/init.lua index 78889bc..1fc5805 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.layouts[0] }):view_only() end } end -- 2.39.5