moved to personal fennel config for awesome and added qutebrowser
This commit is contained in:
parent
403cb92b7d
commit
688748f8a6
502 changed files with 8576 additions and 9597 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue