conky.config = {
-- Conky sample configuration
--
-- the list of variables has been removed from this file in favour
-- of keeping the documentation more maintainable.
-- Check http://conky.sf.net for an up-to-date-list.

-- set to yes if you want Conky to be forked in the background
background = yes,

-- X font when Xft is disabled, you can pick one with program xfontsel
-- font 5x7
-- font 6x10
-- font 7x13
-- font 8x13
-- font 9x15
-- font *mintsmild.se*
-- font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

-- Use Xft?
use_xft = true,

-- Xft font when Xft is enabled
-- xftfont = 'Bitstream Vera Sans Mono:size=10',

-- Text alpha when using Xft
xftalpha = 0.8,

-- Print everything to stdout?
-- out_to_console no

-- MPD host/port
-- mpd_host localhost
-- mpd_port 6600
-- mpd_password tinker_bell

-- Print everything to console?
-- out_to_console no

-- mail spool
-- mail_spool = '$MAIL',

-- Update interval in seconds
update_interval = 1.0,

-- This is the number of times Conky will update before quitting.
-- Set to zero to run forever.
total_run_times = 0,

-- Create own window instead of using desktop (required in nautilus)
own_window = true,
-- own_window = false,

-- If own_window is yes, you may use type normal, desktop or override
own_window_type = 'normal',
-- own_window_type = 'override',
-- own_window_type = 'desktop',
own_window_argb_visual = true,
own_window_argb_value = 255,
pad_percents = 0,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',

-- Use pseudo transparency with own_window?
own_window_transparent = true,

-- If own_window_transparent is set to no, you can set the background colour here
-- own_window_colour = 'hotpink',

-- If own_window is yes, these window manager hints may be used
-- own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

-- Use double buffering (reduces flicker, may not work for everyone)
double_buffer = true,

-- Minimum size of text area
-- minimum_size 280 5
minimum_width = 360,
maximum_width = 360,

-- Draw shades?
-- draw_shades = true
draw_shades = false,

-- Draw outlines?
draw_outline = false,

-- Draw borders around text
draw_borders = false,

-- Draw borders around graphs
-- draw_graph_borders = true,

-- STIPPled replace this:${font Mono:size=10}${color9}------------------------------------------
-- Stippled borders?
stippled_borders = 3,

-- border margins
border_inner_margin = 0,

-- border width
border_width = 0,

-- one processor's power
top_cpu_separate = true,

-- Default colors and also border colors
-- default_color = 'white',
-- default_shade_color = 'black',
-- default_outline_color = 'black',

-- Text alignment, other possible values are commented
-- alignment top_left
alignment = 'top_right',
-- alignment bottom_left
-- alignment bottom_right
-- alignment none

-- Gap between borders of screen and text
-- same thing as passing -x at command line
gap_x = 0,
gap_y = 50,

-- Human readable format?
format_human_readable = true,

-- Subtract file system buffers from used memory?
no_buffers = true,

-- set to yes if you want all text to be in uppercase
uppercase = false,

-- number of cpu samples to average
-- set to 1 to disable averaging
cpu_avg_samples = 2,

-- number of net samples to average
-- set to 1 to disable averaging
net_avg_samples = 2,

-- Force UTF8? note that UTF8 support required XFT
override_utf8_locale = true,

-- Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer = 'none',

-- Allow each port monitor to track at most this many connections (if 0 or not set, default is 256)
-- max_port_monitor_connections 256

-- Maximum number of special things, e.g. fonts, offsets, aligns, etc.
-- max_specials 512

-- Maximum size of buffer for user text, i.e. below TEXT line.
-- max_user_text 16384

-- variable is given either in format $variable or in ${variable}. Latter
-- allows characters right after the variable and must be used in network
-- stuff because of an argument
-- qi-colors
color1 = '505050',
color2 = 'darkblue',
color3 = 'darkgoldenrod4',
color4 = 'cornsilk',
color5 = 'darkgoldenrod1',
color6 = 'ff00aa',
color7 = 'green',
color8 = 'darkgray',
color9 = 'darkorange',


-- stuff after 'TEXT' will be formatted on screen
}

