dotfiles/awesome/bindings/mouse/global.lua

16 lines
507 B
Lua
Raw Normal View History

2023-05-23 05:12:23 +00:00
--- awesome stdlib
2023-04-20 04:08:44 +00:00
local gears = require("gears")
local awful = require("awful")
local _M = {}
2023-05-23 05:35:51 +00:00
------------------------------------------
2023-04-20 04:08:44 +00:00
function _M.get()
2023-05-23 05:12:23 +00:00
local global_buttons = gears.table.join(
2023-04-20 04:08:44 +00:00
awful.button({ }, 3, function () RC.mainmenu:toggle() end),
awful.button({ }, 4, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev)
)
2023-05-23 05:12:23 +00:00
return global_buttons
2023-04-20 04:08:44 +00:00
end
2023-05-23 05:35:51 +00:00
------------------------------------------
2023-05-23 05:12:23 +00:00
return setmetatable({}, { __call = function(_, ...) return _M.get(...) end })