Skip to content

Instantly share code, notes, and snippets.

@ravicious
Created February 7, 2010 00:16
Show Gist options
  • Select an option

  • Save ravicious/297078 to your computer and use it in GitHub Desktop.

Select an option

Save ravicious/297078 to your computer and use it in GitHub Desktop.
# http://www.nibyblog.pl/2009/01/conky-wysoko-konfigurowalny-monitor-systemu-nie-tylko-systemu/
# http://img192.imageshack.us/img192/4665/pokapulpitconky1.png
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 2
# 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 yes
own_window_transparent yes
own_window_type override
#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 180 0
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_margin 5
# border width
border_width 1
# Default colors and also border colors
default_color white
#default_shade_color black
#default_outline_color white
own_window_colour white
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 15
gap_y 30
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# 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 yes
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none
#If you want a Gmail notify, put the this parameter after the line "${font PizzaDude Bullets:size=14}b${font} Public Ip: $alignr${execi 1 ~/.scripts/ip.sh}" in all 3 cases, whithout "#" and replace user password.
#${voffset 4}${font FreeSans:size=14}@${font}${execpi 300 python ~/.scripts/gmail_parser.py user password 3}
TEXT
SYSTEM ${hr 2}
${font OpenLogos:size=16}u${font} Kernel: ${alignr}$kernel na $machine
${font StyleBats:size=16}P${font} Częstotliwość CPU: ${alignr}${freq_g cpu1}GHz
${font StyleBats:size=16}A${font} CPU0: ${cpu cpu0}% ${alignr}${cpubar 8,60 cpu0}
${font StyleBats:size=16}A${font} CPU1: ${cpu cpu1}% ${alignr}${cpubar 8,60 cpu1}
${font StyleBats:size=16}g${font} RAM: $memperc%${alignr}${membar 8,60}
#${font StyleBats:size=16}j${font} SWAP: $swapperc% ${alignr}${swapbar 8,60}
${font StyleBats:size=16}t${font} Obciążenie: $alignr$loadavg
${font StyleBats:size=16}q${font} Czas pracy: ${alignr}${uptime}
TEMPERATURY ${hr 2}
CPU: $acpitemp C GPU: ${texeci 100 /home/rav/scripts/conky/nvidia} C $alignr HDD: ${texeci 100 /home/rav/scripts/conky/hdd} C
LAPTOP ${hr 2}
${font StyleBats:size=14}l${font} Zasilanie: ${alignr}$acpiacadapter - $battery
${font PizzaDude Bullets:size=12}m${font} Bateria: ${alignr}$battery_time ${battery_bar 8,60}
PARTYCJE ${hr 2}
${font PizzaDude Bullets:size=14}g${font} Root:
${fs_used /}/${fs_size /} $alignr${fs_bar 8,60 /}
${font PizzaDude Bullets:size=14}g${font} Home:
${fs_free /home}/${fs_size /home} $alignr${fs_bar 8,60 /home}
${font PizzaDude Bullets:size=13}Q${font} Odczytywanych: $alignr${diskio_read}
${font PizzaDude Bullets:size=13}W${font} Zapisisywanych: $alignr${diskio_write}
SIEĆ ${hr 2}
${if_existing /proc/net/route ath0}
${voffset -6}${font PizzaDude Bullets:size=14}v${font} Wysyłanych: ${upspeed ath0} kb/s $alignr${upspeedgraph ath0 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}r${font} Pobieranych: ${downspeed ath0} kb/s $alignr${downspeedgraph ath0 8,60 32dc10 32dc10}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Wysłanych: $alignr${totalup ath0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Pobranych: $alignr${totaldown ath0}
${voffset 4}${font PizzaDude Bullets:size=14}z${font} Połączono z: $alignr${wireless_essid ath0}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font} Jakość: ${wireless_link_qual ath0}% $alignr${wireless_link_bar 8,60 ath0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Lokalne IP: $alignr${addr ath0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Publiczne IP: $alignr${execi 1 ~/scripts/conky/ip.sh}
${voffset 4}${font PizzaDude Bullets:size=14}I${font} Połączenia TCP: ${alignr}${tcp_portmon 1 65535 count}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${font PizzaDude Bullets:size=14}v${font} Up: ${upspeed eth0} kb/s $alignr${upspeedgraph eth0 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}r${font} Down: ${downspeed eth0} kb/s $alignr${downspeedgraph eth0 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: $alignr${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: $alignr${totaldown eth0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Local Ip: $alignr${addr eth0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Public Ip: $alignr${execi 1 ~/scripts/conky/ip.sh}
${voffset 4}${font PizzaDude Bullets:size=14}I${font} Połączenia TCP: ${alignr}${tcp_portmon 1 65535 count}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -6}${font PizzaDude Bullets:size=14}v${font} Up: ${upspeed eth1} kb/s $alignr${upspeedgraph eth1 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}r${font} Down: ${downspeed eth1} kb/s $alignr${downspeedgraph eth1 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: $alignr${totalup eth1}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: $alignr${totaldown eth1}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Local Ip: $alignr${addr eth1}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Public Ip: $alignr${execi 100 ~/scripts/conky/ip.sh}
${voffset 4}${font PizzaDude Bullets:size=14}I${font} Połączenia TCP: ${alignr}${tcp_portmon 1 65535 count}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Brak połączenia sieciowego
${endif}
POGODYNKA ${hr 2}
${if_existing /proc/net/route ath0}
${voffset -14}${alignr 43}${font Weather:size=46}${execi 600 python ~/scripts/conky/conkyForecast.py --location=PLXX0009 --datatype=WF}${font}
${voffset -52}${font Arial Black:size=26}${execi 600 python ~/scripts/conky/conkyForecast.py --location=PLXX0009 --datatype=HT}${font}
${voffset 0}Wiatr: ${alignr}${execi 600 python ~/scripts/conky/conkyForecast.py --location=PLXX0009 --datatype=WS}
${voffset 0}Wilgotność: ${alignr}${execi 600 python ~/scripts/conky/conkyForecast.py --location=PLXX0009 --datatype=HM}
${else}${if_existing /proc/net/route eth0}
${voffset -14}${alignr 43}${font Weather:size=46}${execi 600 python ~/scripts/conky/conkyForecast.py --location=PLXX0009 --datatype=WF}${font}
${voffset -52}${font Arial Black:size=26}${execi 600 python ~/scripts/conky/conkyForecast.py --location=PLXX0009 --datatype=HT}${font}
${voffset 0}Wiatr: ${alignr}${execi 600 python ~/scripts/conky/conkyForecast.py --location=PLXX0009 --datatype=WS}
${voffset 0}Wilgotność: ${alignr}${execi 600 python ~/scripts/conky/conkyForecast.py --location=PLXX0009 --datatype=HM}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -14}${alignr 43}${font Weather:size=46}${execi 600 python ~/scripts/conky/conkyForecast.py --location=PLXX0009 --datatype=WF}${font}
${voffset -52}${font Arial Black:size=26}${execi 600 python ~/scripts/conky/conkyForecast.py --location=PLXX0009 --datatype=HT}${font}
${voffset 0}Wiatr: ${alignr}${execi 600 python ~/scripts/conky/conkyForecast.py --location=PLXX0009 --datatype=WS}
${voffset 0}Wilgotność: ${alignr}${execi 600 python ~/scripts/conky/conkyForecast.py --location=PLXX0009 --datatype=HM}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Błąd podczas sprawdzania pogody
${endif}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment