-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmousebindings.lua
More file actions
25 lines (23 loc) · 858 Bytes
/
mousebindings.lua
File metadata and controls
25 lines (23 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local awful = require("awful")
-- {{{ Mouse bindings
client.connect_signal("request::default_mousebindings", function()
awful.mouse.append_client_mousebindings({
awful.button({ }, 1, function (c)
if c.name ~= "CellWriter" and c.name ~= "Onboard" then
c:activate { context = "mouse_click" }
end
end),
awful.button({ modkey }, 1, function (c)
c:activate { context = "mouse_click", action = "mouse_move" }
end),
awful.button({ modkey }, 3, function (c)
c:activate { context = "mouse_click", action = "mouse_resize"}
end),
})
end)
awful.mouse.append_global_mousebindings ({
awful.button({ }, 3, function () mymainmenu:toggle() end),
awful.button({ }, 4, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev),
})
-- }}}