rc.lua: Enable the new notification system by default.

This commit is contained in:
Emmanuel Lepage Vallee 2020-02-16 02:25:17 -05:00
parent f50a84b70b
commit ea79035e71
1 changed files with 18 additions and 0 deletions

View File

@ -537,6 +537,24 @@ client.connect_signal("request::titlebars", function(c)
layout = wibox.layout.align.horizontal layout = wibox.layout.align.horizontal
} }
end) end)
-- {{{ Notifications
ruled.notification.connect_signal('request::rules', function()
-- All notifications will match this rule.
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)
-- }}} -- }}}
-- Enable sloppy focus, so that focus follows mouse. -- Enable sloppy focus, so that focus follows mouse.