awesomerc/configuration/bindings/global_mousebindings.lua

29 lines
592 B
Lua

local abutton = require "awful.button"
local atag = require "awful.tag"
local mymainmenu = require "rc.ui.menu.mymainmenu"
local global_mousebindings = {
abutton {
modifiers = {},
button = abutton.names.RIGHT,
on_press = function()
mymainmenu():toggle()
end,
},
abutton {
modifiers = {},
button = abutton.names.SCROLL_UP,
on_press = tag.viewprev,
},
abutton {
modifiers = {},
button = abutton.names.SCROLL_DOWN,
on_press = atag.viewnext,
},
}
return global_mousebindings