+
+-- {{{ Reusable separators
+spacer = widget({ type = "textbox", name = "spacer" })
+separator = widget({ type = "textbox", name = "separator" })
+spacer.text = " "
+separator.text = "٭"
+-- }}}
+
+---- {{{ CPU usage and temperature
+---- Widget icon
+--cpuicon = widget({ type = "imagebox", name = "cpuicon" })
+--cpuicon.image = image(beautiful.widget_cpu)
+---- Initialize widgets
+--thermalwidget = widget({ type = "textbox", name = "thermalwidget" })
+--cpuwidget = awful.widget.graph({ layout = awful.widget.layout.horizontal.rightleft })
+---- Graph properties
+--cpuwidget:set_width(50)
+----cpuwidget:set_scale(false)
+--cpuwidget:set_max_value(100)
+--cpuwidget:set_background_color(beautiful.fg_off_widget)
+--cpuwidget:set_border_color(beautiful.border_widget)
+--cpuwidget:set_color(beautiful.fg_end_widget)
+--cpuwidget:set_gradient_angle(0)
+--cpuwidget:set_gradient_colors({
+-- beautiful.fg_end_widget,
+-- beautiful.fg_center_widget,
+-- beautiful.fg_widget })
+---- Register widgets
+--vicious.register(cpuwidget, vicious.widgets.cpu, "$1")
+--vicious.register(thermalwidget, vicious.widgets.thermal, "CPU: $1°C", 19, "hwmon0")
+---- }}}
+
+-- Battery widget
+--batterywidget = widget({ type = 'progressbar', name = 'batterywidget' })
+--batterywidget.width = 100
+--batterywidget.height = 0.8
+--batterywidget.gap = 1
+--batterywidget.border_padding = 1
+--batterywidget.border_width = 1
+--batterywidget.ticks_count = 10
+--batterywidget.ticks_gap = 1
+--batterywidget.vertical = false
+--batterywidget:bar_properties_set('bat', {
+-- bg = 'black',
+-- fg = 'blue4',
+-- fg_off = 'red',
+-- reverse = false,
+-- min_value = 0,
+-- max_value = 100
+--})
+