conky.text = [[
${goto 35}${color9}${font Sans:italic:bold:size=12}${exec cat /etc/release | cut -d" " -f-3 | sed s/"release "//g} on ${machine} 
${goto 75}with kernel ${kernel}
${alignr}${font Mono:size=10}${color9}${exec conky --version | grep "compiled" | cut -d"_" -f-1}

${voffset -10}${font Mono:italic:bold:size=10}${color7}${execpi 360 qitocal}
${voffset -120}${goto 175}${font Sans:italic:size=46}${color9}${exec date +%H}${font Sans:italic:size=34}${color9}${exec date +"%M"}${font Sans:italic:size=16}${color9}${exec date +"%S"}

${voffset 40}${font Mono:italic:bold:size=12}${color9}	You are welcome $USER! 
$stippled_hr
${font Mono:bold:size=10}${color9}Disk:	${fs_used} use / ${fs_free_perc}% free
${font Mono:bold:size=10}${color9}Mem:	${memperc}% use / ${memfree} free
${font Mono:bold:size=10}${color9}CPU:	${hwmon 2 temp 1}°C / ${cpu cpu0}% / ${freq_g 0} GHz
${font Mono:bold:size=10}${color9}Board:	${hwmon 2 temp 2}°C
${font Mono:bold:size=10}${color9}GPU:	${hwmon 0 temp 1}°C
$stippled_hr
${if_existing /proc/net/route eth0}${font Mono:bold:size=10}${color9}active: ${gw_iface}	Local-IP: ${addr eth0}${else}${if_existing /proc/net/route wlan0}${font Mono:bold:size=10}${color9}active: ${gw_iface}		Wlan-IP: 	${addr wlan0}${font Mono:bold:size=10}${color9}Wireless %/Q/M 	${wireless_link_qual_perc} / ${wireless_bitrate} / ${wireless_mode}${endif}
${font Mono:bold:size=10}${color9}download:		${downspeed}
${font Mono:bold:size=10}${color9}upload:		${upspeed}
$stippled_hr
${font Mono:bold:size=10}${color9}Threads Total: ${threads} / Running: ${running_threads}
$stippled_hr
${font Mono:bold:size=10}${color9} PID	|  CPU  % Proc 
${font Mono:size=10}${color9}${top pid 1}	|${top cpu 1} % ${top name 1}
${font Mono:size=10}${color9}${top pid 2}	|${top cpu 2} % ${top name 2}
${font Mono:size=10}${color9}${top pid 3}	|${top cpu 3} % ${top name 3}
${font Mono:size=10}${color9}${top pid 4}	|${top cpu 4} % ${top name 4}
${font Mono:size=10}${color9}${top pid 5}	|${top cpu 5} % ${top name 5}
$stippled_hr
${font Mono:bold:size=10}${color9}USB Devices Attached ${execpi 5 lsusb | grep -iv 'hub' | cut --fields=7- --delimiter=' ' | wc -l}
${color9}${font Mono:size=10}${execpi 5 lsusb | grep -iv 'hub' | cut --fields=7- --delimiter=' ' | cut -c 1-42}
$stippled_hr
${font Mono:size=10}${color9}Accu: ${if_existing /proc/acpi/battery/BAT1/state}${battery_percent BAT1}% ${else}${if_existing /sys/class/power_supply/BAT1/uevent}${battery_percent BAT1}% ${else}Not Present${endif}${endif}${alignr}${font Mono:size=10}${color9}Power: $eval${if_match "$battery_short" != "D"}${color green}AC $endif${if_match "$battery_short" == "D"}${color orange}$endif${color yellow}${if_match "$battery_short" == "C"}${color orange}Charching$endif${if_match "$battery_short" == "F"}${color green}${blink FULL}$endif${if_match "$battery_short" == "N"}${color green}${blink not present}$endif${if_match "$battery_short" == "E"}${color green}BAT-${blink empty}$endif
${color9}$stippled_hr
${font Mono:size=10}${color9}${execpi 5 df -h --output=target,fstype,size,pcent,avail | grep -v "tpm\|none\|shm\|devtmp\|tmpfs"}
${color9}$stippled_hr
]]

