README: include pbar/graph properties in examples

This commit is contained in:
Adrian C. (anrxc) 2009-09-21 02:01:12 +02:00
parent c9fba4e0d2
commit 51d52551a3
1 changed files with 35 additions and 25 deletions

60
README
View File

@ -253,15 +253,6 @@ Memory widget
- executed every 13 seconds, appends "MB" to 2nd and 3rd argument
File system widget
fswidget = awful.widget.progressbar({ layout = awful.widget.layout.horizontal.rightleft })
-- after setting progressbar properties, you can register with:
vicious.register(fswidget, vicious.widgets.fs, '${/home usep}', 29, true)
- executed every 29 seconds, requests the value of the ${/home usep}
key (/home usage in percent), enables support for remote file
systems
HDD temperature widget
hddtempwidget = widget({ type = 'textbox', name = 'hddtempwidget' })
vicious.register(hddtempwidget, vicious.widgets.hddtemp, '${/dev/sda}°C', 19)
@ -270,22 +261,6 @@ HDD temperature widget
${/dev/sda} key/disk and appends "°C" to the returned value, does
not provide the port argument so default port is used
Battery widget
batwidget = awful.widget.progressbar({ layout = awful.widget.layout.horizontal.rightleft })
-- after setting progressbar properties, you can register with:
vicious.register(batwidget, vicious.widgets.bat, '$2', 61, 'BAT0')
- executed every 61 seconds, provides "BAT0" battery ID as an
argument
CPU usage widget
cpuwidget = awful.widget.graph({ layout = awful.widget.layout.horizontal.rightleft })
-- after setting graph properties, you can register with:
vicious.register(cpuwidget, vicious.widgets.cpu, '$1', 3)
- executed every 3 seconds, feeds the graph with total usage
percentage of all CPUs/cores
Mbox widget
mboxwidget = widget({ type = 'textbox', name = 'mboxwidget' })
vicious.register(mboxwidget, vicious.widgets.mbox, '$1', 5, '/home/user/mail/Inbox')
@ -300,6 +275,41 @@ Gmail widget
- executed every 10 minutes, provides a table with login information
as an argument, prepends "Mail: " to the returned value
Battery widget
batwidget = awful.widget.progressbar({ layout = awful.widget.layout.horizontal.rightleft })
batwidget:set_width(8)
batwidget:set_height(10)
batwidget:set_vertical(true)
batwidget:set_background_color('#494B4F')
batwidget:set_border_color(nil)
batwidget:set_color('#AECF96')
batwidget:set_gradient_colors({
'#AECF96',
'#88A175',
'#FF5656' })
vicious.register(batwidget, vicious.widgets.bat, '$2', 61, 'BAT0')
- executed every 61 seconds, requests the current battery charge
level and display a progressbar, provides "BAT0" battery ID as an
argument
CPU usage widget
cpuwidget = awful.widget.graph({ layout = awful.widget.layout.horizontal.rightleft })
cpuwidget:set_width(50)
cpuwidget:set_scale(false)
cpuwidget:set_max_value(100)
cpuwidget:set_background_color('#494B4F')
cpuwidget:set_border_color('#3F3F3F')
cpuwidget:set_color('#FF5656')
cpuwidget:set_gradient_colors({
'#FF5656',
'#88A175',
'#AECF96' })
vicious.register(cpuwidget, vicious.widgets.cpu, '$1', 3)
- executed every 3 seconds, feeds the graph with total usage
percentage of all CPUs/cores
All other widgets are used in the same manner, read each widget you
are interested in to see what data it returns. You can also use