awesomerc/configuration/bindings/client_mousebindings.lua

40 lines
914 B
Lua

local abutton = require "awful.button"
local utils = require "rc.configuration.bindings.utils"
local mousebindings = {
abutton {
modifiers = {},
button = abutton.names.LEFT,
on_press = function(client)
client:activate {
context = "mouse_click",
}
end,
},
abutton {
modifiers = { utils.mods.modkey },
button = abutton.names.LEFT,
on_press = function(client)
client:activate {
context = "mouse_click",
action = "mouse_move",
}
end,
},
abutton {
modifiers = { utils.mods.modkey },
button = abutton.names.RIGHT,
on_press = function(client)
client:activate {
context = "mouse_click",
action = "mouse_resize",
}
end,
},
}
return mousebindings