Mouse scroll bindings updated.

This commit is contained in:
Kolan Sh 2013-04-25 20:48:53 +04:00
parent 11c4af84a9
commit 0aa2afb5bc
1 changed files with 6 additions and 6 deletions

12
rc.lua
View File

@ -184,8 +184,8 @@ mytaglist.buttons = awful.util.table.join(
awful.button({ modkey }, 1, awful.client.movetotag), awful.button({ modkey }, 1, awful.client.movetotag),
awful.button({ }, 3, awful.tag.viewtoggle), awful.button({ }, 3, awful.tag.viewtoggle),
awful.button({ modkey }, 3, awful.client.toggletag), awful.button({ modkey }, 3, awful.client.toggletag),
awful.button({ }, 4, function(t) awful.tag.viewnext(awful.tag.getscreen(t)) end), awful.button({ }, 5, function(t) awful.tag.viewnext(awful.tag.getscreen(t)) end),
awful.button({ }, 5, function(t) awful.tag.viewprev(awful.tag.getscreen(t)) end) awful.button({ }, 4, function(t) awful.tag.viewprev(awful.tag.getscreen(t)) end)
) )
mytasklist = {} mytasklist = {}
mytasklist.buttons = awful.util.table.join( mytasklist.buttons = awful.util.table.join(
@ -213,11 +213,11 @@ mytasklist.buttons = awful.util.table.join(
instance = awful.menu.clients({ width=250 }) instance = awful.menu.clients({ width=250 })
end end
end), end),
awful.button({ }, 4, function () awful.button({ }, 5, function ()
awful.client.focus.byidx(1) awful.client.focus.byidx(1)
if client.focus then client.focus:raise() end if client.focus then client.focus:raise() end
end), end),
awful.button({ }, 5, function () awful.button({ }, 4, function ()
awful.client.focus.byidx(-1) awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end if client.focus then client.focus:raise() end
end)) end))
@ -351,8 +351,8 @@ end
-- --
root.buttons(awful.util.table.join( root.buttons(awful.util.table.join(
awful.button({ }, 3, function () mymainmenu:toggle() end), awful.button({ }, 3, function () mymainmenu:toggle() end),
awful.button({ }, 4, awful.tag.viewnext), awful.button({ }, 5, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev) awful.button({ }, 4, awful.tag.viewprev)
)) ))
----< Key bindings >-------------------------------------------------- ----< Key bindings >--------------------------------------------------