updates to fix after fennel moves

This commit is contained in:
Chris Cochrun 2020-09-17 06:46:39 -05:00
parent 567e03be28
commit 381009397c
2 changed files with 1 additions and 85 deletions

View file

@ -142,90 +142,6 @@ naughty.connect_signal("request::display", function(n)
style = { underline_normal = false, underline_selected = true },
widget = naughty.list.actions
}
-- Custom notification layout
naughty.layout.box {
notification = n,
type = "notification",
screen = awful.screen.preferred(),
shape = gears.shape.rounded_rectangle,
widget_template = {
{
{
{
{
{
{
{
{
{
{
{
markup = n.app_name or 'System Notification',
font = 'VictorMono Nerd Font 10',
align = 'center',
valign = 'center',
widget = wibox.widget.textbox
},
margins = beautiful.notification_margin,
widget = wibox.container.margin,
},
bg = '#000000'.. '44',
widget = wibox.container.background,
},
{
{
{
resize_strategy = 'center',
widget = naughty.widget.icon,
},
margins = beautiful.notification_margin,
widget = wibox.container.margin,
},
{
{
layout = wibox.layout.align.vertical,
expand = 'none',
nil,
{
{
align = 'center',
widget = naughty.widget.title
},
{
align = "center",
widget = naughty.widget.message,
},
layout = wibox.layout.fixed.vertical
},
nil
},
margins = beautiful.notification_margin,
widget = wibox.container.margin,
},
layout = wibox.layout.fixed.horizontal,
},
fill_space = true,
spacing = beautiful.notification_margin,
layout = wibox.layout.fixed.vertical,
},
-- Margin between the fake background
-- Set to 0 to preserve the 'titlebar' effect
margins = dpi(0),
widget = wibox.container.margin,
},
bg = beautiful.bg_normal,
widget = wibox.container.background,
},
-- Notification action list
-- naughty.list.actions,
actions_template,
spacing = dpi(4),
layout = wibox.layout.fixed.vertical,
},
bg = beautiful.bg_normal,
id = "background_role",
shape = gears.shape.rounded_rect,
-- Custom notification layout
naughty.layout.box {
notification = n,

View file

@ -1,5 +1,5 @@
pcall(require, "luarocks.loader")
local fennel = require("./fennel")
local fennel = require("fennel")
fennel.path = fennel.path .. ";.config/awesome/?.fnl"
table.insert(package.loaders or package.searchers, fennel.make_searcher({correlate=true}))
require("init") -- loads init.fnl