From f0b32f45746c026d402651013b7e98315d6956a1 Mon Sep 17 00:00:00 2001 From: delta Date: Sat, 4 Mar 2023 22:04:55 +0100 Subject: restructure awesome config, add fresnel --- .config/awesome/components/signals/naughty.lua | 64 -------------------------- 1 file changed, 64 deletions(-) delete mode 100644 .config/awesome/components/signals/naughty.lua (limited to '.config/awesome/components/signals/naughty.lua') diff --git a/.config/awesome/components/signals/naughty.lua b/.config/awesome/components/signals/naughty.lua deleted file mode 100644 index bab4712..0000000 --- a/.config/awesome/components/signals/naughty.lua +++ /dev/null @@ -1,64 +0,0 @@ -local awful = require "awful" -local vars = require "themes.prismite.vars" -local wibox = require "wibox" -local naughty = require "naughty" -local xresources = require "beautiful.xresources" -local dpi = xresources.apply_dpi - -function build_notification(n) - - - local popup = awful.popup { - widget = { - { - { - widget = naughty.widget.icon, - image = n.image, - forced_height = 64, - forced_width = 64, - clip_shape = vars.shape - }, - { - { - widget = wibox.widget.textbox, - text = n.title - }, - { - widget = wibox.widget.textbox, - text = n.message - }, - layout = wibox.layout.fixed.vertical - }, - layout = wibox.layout.fixed.horizontal - }, - widget = wibox.container.margin, - margins = dpi(4) - }, - border_color = vars.colors.bright.black, - border_width = vars.border_width, - ontop = true, - placement = function(d) - return awful.placement.bottom_right(d, { - honor_padding = true - }) - end, - bg = vars.colors.bg, - shape = vars.shape, - } - - -- popup.y = screen[1].tiling_area.height - - dpi(4) -end - --- naughty.connect_signal("request::display", build_notification) - -naughty.connect_signal("request::display", function(n) - naughty.layout.box { notification = n } -end) - -naughty.connect_signal("request::display_error", function(message, startup) - naughty.notification { - urgency = "critical", - title = "Oops, an error happened"..(startup and " during startup!" or "!"), - message = message - } -end) -- cgit v1.2.3