neodotfiles/user/.config/awesome/core/notif.lua

19 lines
529 B
Lua
Raw Normal View History

2022-09-12 23:22:46 +00:00
local awful = require("awful")
local ruled = require("ruled")
local naughty = require("naughty")
ruled.notification.connect_signal('request::rules', function()
-- Notifications timeout
ruled.notification.append_rule {
rule = { },
properties = {
screen = awful.screen.preferred,
implicit_timeout = 5,
}
}
end)
naughty.connect_signal("request::display", function(n)
naughty.layout.box { notification = n }
end)
naughty.config.defaults['icon_size'] = 80