diff options
author | streetturtle <streetturtle@gmail.com> | 2020-12-05 20:57:04 -0500 |
---|---|---|
committer | streetturtle <streetturtle@gmail.com> | 2020-12-05 20:57:04 -0500 |
commit | a0cd854a4d36167456bb28d255bf96a32321bf2a (patch) | |
tree | b42aa4e39d0b46144ed64d1d4f20e90c28465d3d /mpdarc-widget | |
parent | d9eb3885eea90e06b79ff8fc4b2d1c1b8f5e4cfd (diff) |
fix more warnings
Diffstat (limited to 'mpdarc-widget')
-rw-r--r-- | mpdarc-widget/mpdarc.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mpdarc-widget/mpdarc.lua b/mpdarc-widget/mpdarc.lua index d70e6ee..f1d6930 100644 --- a/mpdarc-widget/mpdarc.lua +++ b/mpdarc-widget/mpdarc.lua @@ -25,7 +25,7 @@ local PAUSE_ICON_NAME = PATH_TO_ICONS .. "/actions/24/player_pause.png" local PLAY_ICON_NAME = PATH_TO_ICONS .. "/actions/24/player_play.png" local STOP_ICON_NAME = PATH_TO_ICONS .. "/actions/24/player_stop.png" -local icon = wibox.widget { +local icon = wibox.widget { id = "icon", widget = wibox.widget.imagebox, image = PLAY_ICON_NAME @@ -58,7 +58,7 @@ local update_graphic = function(widget, stdout, _, _, _) stdout = string.gsub(stdout, "\n", "") local mpdpercent = string.match(stdout, "(%d%d)%%") local mpdstatus = string.match(stdout, "%[(%a+)%]") - if mpdstatus == "playing" then + if mpdstatus == "playing" then icon.image = PLAY_ICON_NAME widget.colors = { beautiful.widget_main_color } widget.value = tonumber((100-mpdpercent)/100) @@ -93,7 +93,7 @@ mpdarc:connect_signal("button::press", function(_, _, _, button) end) local notification -function show_MPD_status() +local function show_MPD_status() spawn.easy_async(GET_MPD_CMD, function(stdout, _, _, _) notification = naughty.notify { |