Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding back tasklist mouse control

  • Loading branch information...
commit b4a565465de6ecbc15c1ca13dff45dd2d4001c2e 1 parent 055e7c1
Paul Hinze authored
Showing with 24 additions and 0 deletions.
  1. +24 −0 rc.lua
24 rc.lua
View
@@ -162,6 +162,30 @@ mytaglist.buttons = awful.util.table.join(
awful.button({ }, 5, awful.tag.viewprev)
)
mytasklist = {}
+mytasklist.buttons = awful.util.table.join(
+ awful.button({ }, 1, function (c)
+ if not c:isvisible() then
+ awful.tag.viewonly(c:tags()[1])
+ end
+ client.focus = c
+ c:raise()
+ end),
+ awful.button({ }, 3, function ()
+ if instance then
+ instance:hide()
+ instance = nil
+ else
+ instance = awful.menu.clients({ 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 = 1, screen.count() do
-- Create a promptbox for each screen
Please sign in to comment.
Something went wrong with that request. Please try again.