summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2020-02-22 13:35:22 -0500
committerstreetturtle <streetturtle@gmail.com>2020-02-22 13:35:22 -0500
commit88e7d9ac99738f1f079359a2af66d728251c3ede (patch)
treecd2895ad37ead641654ff7b8d227ad8f9776c118
parent83376adcfa67d16f073e883f116116dd0efb7a0a (diff)
[volume-widget] fix #118
-rw-r--r--volume-widget/README.md2
-rw-r--r--volume-widget/volume.lua3
2 files changed, 3 insertions, 2 deletions
diff --git a/volume-widget/README.md b/volume-widget/README.md
index c83c490..e43177a 100644
--- a/volume-widget/README.md
+++ b/volume-widget/README.md
@@ -11,7 +11,7 @@ It is possible to customize widget by providing a table with all or some of the
| Name | Default | Description |
|---|---|---|
| `volume_audio_controller` | `pulse` | audio device |
-| `notification` | `false` | Display a notification on mouseover |
+| `display_notification` | `false` | Display a notification on mouseover |
| `notification_position` | `top_right` | The notification position |
## Installation
diff --git a/volume-widget/volume.lua b/volume-widget/volume.lua
index 749f1f6..ef95550 100644
--- a/volume-widget/volume.lua
+++ b/volume-widget/volume.lua
@@ -24,7 +24,7 @@ local function worker(args)
local args = args or {}
local volume_audio_controller = args.volume_audio_controller or 'pulse'
- local display_notification = args.notification or 'false'
+ local display_notification = args.display_notification or false
local position = args.notification_position or "top_right"
local device_arg = ''
if volume_audio_controller == 'pulse' then
@@ -125,6 +125,7 @@ local function worker(args)
volume_widget:connect_signal("mouse::enter", function() show_volume(volume_icon_name) end)
volume_widget:connect_signal("mouse::leave", function() naughty.destroy(notification) end)
end
+
watch(GET_VOLUME_CMD, 1, update_graphic, volume_widget)
return volume_widget