diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-07-26 23:56:57 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-07-26 23:56:57 -0300 |
commit | 498d3a8d17cc746451fdecb4b431e99f2b97d95a (patch) | |
tree | 9b237d45a3ca6059cc32c71c70d6238e1042368e | |
parent | c4a9c4d17afe6074397a8524ae46919f6127f716 (diff) | |
download | awesome-498d3a8d17cc746451fdecb4b431e99f2b97d95a.tar.gz awesome-498d3a8d17cc746451fdecb4b431e99f2b97d95a.tar.bz2 |
Coding style
-rw-r--r-- | config.dot/awesome.link/widgets.lua | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/config.dot/awesome.link/widgets.lua b/config.dot/awesome.link/widgets.lua index d6ee20a..c6e5a8f 100644 --- a/config.dot/awesome.link/widgets.lua +++ b/config.dot/awesome.link/widgets.lua @@ -93,7 +93,7 @@ memicon.image = image(beautiful.widget_mem) baticon = widget ({type = "imagebox" }) baticon.image = image(beautiful.widget_battery) -batwidget = widget({ type = "textbox" }) +batwidget = widget({ type = "textbox" }) vicious.register( batwidget, vicious.widgets.bat, '<span background="#92B0A0" font="Terminus 12"> <span font="Terminus 9" color="#FFFFFF" background="#92B0A0">$1$2% </span></span>', 1, "BAT0" ) --{{---| Net widget |------------------------------------------------------------------------------- @@ -102,24 +102,24 @@ netwidget = widget({ type = "textbox" }) vicious.register(netwidget, vicious.widgets.net, '<span background="#C2C2A4" font="Terminus 12"> <span font="Terminus 9" color="#FFFFFF">${eth0 down_kb} ↓↑ ${eth0 up_kb}</span> </span>', 3) -neticon = widget ({type = "imagebox" }) +neticon = widget ({type = "imagebox" }) neticon.image = image(beautiful.widget_net) netwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(iptraf) end))) --{{---| Binary Clock |----------------------------------------------------------------------------- -binaryclock = {} -binaryclock.widget = widget({type = "imagebox"}) -binaryclock.w = 42 -binaryclock.h = 16 -binaryclock.show_sec = true -binaryclock.color_active = beautiful.binclock_fga -binaryclock.color_bg = beautiful.binclock_bg +binaryclock = {} +binaryclock.widget = widget({type = "imagebox"}) +binaryclock.w = 42 +binaryclock.h = 16 +binaryclock.show_sec = true +binaryclock.color_active = beautiful.binclock_fga +binaryclock.color_bg = beautiful.binclock_bg binaryclock.color_inactive = beautiful.binclock_fgi -binaryclock.dotsize = math.floor(binaryclock.h / 5) -binaryclock.step = math.floor(binaryclock.dotsize / 3) -binaryclock.widget.image = image.argb32(binaryclock.w, binaryclock.h, nil) +binaryclock.dotsize = math.floor(binaryclock.h / 5) +binaryclock.step = math.floor(binaryclock.dotsize / 3) +binaryclock.widget.image = image.argb32(binaryclock.w, binaryclock.h, nil) if (binaryclock.show_sec) then binaryclock.timeout = 1 else binaryclock.timeout = 20 end binaryclock.DEC_BIN = function(IN) local B,K,OUT,I,D=2,"01","",0 |