SHARE
TWEET

Mem_widget_awesome

helenaryuu Dec 12th, 2012 809 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- {{{ Mem Usage
  2.   -- Icon
  3.     ramicon = widget({type = "imagebox" })
  4.     ramicon.image = image(beautiful.widget_mem)
  5.     ramicon.resize = false
  6.     awful.widget.layout.margins[ramicon] = { top = 3 }
  7.   -- Percentage
  8.     mempct = widget({ type= "textbox", align = "right"})
  9.     vicious.register(mempct, vicious.widgets.mem, "$1%", 13)
  10.   -- Meter
  11.     membar = awful.widget.progressbar()
  12.     membar:set_width(45)
  13.     membar:set_height(9)
  14.     membar:set_vertical(false)
  15.     membar:set_background_color("#3F3F3F")
  16.     membar:set_color("#ff6565" )
  17.     vicious.register(membar, vicious.widgets.mem, "$1", 13)
  18.   -- Megs used
  19.     memwidget = widget({ type= "textbox", align = "left"})
  20.     vicious.register(memwidget, vicious.widgets.mem, "$2Mb", 5)
  21.   -- Align progressbar
  22.     awful.widget.layout.margins[membar.widget] = { top = 4 }
  23.   -- Cache that shit
  24.     vicious.cache(vicious.widgets.mem)
  25. --- }}}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top