summaryrefslogtreecommitdiff
path: root/mpris-widget
diff options
context:
space:
mode:
authorRomanos Skiadas <rom.skiad@gmail.com>2021-10-15 18:18:30 +0300
committerRomanos Skiadas <rom.skiad@gmail.com>2021-10-15 18:18:30 +0300
commit2b829c72575bfd31aec5ad7606bc746025a9d027 (patch)
treeda5f286e59131fa25ae65375def23af277a266c0 /mpris-widget
parent588227cc1ad051b4e921a97271ed8e80456396a6 (diff)
mpris-widget: remove more dead code
no need to update a widget that is never updated
Diffstat (limited to 'mpris-widget')
-rw-r--r--mpris-widget/init.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/mpris-widget/init.lua b/mpris-widget/init.lua
index 5bb5fc6..0f84161 100644
--- a/mpris-widget/init.lua
+++ b/mpris-widget/init.lua
@@ -152,11 +152,6 @@ local function worker()
}
local mpdarc_icon_widget = wibox.container.mirror(mpdarc, {horizontal = true})
- local mpdarc_current_song_widget = wibox.widget {
- id = 'current_song',
- widget = wibox.widget.textbox,
- font = 'Play 10'
- }
local update_graphic = function(widget, stdout, _, _, _)
local words = {}
@@ -178,22 +173,18 @@ local function worker()
mpdarc_icon_widget.visible = true
icon.image = PLAY_ICON_NAME
widget.colors = {beautiful.widget_main_color}
- mpdarc_current_song_widget.markup = current_song
widget:set_text(artist, current_song)
elseif player_status == "Paused" then
mpdarc_icon_widget.visible = true
icon.image = PAUSE_ICON_NAME
widget.colors = {beautiful.widget_main_color}
- mpdarc_current_song_widget.markup = current_song
widget:set_text(artist, current_song)
elseif player_status == "Stopped" then
mpdarc_icon_widget.visible = true
icon.image = STOP_ICON_NAME
- mpdarc_current_song_widget.markup = ""
else -- no player is running
icon.image = LIBRARY_ICON_NAME
mpdarc_icon_widget.visible = false
- mpdarc_current_song_widget.markup = ""
widget.colors = {beautiful.widget_red}
end
end