51 lines
1,016 B
Lua
51 lines
1,016 B
Lua
-- Binds related to the mouse
|
|
|
|
root.buttons(
|
|
Gears.table.join(
|
|
Awful.button(
|
|
{}, 4,
|
|
Awful.tag.viewnext
|
|
),
|
|
Awful.button(
|
|
{}, 5,
|
|
Awful.tag.viewprev
|
|
)
|
|
)
|
|
)
|
|
|
|
clientbuttons = Gears.table.join(
|
|
Awful.button(
|
|
{}, 1,
|
|
function(c)
|
|
c:emit_signal(
|
|
"request::activate",
|
|
"mouse_click",
|
|
{ raise = true }
|
|
)
|
|
end
|
|
),
|
|
|
|
Awful.button(
|
|
{ Modkey }, 1,
|
|
function(c)
|
|
c:emit_signal(
|
|
"request::activate",
|
|
"mouse_click",
|
|
{ raise = true }
|
|
)
|
|
Awful.mouse.client.move(c)
|
|
end
|
|
),
|
|
|
|
Awful.button(
|
|
{ Modkey }, 3,
|
|
function(c)
|
|
c:emit_signal(
|
|
"request::activate",
|
|
"mouse_click",
|
|
{ raise = true }
|
|
)
|
|
Awful.mouse.client.resize(c)
|
|
end
|
|
)
|
|
)
|