dotfiles/awesome/configuration/client/buttons.lua
2020-06-03 21:27:00 -05:00

31 lines
471 B
Lua

local awful = require('awful')
local modkey = require('configuration.keys.mod').modKey
return awful.util.table.join(
awful.button(
{},
1,
function(c)
_G.client.focus = c
c:raise()
end
),
awful.button({modkey}, 1, awful.mouse.client.move),
awful.button({modkey}, 3, awful.mouse.client.resize),
awful.button(
{modkey},
4,
function()
awful.layout.inc(1)
end
),
awful.button(
{modkey},
5,
function()
awful.layout.inc(-1)
end
)
)