summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2020-02-22 13:40:18 -0500
committerstreetturtle <streetturtle@gmail.com>2020-02-22 13:40:18 -0500
commitc2a7908254ac242006bb93782ea9bcc88d1aa0d7 (patch)
tree7fd3a11677ab21eb4aa4dab27fb31519409e0baf
parent88e7d9ac99738f1f079359a2af66d728251c3ede (diff)
[battery-widget] rename notification parameter to dispay_notification
-rw-r--r--battery-widget/README.md2
-rw-r--r--battery-widget/battery.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/battery-widget/README.md b/battery-widget/README.md
index d5eb233..d58c420 100644
--- a/battery-widget/README.md
+++ b/battery-widget/README.md
@@ -26,7 +26,7 @@ It is possible to customize widget by providing a table with all or some of the
| `show_current_level`| false | Show current charge level |
| `margin_right`|0| The right margin of the widget|
| `margin_left`|0| The left margin of the widget|
-| `notification` | `false` | Display a notification on mouseover |
+| `display_notification` | `false` | Display a notification on mouseover |
| `notification_position` | `top_right` | The notification position |
| `warning_msg_title` | _Huston, we have a problem_ | Title of the warning popup |
| `warning_msg_text` | _Battery is dying_ | Text of the warning popup |
diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua
index b1a322c..b47794d 100644
--- a/battery-widget/battery.lua
+++ b/battery-widget/battery.lua
@@ -31,7 +31,7 @@ local function worker(args)
local margin_left = args.margin_left or 0
local margin_right = args.margin_right or 0
- local display_notification = args.notification or false
+ local display_notification = args.display_notification or false
local position = args.notification_position or "top_right"
local warning_msg_title = args.warning_msg_title or 'Huston, we have a problem'