1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2025-01-10 17:58:09 +00:00

packed arrowbar

This commit is contained in:
kelpine 2014-05-08 13:42:46 -05:00
parent 4f2a74e8e8
commit d446f26b73

View file

@ -122,7 +122,7 @@ lain.widgets.calendar:attach(mytextclock, { font_size = 10 })
weathericon = wibox.widget.imagebox(beautiful.widget_weather) weathericon = wibox.widget.imagebox(beautiful.widget_weather)
yawn = lain.widgets.yawn(yahoo_oid, { yawn = lain.widgets.yawn(yahoo_oid, {
settings = function() settings = function()
widget:set_markup(markup("#eca4c4", forecast:lower() .. " @ " .. units .. "°C ")) widget:set_markup(markup("#eca4c4", forecast:lower() .. " @ " .. units .. "°C"))
end end
}) })
@ -175,7 +175,7 @@ mpdwidgetbg = wibox.widget.background(mpdwidget, "#313131")
memicon = wibox.widget.imagebox(beautiful.widget_mem) memicon = wibox.widget.imagebox(beautiful.widget_mem)
memwidget = lain.widgets.mem({ memwidget = lain.widgets.mem({
settings = function() settings = function()
widget:set_text(" " .. mem_now.used .. "MB ") widget:set_text("" .. mem_now.used .. "MB")
end end
}) })
@ -183,7 +183,8 @@ memwidget = lain.widgets.mem({
cpuicon = wibox.widget.imagebox(beautiful.widget_cpu) cpuicon = wibox.widget.imagebox(beautiful.widget_cpu)
cpuwidget = wibox.widget.background(lain.widgets.cpu({ cpuwidget = wibox.widget.background(lain.widgets.cpu({
settings = function() settings = function()
widget:set_text(" " .. cpu_now.usage .. "% ")
widget:set_text("" .. cpu_now.usage .. "%")
end end
}), "#313131") }), "#313131")
@ -191,7 +192,7 @@ cpuwidget = wibox.widget.background(lain.widgets.cpu({
tempicon = wibox.widget.imagebox(beautiful.widget_temp) tempicon = wibox.widget.imagebox(beautiful.widget_temp)
tempwidget = lain.widgets.temp({ tempwidget = lain.widgets.temp({
settings = function() settings = function()
widget:set_text(" " .. coretemp_now .. "°C ") widget:set_text("" .. coretemp_now .. "°C")
end end
}) })
@ -199,7 +200,7 @@ tempwidget = lain.widgets.temp({
fsicon = wibox.widget.imagebox(beautiful.widget_hdd) fsicon = wibox.widget.imagebox(beautiful.widget_hdd)
fswidget = lain.widgets.fs({ fswidget = lain.widgets.fs({
settings = function() settings = function()
widget:set_text(" " .. fs_now.used .. "% ") widget:set_text("" .. fs_now.used .. "%")
end end
}) })
fswidgetbg = wibox.widget.background(fswidget, "#313131") fswidgetbg = wibox.widget.background(fswidget, "#313131")
@ -219,7 +220,7 @@ batwidget = lain.widgets.bat({
else else
baticon:set_image(beautiful.widget_battery) baticon:set_image(beautiful.widget_battery)
end end
widget:set_markup(" " .. bat_now.perc .. "% ") widget:set_markup(bat_now.perc .. "%")
end end
}) })
@ -237,7 +238,7 @@ volumewidget = lain.widgets.alsa({
volicon:set_image(beautiful.widget_vol) volicon:set_image(beautiful.widget_vol)
end end
widget:set_text(" " .. volume_now.level .. "% ") widget:set_text("" .. volume_now.level .. "%")
end end
}) })
@ -246,9 +247,9 @@ neticon = wibox.widget.imagebox(beautiful.widget_net)
neticon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(iptraf) end))) neticon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(iptraf) end)))
netwidget = wibox.widget.background(lain.widgets.net({ netwidget = wibox.widget.background(lain.widgets.net({
settings = function() settings = function()
widget:set_markup(markup("#7AC82E", " " .. net_now.received) widget:set_markup(markup("#7AC82E", "" .. net_now.received)
.. " " .. .. " " ..
markup("#46A8C3", " " .. net_now.sent .. " ")) markup("#46A8C3", "" .. net_now.sent .. ""))
end end
}), "#313131") }), "#313131")