Advertisement
helenaryuu

fs_widget_awesome

Dec 12th, 2012
1,045
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.33 KB | None | 0 0
  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. -- }}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement