Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. cpu_graph = wibox.widget {
  2.     widget = wibox.widget.graph,
  3.     width = 40,
  4. }
  5. vicious.cache(vicious.widgets.cpu)
  6. vicious.register(cpu_graph, vicious.widgets.cpu, "$1", 2)
  7. cpu_text = wibox.widget {
  8.     align = 'center',
  9.     widget = wibox.widget.textbox
  10. }
  11. vicious.register(cpu_text, vicious.widgets.cpu, "$1%", 2)
  12. cpu_txt_bg = wibox.container.background(
  13.     cpu_text,
  14.     '#ff0000',
  15.     gears.shape.rectangle
  16. )
  17. cpu_graph_s = wibox.widget {
  18.     wibox.container.mirror(cpu_graph, { horizontal = true }),
  19.     cpu_txt_bg,
  20.     layout = wibox.layout.stack
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement