From: martin f. krafft Date: Fri, 22 Aug 2008 06:39:45 +0000 (+0200) Subject: follow config changes X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/9432ea1be5f0f451cbb11a7d72b98f1fbd10da76?ds=inline follow config changes Signed-off-by: martin f. krafft --- diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 398c03e..46d8688 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -87,7 +87,7 @@ for s = 1, screen.count() do tags[s][tagnumber] = tag({ name = tagnumber, layout = layouts[1] }) -- Add tags to screen one by one -- split at 0.5/50% exactly - tags[s][tagnumber].mwfact = 0.5 + -- tags[s][tagnumber].mwfact = 0.5 tags[s][tagnumber].screen = s end -- I'm sure you want to see at least one tag. @@ -144,15 +144,14 @@ for s = 1, screen.count() do mystatusbar[s] = statusbar({ position = "top", name = "mystatusbar" .. s, fg = beautiful.fg_normal, bg = beautiful.bg_normal }) -- Add widgets to the statusbar - order matters - mystatusbar[s].widgets = - { + mystatusbar[s]:widgets({ mytaglist, mytasklist, mypromptbox, mytextbox, mylayoutbox[s], s == screen.count() and mysystray or nil - } + }) mystatusbar[s].screen = s end -- }}} @@ -231,6 +230,7 @@ keybinding({ modkey, "Control" }, "Return", function () client.focus:swap(awful. keybinding({ modkey }, "o", awful.client.movetoscreen):add() keybinding({ modkey }, "Tab", awful.client.focus.history.previous):add() keybinding({ modkey }, "u", awful.client.urgent.jumpto):add() +keybinding({ modkey, "Shift" }, "r", function () client.focus:redraw() end):add() -- Layout manipulation keybinding({ modkey }, "l", function () awful.tag.incmwfact(0.05) end):add() @@ -414,13 +414,13 @@ function hook_arrange(screen) --[[ local sel = client.focus if sel then - local c_c = sel.coords - local m_c = mouse.coords + local c_c = sel:coords() + local m_c = mouse.coords() if m_c.x < c_c.x or m_c.x >= c_c.x + c_c.width or m_c.y < c_c.y or m_c.y >= c_c.y + c_c.height then if table.maxn(m_c.buttons) == 0 then - mouse.coords = { x = c_c.x + 5, y = c_c.y + 5} + mouse.coords({ x = c_c.x + 5, y = c_c.y + 5}) end end end