README: standardize quotes

This commit is contained in:
Adrian C. (anrxc) 2010-03-12 22:06:31 +01:00
parent 8482b5407c
commit 0dd5b72f01
1 changed files with 21 additions and 21 deletions

42
README
View File

@ -341,31 +341,31 @@ registering widgets you have to add them to a wibox (statusbar) in
order to actually display them. order to actually display them.
Date widget Date widget
datewidget = widget({ type = 'textbox' }) datewidget = widget({ type = "textbox" })
vicious.register(datewidget, vicious.widgets.date, '%b %d, %R') vicious.register(datewidget, vicious.widgets.date, "%b %d, %R")
- updated every 2 seconds (the default interval), uses standard - updated every 2 seconds (the default interval), uses standard
date sequences as the format string date sequences as the format string
Memory widget Memory widget
memwidget = widget({ type = 'textbox' }) memwidget = widget({ type = "textbox" })
vicious.cache(vicious.widgets.mem) vicious.cache(vicious.widgets.mem)
vicious.register(memwidget, vicious.widgets.mem, '$1 ($2MB/$3MB)', 13) vicious.register(memwidget, vicious.widgets.mem, "$1 ($2MB/$3MB)", 13)
- updated every 13 seconds, appends "MB" to 2nd and 3rd returned - updated every 13 seconds, appends "MB" to 2nd and 3rd returned
values and enables caching of this widget type values and enables caching of this widget type
HDD temperature widget HDD temperature widget
hddtempwidget = widget({ type = 'textbox' }) hddtempwidget = widget({ type = "textbox" })
vicious.register(hddtempwidget, vicious.widgets.hddtemp, '${/dev/sda}°C', 19) vicious.register(hddtempwidget, vicious.widgets.hddtemp, "${/dev/sda} °C", 19)
- updated every 19 seconds, requests the temperature level of the - updated every 19 seconds, requests the temperature level of the
{/dev/sda} key/disk and appends "°C" to the returned value, does {/dev/sda} key/disk and appends "°C" to the returned value, does
not provide the port argument so default port is used not provide the port argument so default port is used
Mbox widget Mbox widget
mboxwidget = widget({ type = 'textbox' }) mboxwidget = widget({ type = "textbox" })
vicious.register(mboxwidget, vicious.widgets.mbox, '$1', 5, '/home/user/mail/Inbox') vicious.register(mboxwidget, vicious.widgets.mbox, "$1", 5, "/home/user/mail/Inbox")
- updated every 5 seconds, provides full path to the mbox as an - updated every 5 seconds, provides full path to the mbox as an
argument argument
@ -375,11 +375,11 @@ Battery widget
batwidget:set_width(8) batwidget:set_width(8)
batwidget:set_height(10) batwidget:set_height(10)
batwidget:set_vertical(true) batwidget:set_vertical(true)
batwidget:set_background_color('#494B4F') batwidget:set_background_color("#494B4F")
batwidget:set_border_color(nil) batwidget:set_border_color(nil)
batwidget:set_color('#AECF96') batwidget:set_color("#AECF96")
batwidget:set_gradient_colors({ '#AECF96', '#88A175', '#FF5656' }) batwidget:set_gradient_colors({ "#AECF96", "#88A175", "#FF5656" })
vicious.register(batwidget, vicious.widgets.bat, '$2', 61, 'BAT0') vicious.register(batwidget, vicious.widgets.bat, "$2", 61, "BAT0")
- updated every 61 seconds, requests the current battery charge - updated every 61 seconds, requests the current battery charge
level and displays a progressbar, provides "BAT0" battery ID as an level and displays a progressbar, provides "BAT0" battery ID as an
@ -388,10 +388,10 @@ Battery widget
CPU usage widget CPU usage widget
cpuwidget = awful.widget.graph() cpuwidget = awful.widget.graph()
cpuwidget:set_width(50) cpuwidget:set_width(50)
cpuwidget:set_background_color('#494B4F') cpuwidget:set_background_color("#494B4F")
cpuwidget:set_color('#FF5656') cpuwidget:set_color("#FF5656")
cpuwidget:set_gradient_colors({ '#FF5656', '#88A175', '#AECF96' }) cpuwidget:set_gradient_colors({ "#FF5656", "#88A175", "#AECF96" })
vicious.register(cpuwidget, vicious.widgets.cpu, '$1', 3) vicious.register(cpuwidget, vicious.widgets.cpu, "$1", 3)
- updated every 3 seconds, feeds the graph with total usage - updated every 3 seconds, feeds the graph with total usage
percentage of all CPUs/cores percentage of all CPUs/cores
@ -427,10 +427,10 @@ Example
seconds (the default interval) seconds (the default interval)
Example Example
uptimewidget = widget({ type = 'textbox' }) uptimewidget = widget({ type = "textbox" })
vicious.register(uptimewidget, vicious.widgets.uptime, vicious.register(uptimewidget, vicious.widgets.uptime,
function (widget, args) function (widget, args)
return string.format('Uptime: %2dd %02d:%02d ', args[1], args[2], args[3]) return string.format("Uptime: %2dd %02d:%02d ", args[1], args[2], args[3])
end, 61) end, 61)
- uses string.format for padding uptime values to a minimum amount - uses string.format for padding uptime values to a minimum amount
@ -442,9 +442,9 @@ textbox widgets by changing their .width field (by default width is
automatically adapted to text width). automatically adapted to text width).
Example Example
uptimewidget = widget({ type = 'textbox' }) uptimewidget = widget({ type = "textbox" })
uptimewidget.width, uptimewidget.align = 50, 'right' uptimewidget.width, uptimewidget.align = 50, "right"
vicious.register(uptimewidget, vicious.widgets.uptime, '$1 $2:$3', 61) vicious.register(uptimewidget, vicious.widgets.uptime, "$1 $2:$3", 61)
- forces a fix width of 50px to the uptime widget, and aligns its - forces a fix width of 50px to the uptime widget, and aligns its
text to the right text to the right