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 = 390,
maximum_width = 390,

-- 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 = 'orange',
-- 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

-- shorten GiB to GB ..
short_units = true,


-- 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 = 'orange',
color3 = 'darkgoldenrod4',
color4 = 'cornsilk',
color5 = 'darkgoldenrod1',
color6 = 'ff00aa',
color7 = 'green',
color8 = 'darkgray',
color9 = 'darkorange',

-- time in numbers
-- ${voffset -120}${goto 180}${font Sans:italic:size=64}${color9}${exec date +%H}${font Sans:italic:size=16}${color9}${exec date +"%S"}${voffset -50}${goto 285}${font Sans:italic:size=32}${color9}${exec date +"%M"}	

-- ${hwmon 0 temp 1}°C
-- CPU:	${exec echo "`sensors | grep thermistor | cut -d+ -f2 | cut -d" " -f1`"}

-- ${font Mono:size=10}${color9}Accu: ${if_existing /proc/acpi/battery/BAT0/state}${battery_percent BAT0}% ${else}${if_existing /sys/class/power_supply/BAT0/uevent}${battery_percent BAT0}% ${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

-- time in 12'h and PMAM
-- #${execpi 1 /home/quait/.conky/Quait-conky/qclock/qclock.sh}${font Mono:bold:size=10}${alignr}${exec date +%r | cut -d' ' -f2}
-- ${color9}$stippled_hr
-- ${font Mono:size=10}${color9}${execpi 5 df -h --output=target,fstype,size,pcent,avail | grep -v "media\|tpm\|none\|shm\|devtmp\|tmpfs"}
-- df -h --output=target,size,pcent,avail | grep -v "dev\|var\|tpm\|none\|shm\|devtmp\|tmpfs"
-- ${font Mono:size=10}${color9}${execpi 5 qifsdf}
-- stuff after 'TEXT' will be formatted on screen
-- ${voffset -110}${goto 140}${font Sans:italic:size=64}${color9}${exec date +%H}${font Sans:italic:size=16}${color9}${exec date +"%S"}${voffset -50}${goto 255}${font Sans:italic:size=32}${color9}${exec date +"%M"}

-- ${if_existing /proc/net/route eth0}${font Mono:bold:size=10}${color9}active: ${gw_iface}			Up	|   Down 
-- Local-IP: ${addr eth0}	${upspeed}/s	|   ${downspeed}/s ${else}${if_existing /proc/net/route wlan0}${font Mono:bold:size=10}${color9}active: ${gw_iface} ${alignr}Wlan-IP: ${addr wlan0} ${endif}${endif}
-- ${if_existing /proc/net/route wlan0}${font Mono:bold:size=10}${color9}ESSID: ${wireless_essid wlan0}	  Up:${alignr}${upspeed wlan0}/s 
-- ${wireless_link_qual_perc wlan0}% / ${wireless_bitrate wlan0} / ${wireless_mode wlan0} 	 Down:${alignr}${downspeed wlan0}/s ${endif}

-- for GPU show temp old
-- 	GPU: ${hwmon 0 temp 1}°C
-- or newer
-- GPU:	${exec echo "`sensors | grep -v "thermistor\|+0.0°\|thermal* diode" | grep -i -m1 "temp1" | cut -d+ -f2 | cut -d" " -f1`"}
-- ${execpi 15 q-net-dev.sh}

}

conky.text = [[
${color9}${font Sans:italic:bold:size=10}${execi 3600 cat /etc/release | cut -d" " -f-3 | sed s/"release "//g} kernel ${kernel}
${font Mono:size=10}${color9}${execi 3600 cat /proc/cpuinfo | grep 'model name' | cut -c 14-50 | sed 's/Proc[a-z]*//g' | uniq}

${font Mono:italic:bold:size=10}${color7}${execpi 320 qitocal}${font Mono:bold:size=10}${alignr}${color7}${exec date +%r | cut -d' ' -f2} 
${execpi 1 qclock.sh}

${font Mono:italic:bold:size=10}${color9}You're welcome $USER!${alignr}${exec conky --version | grep "compiled" | cut -d"_" -f-1} 
$stippled_hr
${font Mono:bold:size=10}${color9}CPU: ${exec echo "`sensors | grep -i "Tctl" | cut -d+ -f2 | cut -d" " -f1`"} ${alignr}Usage:	${freq_g }GHz ${cpu }% ${cpubar  8,60} 
${font Mono:bold:size=10}${color9}MOBO: ${exec echo "`sensors | grep -i -m1 "temp1" | cut -d+ -f2 | cut -d" " -f1`"} ${alignr}Mem: ${mem} / ${memfree} ${memwithbuffersbar 8,60} 
GPU: ${exec echo "`sensors | grep -v "thermistor\|+0.0°\|thermal* diode" | grep -i -m1 "edge" | cut -d+ -f2 | cut -d" " -f1`"}	${alignr}Disk: ${fs_size} / ${fs_free} ${fs_bar 8,60} 
${color9}$stippled_hr
${if_existing /proc/net/route eth0}active: ${font Mono:bold:size=12}${color9}${gw_iface}	${font Mono:bold:size=10}${color9}		 down:	${alignr}${downspeed eth0}/s 
Local-IP: ${addr eth0} 	 up:${alignr}${upspeed eth0}/s ${else}${endif}
${if_existing /proc/net/route wlan0}active: ${font Mono:bold:size=12}${color9}${gw_iface}	${wireless_mode}
${font Mono:bold:size=10}${color9}Wlan-IP: ${addr wlan0} Wireless %/Q/M ${wireless_link_qual_perc} / ${wireless_bitrate}${endif}
$stippled_hr 
${execpi 150}${if_existing /proc/acpi/battery/BAT0/state}${else}${if_existing /sys/class/power_supply/BAT0/uevent}${if_match ${battery_percent BAT0} >= 60}${color green}ACPI: ${acpiacadapter} ${alignr}Power: ${battery BAT0} ${endif}${if_match ${battery_percent BAT0} < 60} ${if_match ${battery_percent BAT0} > 20} ${color yellow}ACPI: ${acpiacadapter} ${alignr}Power:	${battery_short BAT0} ${endif}${endif}${if_match ${battery_percent BAT0} <= 20}${color red}ACPI: ${acpiacadapter} ${alignr}Power: ${battery_short BAT0}${blink empty in}${endif} 
${battery_bar 8,120}${alignr}${battery_time BAT0} ${else}${color9}Accu: Not Present${alignr}${color green}Power: AC ${endif}${endif}
${color9}$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}
${color9}$stippled_hr
${font Mono:size=10}${color9}${execpi 10 qifsdf}

]]
