Doors/configs/awesome/binds/mouse.lua
2024-01-02 23:16:38 -05:00

51 lines
1 KiB
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
)
)