moved to personal fennel config for awesome and added qutebrowser

This commit is contained in:
Chris Cochrun 2020-10-13 17:35:26 -05:00
parent 403cb92b7d
commit 688748f8a6
502 changed files with 8576 additions and 9597 deletions

View file

@ -0,0 +1,37 @@
local awful = require('awful')
local gears = require('gears')
local add_button_event = function(widget)
widget:buttons(
gears.table.join(
awful.button(
{},
4,
nil,
function()
if #widget.children == 1 then
return
end
widget:insert(1, widget.children[#widget.children])
widget:remove(#widget.children)
end
),
awful.button(
{},
5,
nil,
function()
if #widget.children == 1 then
return
end
widget:insert(#widget.children + 1, widget.children[1])
widget:remove(1)
end
)
)
)
end
return add_button_event