SHARE
TWEET

fs_widget_awesome

helenaryuu Dec 12th, 2012 688 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- {{{ Filesystem info
  2. -- Home Icons
  3. fshomeicon = widget({ type = "imagebox" })
  4. fshomeicon.image = image(beautiful.widget_fshome)
  5. fshomeicon.resize = false
  6. awful.widget.layout.margins[fshomeicon] = { top = 2 }
  7. -- Root icon
  8. fsrooticon = widget({ type = "imagebox" })
  9. fsrooticon.image = image(beautiful.widget_fsroot)
  10. fsrooticon.resize = false
  11. awful.widget.layout.margins[fsrooticon] = { top = 2 }
  12. -- Remaining
  13. fsh = widget({ type = "textbox" })
  14. vicious.register(fsh, vicious.widgets.fs, "${/home avail_gb}GB", 599)
  15. fsr = widget({ type = "textbox" })
  16. vicious.register(fsr, vicious.widgets.fs, "${/ avail_gb}GB", 599)
  17. -- Home Meter
  18. fshbar = awful.widget.progressbar()
  19. fshbar:set_width(44)
  20. fshbar:set_height(9)
  21. fshbar:set_vertical(false)
  22. fshbar:set_background_color("#3F3F3F")
  23. fshbar:set_color("#ff6565" )
  24. vicious.register(fshbar, vicious.widgets.fs, "${/home used_p}", 1501)
  25. -- Root Meter
  26. fsrbar = awful.widget.progressbar()
  27. fsrbar:set_width(44)
  28. fsrbar:set_height(9)
  29. fsrbar:set_vertical(false)
  30. fsrbar:set_background_color("#3F3F3F")
  31. fsrbar:set_color("#ff6565" )
  32. vicious.register(fsrbar, vicious.widgets.fs, "${/home used_p}", 1501)
  33. -- Align progressbars
  34. awful.widget.layout.margins[fshbar.widget] = { top = 4 }
  35. awful.widget.layout.margins[fsrbar.widget] = { top = 4 }
  36. -- Cache that shit
  37. vicious.cache(vicious.widgets.fs)
  38. -- }}}
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