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,61 @@
local awful = require('awful')
local wibox = require('wibox')
local gears = require('gears')
local beautiful = require('beautiful')
local dpi = beautiful.xresources.apply_dpi
local clickable_container = require('widget.clickable-container')
local config_dir = gears.filesystem.get_configuration_dir()
local widget_icon_dir = config_dir .. 'widget/notif-center/icons/'
local notifbox_core = require('widget.notif-center.build-notifbox')
local reset_notifbox_layout = notifbox_core.reset_notifbox_layout
local clear_all_imagebox = wibox.widget {
{
image = widget_icon_dir .. 'clear_all.svg',
resize = true,
forced_height = dpi(20),
forced_width = dpi(20),
widget = wibox.widget.imagebox,
},
layout = wibox.layout.fixed.horizontal
}
local clear_all_button = wibox.widget {
{
clear_all_imagebox,
margins = dpi(7),
widget = wibox.container.margin
},
widget = clickable_container
}
clear_all_button:buttons(
gears.table.join(
awful.button(
{},
1,
nil,
function()
reset_notifbox_layout()
end
)
)
)
local clear_all_button_wrapped = wibox.widget {
nil,
{
clear_all_button,
bg = beautiful.groups_bg,
shape = gears.shape.circle,
widget = wibox.container.background
},
nil,
expand = 'none',
layout = wibox.layout.align.vertical
}
return clear_all_button_wrapped