Originally Posted by
Kaspro
Hello everyone, i'm new to conky and i need a guide to setup a simple conky, or simply a conky config file, all i need is to show the processor activity and temp, network activity (down/up) and the weather. That's it
Check my signature for a guide to setting up conky
A simple config file with what you want is not as simple as you think it is.
Processor activity - single core? Dual core - quad or more?
Temperatures - you need to install lm-sensors and hddtemp to start wilth and configure those to work with your system.
Weather - You will need to install "curl" for this. Now, while conky has a native weather command to get weather from NOAA it's not the best and has it's problems. There are various scripts for weather, again see my signature for three, they need varing degrees (pardon the pun) of work on your part setting them up for your location:
- v9000 LUA - has a couple of working examples. Probably the most complicated - but worth the effort
- Teo's x4 Sites - has at least one working example for each of the 4 scripts, from simple to "The Weather Man"
- Arclance - and interactive weather using various sites to get all the possible info available. "The Super Weather Man"
Network - ethX, wlanX ????
I would suggest you start with:
Code:
sudo apt-get install conky-all lm-sensors hddtemp curl
Here is a "very basic conky" that makes two assumptions: your drive is /dev/sda and you use eth0
Save it to: ~/.conkyrc once you have done the apt-get mentioned above.
Code:
# killall conky && conky -c ~/.conkyrc &
### Begin Window Settings ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager
#own_window_colour gray
own_window_class Conky
own_window_title Simple Default Conky
# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes
### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes
### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 80
minimum_size 235 0 ## width, height
#maximum_width 160 ## width
gap_x 5 # left-right
gap_y 5 # up-down
alignment top_right
################################################### End Window Settings ###
### Font Settings #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont Liberation Sans:size=15
xftfont Monofur:bold:size=13
# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 0.8
# Force UTF8? requires XFT ###
override_utf8_locale yes
### WARNING ### These do NOT play well with /media/5/Conky/LUA/draw-bg.lua ###
draw_shades yes #### <<<--- yes --- To see it easier on light screens.
#default_shade_color black
draw_outline no #### <<<--- yes --- Amplifies text if yes
default_outline_color black
##############################################################################
uppercase no
###################################################### End Font Settings ###
### Color Settings #########################################################
#default_shade_color black
#default_outline_color black
default_color DCDCDC #220 220 220 Gainsboro
color0 8FBC8F #143 188 143 DarkSeaGreen
color1 778899 #119 136 153 LightSlateGray
color2 FF8C00 #255 140 0 DarkOrange
color3 7FFF00 #127 255 0 Chartreuse
color4 FFA07A #255 160 122 LightSalmon
color5 FFDEAD #255 222 173 NavajoWhite
color6 00BFFF # 0 191 255 DeepSkyBlue
color7 00FFFF # 0 255 255 Cyan
color8 FFFF00 #255 255 0 Yellow
color9 FF0000 #255 0 0 Red
##################################################### End Color Settings ###
### Borders Section ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes
#default_graph_size 15 40
##################################################### End Borders Secton ###
### Miscellaneous Section ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes
# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none
# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256
# Subtract (file system) buffers from used memory?
no_buffers yes
# change GiB to G and MiB to M
short_units yes
# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2
# Maximum size of user text buffer, i.e. layout below TEXT line in config file
# (default is 16384 bytes)
# max_user_text 16384
# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
#temperature_unit Fahrenheit
############################################## End Miscellaneous Section ###
update_interval 1
TEXT
Time:${alignr 5}${time %T}
Date:${alignr 5}${time %x}
Uptime:${alignr 5}${uptime}
${alignr 5}% Used ↓ | Total
Root ${fs_used_perc /}${alignr 5}${fs_used /} | ${fs_size /}
Home ${fs_used_perc /home}${alignr 5}${fs_used /home} | ${fs_size /home}
RAM ${memperc}${alignr 5}${mem} | ${memmax}
Swap ${swapperc}${alignr 5}${swap} | ${swapmax}${font Monofur:size=6}
${font} CPU % Useage ${cpu cpu0}%${alignr 5}Avg ${cpu cpu0} %
${font} DISK Activity ${hr}
R${goto 40}${diskiograph_read /dev/sda 14,130 00ffff ff0000 5 -lt}${alignr 5}${diskio_read /dev/sda}
W${goto 40}${diskiograph_write /dev/sda 14,130 ff0000 00ffff 5 -lt}${alignr 5}${diskio_write /dev/sda}${font Monofur:size=6}
${font} NETWORK ${hr}
Dn${goto 40}${downspeedgraph eth0 14,130 00ffff ff0000 5 -lt}${alignr 5}${downspeedf eth0}
Up${goto 40}${upspeedgraph eth0 14,130 ff0000 00ffff 5 -lt}${alignr 5}${upspeedf eth0}
Start it in a terminal with: conky
Bookmarks