Swapped play/pause icons for a standard interface

master
Mark 2021-12-07 16:12:42 -08:00
parent 1ab6b4f51d
commit 2770482bff
2 changed files with 10 additions and 10 deletions

View File

@ -24,7 +24,7 @@ mpc_widget.volume.forced_width = beautiful.dpi(10)
mpc_widget.icon_play = wibox.widget { mpc_widget.icon_play = wibox.widget {
resize = true, resize = true,
image = beautiful.icons.music.blue.play, image = beautiful.icons.music.blue.playing,
widget = wibox.widget.imagebox widget = wibox.widget.imagebox
} }
@ -149,11 +149,11 @@ mpc_widget.update_status = function(stdout)
stop = not (play or pause) stop = not (play or pause)
if (play) then if (play) then
mpc_widget.icon_play.image = beautiful.icons.music.blue.play mpc_widget.icon_play.image = beautiful.icons.music.blue.playing
elseif (pause) then elseif (pause) then
mpc_widget.icon_play.image = beautiful.icons.music.blue.pause mpc_widget.icon_play.image = beautiful.icons.music.blue.paused
elseif (stop) then elseif (stop) then
mpc_widget.icon_play.image = beautiful.icons.music.blue.stop mpc_widget.icon_play.image = beautiful.icons.music.blue.stopped
end end
volume = string.match(stdout, "volume: (%d?%d?%d)%%") volume = string.match(stdout, "volume: (%d?%d?%d)%%")

View File

@ -14,15 +14,15 @@ return {
music = { music = {
grey = { grey = {
play = conf.icon_dir .. "music/play-grey.svg", playing = conf.icon_dir .. "music/pause-grey.svg",
pause = conf.icon_dir .. "music/pause-grey.svg", paused = conf.icon_dir .. "music/play-grey.svg",
stop = conf.icon_dir .. "music/stop-grey.svg" stopped = conf.icon_dir .. "music/stop-grey.svg"
}, },
blue = { blue = {
play = conf.icon_dir .. "music/play-blue.svg", playing = conf.icon_dir .. "music/pause-blue.svg",
pause = conf.icon_dir .. "music/pause-blue.svg", paused = conf.icon_dir .. "music/play-blue.svg",
stop = conf.icon_dir .. "music/stop-blue.svg" stopped = conf.icon_dir .. "music/stop-blue.svg"
} }
}, },