change icon correct mpd icon bug
This commit is contained in:
parent
52ed2d4bb0
commit
a3dd248631
@ -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,17 +204,17 @@ 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")
|
||||
mpdicon:emit_signal("widget::redraw_needed")
|
||||
mpdicon:emit_signal("widget::layout_changed")
|
||||
end
|
||||
widget:set_markup(markup.fontfg(beautiful.font, "#e54c62", artist) .. markup.fontfg(beautiful.font, "#b2b2b2", title))
|
||||
end
|
||||
|
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 |
BIN
awesome/.config/awesome/themes/default/icons/ram.png
Normal file
BIN
awesome/.config/awesome/themes/default/icons/ram.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
@ -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 = {}
|
||||
|
||||
@ -125,12 +125,12 @@ theme.layout_cornerse = themes_path.."default/layouts/cornersew.png"
|
||||
|
||||
--icon
|
||||
|
||||
theme.cpu_icon = icon_dir.."cpu.png"
|
||||
theme.cpu_icon = icon_dir .. "cpu.png"
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user