From f7e7d0504722feb6ec6d8a88c6c2df8f1e3da54c Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 27 Jul 2015 15:32:11 +0200 Subject: [PATCH] doc: naughty: config.mapping moved to dbus.config.mapping --- lib/naughty/core.lua | 9 --------- lib/naughty/dbus.lua | 15 +++++++++------ 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/lib/naughty/core.lua b/lib/naughty/core.lua index d4b3d86a..3c9d3945 100644 --- a/lib/naughty/core.lua +++ b/lib/naughty/core.lua @@ -66,15 +66,6 @@ Naughty configuration - a table containing common popup settings. @field defaults Default values for the params to `notify()`. These can optionally be overridden by specifying a preset. - -@field mapping DBUS notification to preset mapping. - The first element is an object containing the filter If the rules in the - filter matches the associated preset will be applied The rules object can - contain: urgency, category, appname The second element is the preset - -@field mapping.1 low urgency -@field mapping.2 normal urgency -@field mapping.3 critical urgency --]] -- naughty.config = { diff --git a/lib/naughty/dbus.lua b/lib/naughty/dbus.lua index cb271f92..36f9c927 100644 --- a/lib/naughty/dbus.lua +++ b/lib/naughty/dbus.lua @@ -36,12 +36,15 @@ local urgency = { critical = "\2" } ---- DBUS notification to preset mapping --- The first element is an object containing the filter --- If the rules in the filter matches the associated preset will be applied --- The rules object can contain: urgency, category, appname --- The second element is the preset - +--- DBUS notification to preset mapping. +-- The first element is an object containing the filter. +-- If the rules in the filter match, the associated preset will be applied. +-- The rules object can contain the following keys: urgency, category, appname. +-- The second element is the preset. +-- @tfield table 1 low urgency +-- @tfield table 2 normal urgency +-- @tfield table 3 critical urgency +-- @table config.mapping dbus.config.mapping = { {{urgency = urgency.low}, naughty.config.presets.low}, {{urgency = urgency.normal}, naughty.config.presets.normal},