-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
]]

--[[
${voffset 0}${offset 5}${color 73AEB4}K ${color 7D8C93}$kernel${color 73AEB4}${offset 15}C ${color 7D8C93}${cpu cpu0}%${color 73AEB4}${offset 15}M ${color 7D8C93}${memperc}%  ${mem} / ${memmax}${color 73AEB4}${offset 15}H${color 7D8C93} /h ${fs_used_perc /home}%${color 73AEB4}${offset 15}N${color 7D8C93}  ${if_up eth0}eth0  d ${downspeedgraph eth0 12,65 000000 ff0000} u ${upspeedgraph 12,65 000000 00ff00}${else}${if_up wlan0}wlan0 d ${downspeedgraph wlan0 12,65 000000 ff0000} u ${upspeedgraph wlan0 12,65 000000 00ff00}${endif}${endif} \
${offset 15}${if_existing /sys/class/power_supply/BAT0/}${color 73AEB4}  B ${color 7D8C93}${execpi 60 acpi -b | awk '{print $3}' | cut -c1-4} ${battery_percent BAT0}% ${battery_time BAT0}${endif}

]]

conky.config = {
    alignment = 'bottom_left',
    background = false,
    border_width = 1,
    cpu_avg_samples = 2,
	default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'Liberation Sans:size=11',
    gap_x = 12,
    gap_y = 0,
    minimum_height = 5,
	minimum_width = 1,
	maximum_width = 1200,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

conky.text = [[
${voffset 0}${offset 5}${color 73AEB4}K ${color 7D8C93}$kernel${color 73AEB4} \
${goto 140}C ${color 7D8C93}${cpu cpu0}%${color 73AEB4} \
${goto 195}M ${color 7D8C93}${memperc}%  ${mem} / ${memmax}${color 73AEB4} \
${goto 370}H${color 7D8C93} /h ${fs_used_perc /home}%${color 73AEB4} \
${goto 445}N${color 7D8C93}  ${if_up eth0}eth0  d ${downspeedgraph eth0 12,65 000000 ff0000} u ${upspeedgraph 12,65 000000 00ff00}${else}${if_up wlan0}wlan0 d ${downspeedgraph wlan0 12,65 000000 ff0000} u ${upspeedgraph wlan0 12,65 000000 00ff00}${endif}${endif} \
${goto 650}${if_existing /sys/class/power_supply/BAT0/}${color 73AEB4}  B ${color 7D8C93}${execpi 60 acpi -b | awk '{print $3}' | cut -c1-4} ${battery_percent BAT0}% ${battery_time BAT0}${endif} 

]]
