From 20533e9443f056ce59da7df5f74ddb87e1dad512 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 26 Oct 2008 08:41:05 +0100 Subject: [PATCH] awesomerc: remove tabulous Signed-off-by: Julien Danjou --- awesomerc.lua.in | 62 ++++++++------------------------------------------------ 1 file changed, 8 insertions(+), 54 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 43b7b1e6..e4104956 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -2,7 +2,6 @@ -- Include awesome library, with lots of useful function! require("awful") -require("tabulous") require("beautiful") -- {{{ Variable definitions @@ -72,9 +71,6 @@ beautiful.init(theme_path) -- This allows to not pass plenty of arguments to each function -- to inform it about colors we want it to draw. awful.beautiful.register(beautiful) - --- Uncomment this to activate autotabbing --- tabulous.autotab_start() -- }}} -- {{{ Tags @@ -120,7 +116,6 @@ mylauncher = awful.widget.launcher({ name = "mylauncher", -- Create a systray mysystray = widget({ type = "systray", name = "mysystray", align = "right" }) - -- Create a wibox for each screen and add it mywibox = {} mypromptbox = {} @@ -264,10 +259,13 @@ keybinding({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, - -- Prompt keybinding({ modkey }, "F1", function () awful.prompt.run({ prompt = "Run: " }, mypromptbox[mouse.screen], awful.util.spawn, awful.completion.bash, -awful.util.getdir("cache") .. "/history") end):add() + awful.util.getdir("cache") .. "/history") + end):add() keybinding({ modkey }, "F4", function () awful.prompt.run({ prompt = "Run Lua code: " }, mypromptbox[mouse.screen], awful.util.eval, awful.prompt.bash, -awful.util.getdir("cache") .. "/history_eval") end):add() + awful.util.getdir("cache") .. "/history_eval") + end):add() + keybinding({ modkey, "Ctrl" }, "i", function () local s = mouse.screen if mypromptbox[s].text then @@ -286,52 +284,8 @@ keybinding({ modkey, "Ctrl" }, "i", function () end end):add() ---- Tabulous, tab manipulation -keybinding({ modkey, "Control" }, "y", function () - local tabbedview = tabulous.tabindex_get() - local nextclient = awful.client.next(1) - - if not tabbedview then - tabbedview = tabulous.tabindex_get(nextclient) - - if not tabbedview then - tabbedview = tabulous.tab_create() - tabulous.tab(tabbedview, nextclient) - else - tabulous.tab(tabbedview, client.focus) - end - else - tabulous.tab(tabbedview, nextclient) - end -end):add() - -keybinding({ modkey, "Shift" }, "y", tabulous.untab):add() - -keybinding({ modkey }, "y", function () - local tabbedview = tabulous.tabindex_get() - - if tabbedview then - local n = tabulous.next(tabbedview) - tabulous.display(tabbedview, n) - end -end):add() - -- Client awful tagging: this is useful to tag some clients and then do stuff like move to tag on them keybinding({ modkey }, "t", awful.client.togglemarked):add() -keybinding({ modkey, 'Shift' }, "t", function () - local tabbedview = tabulous.tabindex_get() - local clients = awful.client.getmarked() - - if not tabbedview then - tabbedview = tabulous.tab_create(clients[1]) - table.remove(clients, 1) - end - - for k,c in pairs(clients) do - tabulous.tab(tabbedview, c) - end - -end):add() for i = 1, keynumber do keybinding({ modkey, "Shift" }, "F" .. i, @@ -366,12 +320,12 @@ awful.hooks.marked.register(function (c) c.border_color = beautiful.border_marked end) --- Hook function to execute when unmarking a client +-- Hook function to execute when unmarking a client. awful.hooks.unmarked.register(function (c) c.border_color = beautiful.border_focus end) --- Hook function to execute when the mouse is over a client. +-- Hook function to execute when the mouse enters a client. awful.hooks.mouse_enter.register(function (c) -- Sloppy focus, but disabled for magnifier layout if awful.layout.get(c.screen) ~= "magnifier" @@ -427,7 +381,7 @@ awful.hooks.manage.register(function (c) -- c.honorsizehints = false end) --- Hook function to execute when arranging the screen +-- Hook function to execute when arranging the screen. -- (tag switch, new client, etc) awful.hooks.arrange.register(function (screen) local layout = awful.layout.get(screen) -- 2.11.4.GIT