awesome: remove mouse bindings
This commit is contained in:
parent
6d8ad04933
commit
8e4b7f0f16
1 changed files with 1 additions and 55 deletions
|
@ -115,19 +115,6 @@ mywibox = {}
|
||||||
mypromptbox = {}
|
mypromptbox = {}
|
||||||
mylayoutbox = {}
|
mylayoutbox = {}
|
||||||
mytaglist = {}
|
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 = {}
|
mytasklist = {}
|
||||||
|
|
||||||
for s = 1, screen.count() do
|
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.
|
-- Create an imagebox widget which will contains an icon indicating which layout we're using.
|
||||||
-- We need one layoutbox per screen.
|
-- We need one layoutbox per screen.
|
||||||
mylayoutbox[s] = awful.widget.layoutbox(s)
|
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
|
-- Create a taglist widget
|
||||||
mytaglist[s] = awful.widget.taglist(
|
mytaglist[s] = awful.widget.taglist(
|
||||||
s, awful.widget.taglist.filter.all, mytaglist.buttons)
|
s, awful.widget.taglist.filter.all, mytaglist.buttons)
|
||||||
|
@ -178,13 +155,6 @@ for s = 1, screen.count() do
|
||||||
mywibox[s]:set_widget(layout)
|
mywibox[s]:set_widget(layout)
|
||||||
end
|
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
|
----- Key bindings
|
||||||
globalkeys = awful.util.table.join(
|
globalkeys = awful.util.table.join(
|
||||||
awful.key({ modkey, }, "Left", awful.tag.viewprev),
|
awful.key({ modkey, }, "Left", awful.tag.viewprev),
|
||||||
|
@ -318,11 +288,6 @@ for i = 1, keynumber do
|
||||||
end))
|
end))
|
||||||
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
|
-- Set keys
|
||||||
root.keys(globalkeys)
|
root.keys(globalkeys)
|
||||||
|
|
||||||
|
@ -333,8 +298,7 @@ awful.rules.rules = {
|
||||||
properties = { border_width = beautiful.border_width,
|
properties = { border_width = beautiful.border_width,
|
||||||
border_color = beautiful.border_normal,
|
border_color = beautiful.border_normal,
|
||||||
focus = awful.client.focus.filter,
|
focus = awful.client.focus.filter,
|
||||||
keys = clientkeys,
|
keys = clientkeys } },
|
||||||
buttons = clientbuttons } },
|
|
||||||
{ rule = { class = "MPlayer" },
|
{ rule = { class = "MPlayer" },
|
||||||
properties = { floating = true } },
|
properties = { floating = true } },
|
||||||
{ rule = { class = "pinentry" },
|
{ rule = { class = "pinentry" },
|
||||||
|
@ -387,27 +351,9 @@ client.connect_signal(
|
||||||
|
|
||||||
-- Widgets that are aligned to the right
|
-- Widgets that are aligned to the right
|
||||||
local right_layout = wibox.layout.fixed.horizontal()
|
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
|
-- The title goes in the middle
|
||||||
local title = awful.titlebar.widget.titlewidget(c)
|
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
|
-- Now bring it all together
|
||||||
local layout = wibox.layout.align.horizontal()
|
local layout = wibox.layout.align.horizontal()
|
||||||
|
|
Loading…
Reference in a new issue