Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cpu_graph = wibox.widget {
- widget = wibox.widget.graph,
- width = 40,
- }
- vicious.cache(vicious.widgets.cpu)
- vicious.register(cpu_graph, vicious.widgets.cpu, "$1", 2)
- cpu_text = wibox.widget {
- align = 'center',
- widget = wibox.widget.textbox
- }
- vicious.register(cpu_text, vicious.widgets.cpu, "$1%", 2)
- cpu_txt_bg = wibox.container.background(
- cpu_text,
- '#ff0000',
- gears.shape.rectangle
- )
- cpu_graph_s = wibox.widget {
- wibox.container.mirror(cpu_graph, { horizontal = true }),
- cpu_txt_bg,
- layout = wibox.layout.stack
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement