From 8e4b7f0f1676b187fc620abc0646728b6d3442ed Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 29 Jan 2013 00:59:21 +0100 Subject: awesome: remove mouse bindings --- .config/awesome/rc.lua | 56 +------------------------------------------------- 1 file changed, 1 insertion(+), 55 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 23d7210..645b1f7 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -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() -- cgit v1.2.3-54-g00ecf