change icon correct mpd icon bug

This commit is contained in:
vincent 2018-12-02 12:49:06 +01:00
parent 52ed2d4bb0
commit a3dd248631
5 changed files with 8 additions and 8 deletions

View File

@ -141,7 +141,7 @@ local cpu = lain.widget.cpu({
widget:set_markup(markup.fontfg(beautiful.font,beautiful.fg_normal, cpu_now.usage .. "% "))
end
})
local mymemicon =wibox.widget.imagebox(beautiful.ram_icon)
local mymem = lain.widget.mem({
settings = function()
widget:set_markup(markup.fontfg(beautiful.font,beautiful.fg_normal, mem_now.perc .. "% "))
@ -204,14 +204,14 @@ local mpd = lain.widget.mpd({
if mpd_now.state == "play" then
artist = mpd_now.artist .. " > "
title = mpd_now.title .. " "
mpdicon:set_image(beautiful.widget_note_on)
mpdicon:set_image(beautiful.mpd_icon)
elseif mpd_now.state == "pause" then
artist = "mpd "
title = "paused "
else
artist = ""
title = ""
--mpdicon:set_image() -- not working in 4.0
mpdicon:set_image() -- not working in 4.0
mpdicon._private.image = nil
mpdicon:emit_signal("widget::redraw_needed")
mpdicon:emit_signal("widget::layout_changed")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 B

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 365 B

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -8,7 +8,7 @@ local dpi = xresources.apply_dpi
local gfs = require("gears.filesystem")
local themes_path =os.getenv("HOME") .. "/.config/awesome/themes/"
local icon_dir = themes_path .. "/default/icons/"
local icon_dir = themes_path .. "default/icons/"
local theme = {}
@ -130,7 +130,7 @@ theme.net_up = icon_dir .. "net_up.png"
theme.net_down = icon_dir .. "net_down.png"
theme.spr_right = icon_dir .. "spr_right.png"
theme.mpd_icon = icon_dir .. "mpd.png"
theme.ram_icon = icon_dir .. "ram.png"
-- Generate Awesome icon:
theme.awesome_icon = theme_assets.awesome_icon(
theme.menu_height, theme.bg_focus, theme.fg_focus