From 0bd9e548ad73d195e8abe5c796177ad2c97a4a2e Mon Sep 17 00:00:00 2001 From: Lucas de Vries Date: Wed, 11 Jun 2008 11:11:12 +0200 Subject: [PATCH] [awesomerc] fix tabulous new tabbed view binding --- awesomerc.lua.in | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 05a4628d2..fd3b7939e 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -182,12 +182,20 @@ keybinding.new({ modkey }, "F1", function () awful.menu("Run: ", mymenubox, awfu --- Tabulous, tab manipulation keybinding.new({ modkey, "Control" }, "y", function () local tabbedview = tabulous.tabindex_get() + local nextclient = awful.client.next(1) if tabbedview == nil then - tabbedview = tabulous.tab_create() - end + tabbedview = tabulous.tabindex_get(nextclient) - tabulous.tab(tabbedview, awful.client.next(1)) + if tabbedview == nil then + tabbedview = tabulous.tab_create() + tabulous.tab(tabbedview, nextclient) + else + tabulous.tab(tabbedview, client.focus_get()) + end + else + tabulous.tab(tabbedview, nextclient) + end end):add() keybinding.new({ modkey, "Shift" }, "y", tabulous.untab):add()