awesome: remove mouse bindings

This commit is contained in:
Tom Willemsen 2013-01-29 00:59:21 +01:00
parent 6d8ad04933
commit 8e4b7f0f16

View file

@ -115,19 +115,6 @@ mywibox = {}
mypromptbox = {}
mylayoutbox = {}
mytaglist = {}
mytaglist.buttons = awful.util.table.join(
awful.button({ }, 1, awful.tag.viewonly),
awful.button({ modkey }, 1, awful.client.movetotag),
awful.button({ }, 3, awful.tag.viewtoggle),
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.viewprev(awful.tag.getscreen(t))
end))
mytasklist = {}
for s = 1, screen.count() do
@ -136,16 +123,6 @@ for s = 1, screen.count() do
-- Create an imagebox widget which will contains an icon indicating which layout we're using.
-- We need one layoutbox per screen.
mylayoutbox[s] = awful.widget.layoutbox(s)
mylayoutbox[s]:buttons(
awful.util.table.join(
awful.button({ }, 1,
function () awful.layout.inc(layouts, 1) end),
awful.button({ }, 3,
function () awful.layout.inc(layouts, -1) end),
awful.button({ }, 4,
function () awful.layout.inc(layouts, 1) end),
awful.button({ }, 5,
function () awful.layout.inc(layouts, -1) end)))
-- Create a taglist widget
mytaglist[s] = awful.widget.taglist(
s, awful.widget.taglist.filter.all, mytaglist.buttons)
@ -178,13 +155,6 @@ for s = 1, screen.count() do
mywibox[s]:set_widget(layout)
end
------ Mouse bindings
root.buttons(
awful.util.table.join(
awful.button({ }, 3, function () mymainmenu:toggle() end),
awful.button({ }, 4, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev)))
----- Key bindings
globalkeys = awful.util.table.join(
awful.key({ modkey, }, "Left", awful.tag.viewprev),
@ -318,11 +288,6 @@ for i = 1, keynumber do
end))
end
clientbuttons = awful.util.table.join(
awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
awful.button({ modkey }, 1, awful.mouse.client.move),
awful.button({ modkey }, 3, awful.mouse.client.resize))
-- Set keys
root.keys(globalkeys)
@ -333,8 +298,7 @@ awful.rules.rules = {
properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = awful.client.focus.filter,
keys = clientkeys,
buttons = clientbuttons } },
keys = clientkeys } },
{ rule = { class = "MPlayer" },
properties = { floating = true } },
{ rule = { class = "pinentry" },
@ -387,27 +351,9 @@ client.connect_signal(
-- Widgets that are aligned to the right
local right_layout = wibox.layout.fixed.horizontal()
right_layout:add(awful.titlebar.widget.floatingbutton(c))
right_layout:add(awful.titlebar.widget.maximizedbutton(c))
right_layout:add(awful.titlebar.widget.stickybutton(c))
right_layout:add(awful.titlebar.widget.ontopbutton(c))
right_layout:add(awful.titlebar.widget.closebutton(c))
-- The title goes in the middle
local title = awful.titlebar.widget.titlewidget(c)
title:buttons(awful.util.table.join(
awful.button({ }, 1,
function()
client.focus = c
c:raise()
awful.mouse.client.move(c)
end),
awful.button({ }, 3,
function()
client.focus = c
c:raise()
awful.mouse.client.resize(c)
end)))
-- Now bring it all together
local layout = wibox.layout.align.horizontal()