From d3f18c87e8d4000bc25410be71b5de0496c5a00a Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Wed, 14 Oct 2009 01:35:27 +0200 Subject: rc.lua: removed obsolete widget names --- rc.lua | 56 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'rc.lua') diff --git a/rc.lua b/rc.lua index d9910dc..822fdf7 100644 --- a/rc.lua +++ b/rc.lua @@ -80,17 +80,17 @@ end -- {{{ Widgets configuration -- -- {{{ Reusable separators -local spacer = widget({ type = "textbox", name = "spacer" }) -local separator = widget({ type = "textbox", name = "separator" }) +local spacer = widget({ type = "textbox" }) +local separator = widget({ type = "textbox" }) spacer.text = " " separator.text = "|" -- }}} -- {{{ CPU usage and temperature -local cpuicon = widget({ type = "imagebox", name = "cpuicon" }) +local cpuicon = widget({ type = "imagebox" }) cpuicon.image = image(beautiful.widget_cpu) -- Initialize widgets -local cpuwidget = widget({ type = "textbox", name = "cpuwidget" }) +local tzswidget = widget({ type = "textbox" }) local cpugraph = awful.widget.graph() -- Graph properties cpugraph:set_width(50) @@ -103,20 +103,20 @@ cpugraph:set_gradient_colors({ beautiful.fg_end_widget, beautiful.fg_center_widget, beautiful.fg_widget }) -- Register widgets vicious.register(cpugraph, vicious.widgets.cpu, "$1") -vicious.register(cpuwidget, vicious.widgets.thermal, "$1°C", 19, "TZS0") +vicious.register(tzswidget, vicious.widgets.thermal, "$1°C", 19, "TZS0") -- }}} -- {{{ Battery state -local baticon = widget({ type = "imagebox", name = "baticon" }) +local baticon = widget({ type = "imagebox" }) baticon.image = image(beautiful.widget_bat) -- Initialize widget -batwidget = widget({ type = "textbox", name = "batwidget" }) +batwidget = widget({ type = "textbox" }) -- Register widget vicious.register(batwidget, vicious.widgets.bat, "$1$2%", 61, "BAT0") -- }}} -- {{{ Memory usage -local memicon = widget({ type = "imagebox", name = "memicon" }) +local memicon = widget({ type = "imagebox" }) memicon.image = image(beautiful.widget_mem) -- Initialize widget local membar = awful.widget.progressbar() @@ -135,7 +135,7 @@ vicious.register(membar, vicious.widgets.mem, "$1", 13) -- }}} -- {{{ File system usage -local fsicon = widget({ type = "imagebox", name = "fsicon" }) +local fsicon = widget({ type = "imagebox" }) fsicon.image = image(beautiful.widget_fs) -- Initialize widgets local fs = { @@ -168,13 +168,13 @@ vicious.register(fs.b, vicious.widgets.fs, "${/mnt/backup usep}", 599) -- }}} -- {{{ Network usage -local dnicon = widget({ type = "imagebox", name = "dnicon" }) -local upicon = widget({ type = "imagebox", name = "upicon" }) +local dnicon = widget({ type = "imagebox" }) +local upicon = widget({ type = "imagebox" }) dnicon.image = image(beautiful.widget_net) upicon.image = image(beautiful.widget_netup) -- Initialize widgets -local netwidget = widget({ type = "textbox", name = "netwidget" }) -local wetwidget = widget({ type = "textbox", name = "wetwidget" }) +local netwidget = widget({ type = "textbox" }) +local wetwidget = widget({ type = "textbox" }) -- Enable caching vicious.enable_caching(vicious.widgets.net) -- Register ethernet widget @@ -188,10 +188,10 @@ vicious.register(wetwidget, vicious.widgets.net, '