From 88e7d9ac99738f1f079359a2af66d728251c3ede Mon Sep 17 00:00:00 2001 From: streetturtle Date: Sat, 22 Feb 2020 13:35:22 -0500 Subject: [volume-widget] fix #118 --- volume-widget/README.md | 2 +- volume-widget/volume.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'volume-widget') 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 -- cgit v1.2.3