diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index a4138ab..2c17ef9 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -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 diff --git a/awesome/.config/awesome/themes/default/icons/cpu.png b/awesome/.config/awesome/themes/default/icons/cpu.png index 1ce87eb..203dd56 100644 Binary files a/awesome/.config/awesome/themes/default/icons/cpu.png and b/awesome/.config/awesome/themes/default/icons/cpu.png differ diff --git a/awesome/.config/awesome/themes/default/icons/mpd.png b/awesome/.config/awesome/themes/default/icons/mpd.png index efa8ec3..264d2c8 100644 Binary files a/awesome/.config/awesome/themes/default/icons/mpd.png and b/awesome/.config/awesome/themes/default/icons/mpd.png differ diff --git a/awesome/.config/awesome/themes/default/icons/ram.png b/awesome/.config/awesome/themes/default/icons/ram.png new file mode 100644 index 0000000..a3ae691 Binary files /dev/null and b/awesome/.config/awesome/themes/default/icons/ram.png differ diff --git a/awesome/.config/awesome/themes/default/theme.lua b/awesome/.config/awesome/themes/default/theme.lua index ca0885e..6dc55b2 100644 --- a/awesome/.config/awesome/themes/default/theme.lua +++ b/awesome/.config/awesome/themes/default/theme.lua @@ -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