dotfiles/awesome/theme/info/mem.lua

18 lines
380 B
Lua
Raw Permalink Normal View History

2023-01-30 15:23:16 +00:00
local theme = require('theme.base_theme')
local lain = require('lain')
local wibox = require('wibox')
local memory = lain.widget.mem({
settings = function()
-- luacheck: globals widget mem_now
widget:set_text(mem_now.used .. 'M')
end,
})
return {
{
widget = wibox.layout.fixed.horizontal(wibox.widget.imagebox(theme.widget_mem), memory.widget),
bg = '#e0da37',
},
}