# /etc/conky/conky.conf: SliTaz Conky default configuration file.
#
# For configuration settings, please see:
# http://conky.sourceforge.net/config_settings.html
#
# For values to display, please see:
# http://conky.sourceforge.net/variables.html
#

# maintain spacing between certain elements (mono fonts)
use_spacer none

# set to yes if you want conky to be forked in the background
background no

# Xft font when Xft is enabled
use_xft yes
xftfont Liberation Sans-9

# Text alpha when using Xft
xftalpha 1

# Update interval in seconds
update_interval 2.0
update_interval_on_battery 5.0

# Create own window instead of using desktop
own_window yes
own_window_class Conky
own_window_type normal
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 250 5

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no # amplifies text

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_outer_margin 5

# border width
border_width 0

# Default colors and also border colors
default_color Dark Gray
default_shade_color Black
default_outline_color Dark Gray
color1 Dark Sea Green
color2 Dark Orange

# Text alignment, other possible values are commented
alignment top_right
#alignment top_left
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 24
gap_y 48

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# default bars size
default_bar_size 70 6
default_gauge_size 70 6
default_graph_size 70 6

# top name width
top_name_width 10

# how to check an interface for being up (up, link or address)
if_up_strictness link

#
# stuff after 'TEXT' will be formatted on screen
#

TEXT
${color2}SYSTEM ${hr}

#$desktop_name
$color  Slitaz release $alignr$color1${pre_exec awk '{printf "%s" $0}' /etc/slitaz-release}
$color  Kernel $alignr$color1$sysname $kernel $machine
$color  Hostname $alignr$color1$nodename
$color  Uptime $alignr$color1$uptime
${if_existing /sys/class/power_supply/BAT0}$color  Battery $alignr$color1${battery BAT0} ${battery_bar BAT0}$endif\
${if_existing /sys/class/power_supply/BAT1}$color  Battery 2 $alignr$color1${battery BAT1} ${battery_bar BAT1}$endif

${color2}RESOURCES ${hr}

# CPU0 is the total usage for all CPUs
$color  CPU $alignr$color1${cpu CPU0}% ${cpubar CPU0}
#$color1  ${cpugraph CPU0 $color $color1}
${if_existing /boot}$color  RAM $alignr$color1$memmax $membar\
${else}$color  RAM $alignr$color1${fs_size /} ${fs_bar /}$endif
${if_mounted swap}$color  Swap $swapperc%$alignr$color1$swap/$swapmax
${else}$color  Swap $alignr$color1 Disabled$endif
$color  Disk / $alignr$color1${fs_size /} ${fs_bar /}
${if_mounted /home}$color  Disk /home $alignr$color1${fs_size /home} ${fs_bar /home}${endif}

${color2}PROCESSING ${hr}

$color  Name  ${goto 100}   PID ${goto 160} CPU%  $alignr MEM% $color1
  ${top name 1} ${goto 100} ${top pid 1} ${goto 160} ${top cpu 1} $alignr ${top mem 1}
  ${top name 2} ${goto 100} ${top pid 2} ${goto 160} ${top cpu 2} $alignr ${top mem 2}
  ${top name 3} ${goto 100} ${top pid 3} ${goto 160} ${top cpu 3} $alignr ${top mem 3}
  ${top name 4} ${goto 100} ${top pid 4} ${goto 160} ${top cpu 4} $alignr ${top mem 4}

${color2}NETWORK ${hr}

# eth0
${if_up eth0}$color2  eth0 $alignr ${addr eth0}
    $color Up $alignr$color1${upspeed eth0} ${upspeedgraph eth0 6,70}
    $color Total $alignr$color1 ${totalup eth0}
    $color Down $alignr$color1 ${downspeed eth0} ${downspeedgraph eth0 6,70}
    $color Total $alignr$color1 $color1${totaldown eth0}
$endif \
# eth1
${if_up eth1}$color2 eth1 $alignr ${addr eth1}
    $color Up $alignr$color1${upspeed eth1} ${upspeedgraph eth1 6,70}
    $color Total $alignr$color1 ${totalup eth1}
    $color Down $alignr$color1 ${downspeed eth1} ${downspeedgraph eth1 6,70}
    $color Total $alignr$color1 $color1${totaldown eth1}
$endif \
# wlan0
${if_up wlan0}$color2 wlan0 $alignr ${addr wlan0}
    $color Up $alignr$color1${upspeed wlan0} ${upspeedgraph wlan0 6,70}
    $color Total $alignr$color1 ${totalup wlan0}
    $color Down $alignr$color1 ${downspeed wlan0} ${downspeedgraph wlan0 6,70}
    $color Total $alignr$color1 $color1${totaldown wlan0}
    $color SSID $alignr$color1 ${wireless_essid wlan0}
    $color Signal $alignr$color1 ${wireless_link_qual wlan0}% ${wireless_link_bar wlan0}
    $color Bitrate $alignr$color1 ${wireless_bitrate wlan0}
$endif
