From b01932a4468c983ac886f84c510cf092b093aa4d Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 3 Jul 2018 11:59:15 +0200 Subject: rc: remove unused cruft --- rc.lua | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'rc.lua') diff --git a/rc.lua b/rc.lua index 531b11a..e950bfd 100644 --- a/rc.lua +++ b/rc.lua @@ -75,41 +75,6 @@ mypromptbox = {} mylayoutbox = {} mytasklist = {} -mytasklist.buttons = awful.util.table.join( - awful.button({ }, 1, function (c) - if c == client.focus then - c.minimized = true - else - -- Without this, the following - -- :isvisible() makes no sense - c.minimized = false - if not c:isvisible() then - awful.tag.viewonly(c:tags()[1]) - end - -- This will also un-minimize - -- the client, if needed - client.focus = c - c:raise() - end - end), - awful.button({ }, 3, function () - if instance then - instance:hide() - instance = nil - else - instance = awful.menu.clients({ - theme = { width = 250 } - }) - end - end), - awful.button({ }, 4, function () - awful.client.focus.byidx(1) - if client.focus then client.focus:raise() end - end), - awful.button({ }, 5, function () - awful.client.focus.byidx(-1) - if client.focus then client.focus:raise() end - end)) for s in screen do -- Create a promptbox for each screen @@ -124,7 +89,6 @@ for s in screen do awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end))) -- Create a tasklist widget - --mytasklist[s] = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons, nil, nil, wibox.layout.fixed.vertical()) local pgr = pager.Pager:new(s, 128, 800) pgr:set_desktop(workspace.desktops[1]) mytasklist[s] = pgr -- cgit v1.2.3