From 381009397cd201e5534d7109653bcd3768c8b1a2 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 17 Sep 2020 06:46:39 -0500 Subject: [PATCH] updates to fix after fennel moves --- awesome/module/notifications.lua | 84 -------------------------------- awesome/rc.lua | 2 +- 2 files changed, 1 insertion(+), 85 deletions(-) diff --git a/awesome/module/notifications.lua b/awesome/module/notifications.lua index 28a429e..b177c29 100644 --- a/awesome/module/notifications.lua +++ b/awesome/module/notifications.lua @@ -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, diff --git a/awesome/rc.lua b/awesome/rc.lua index 6a85b6e..c2bb16a 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -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