[awesomerc] Fix taglist mouse bindings

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-04 20:31:42 +02:00
parent 8fdc1d9608
commit e5222ce55a
1 changed files with 4 additions and 7 deletions

View File

@ -41,13 +41,10 @@ end
-- {{{ Statusbar -- {{{ Statusbar
-- Create a taglist widget -- Create a taglist widget
mytaglist = widget.new({ type = "taglist", name = "mytaglist" }) mytaglist = widget.new({ type = "taglist", name = "mytaglist" })
mytaglist:mouse({}, 1, awful.tag.viewonly) mytaglist:mouse({}, 1, function (object, tag) awful.tag.viewonly(tag) end)
mytaglist:mouse({ modkey }, 1, awful.client.toggletag) mytaglist:mouse({ modkey }, 1, function (object, tag) awful.client.toggletag(tag) end)
mytaglist:mouse({}, 3, mytaglist:mouse({}, 3, function (object, tag) tag:view(not tag:isselected()) end)
function (object, tag) mytaglist:mouse({ modkey }, 3, function (object, tag) awful.client.toggletag(tag) end)
tag:view(not tag:isselected())
end)
mytaglist:mouse({ modkey }, 3, awful.client.toggletag)
mytaglist:mouse({ }, 4, awful.tag.viewnext) mytaglist:mouse({ }, 4, awful.tag.viewnext)
mytaglist:mouse({ }, 5, awful.tag.viewprev) mytaglist:mouse({ }, 5, awful.tag.viewprev)
mytaglist:set("text_focus", "<bg color=\"#555555\"/> <title/> ") mytaglist:set("text_focus", "<bg color=\"#555555\"/> <title/> ")