Jump to content

Vos .conkyrc


Tuxargon
 Share

Recommended Posts

Salam,

Conky est un petit logiciel qui se lance en arrière plan, qui vous permet de contrôler toutes les variables du système (CPU, RAM, Espace Disque ...), et bien plus (email, température, rss ...) :eek:

 

944673.png

Source : Conky Flavours

 

Le seul bémol, et que la configuration de conky, peut être un peu complexe : c'est pour ça que je vous conseille de lire bien attentivement la documentation ;)

 

Le but de ce topic est d'exposer vos .conkyrc, alors let's go !

 

Comme j'aime tous ce qui est minimaliste, j'ai créer un conky très simple !

 

conky.png

 

# Use Xft?
use_xft yes
xftfont nu:pixelsize=10

# Update interval in seconds
update_interval 1

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type desktop


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

# 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 e0e0e0

# Text alignment, other possible values are commented
alignment top_middle

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 0
gap_y 1

# 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

# 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

TEXT
Uptime ${uptime_short} | Kernel ${kernel} | CPU1 ${cpu cpu1} % | CPU2 ${cpu cpu2}% | RAM $memperc% | Root ${fs_used_perc /} % | Home ${fs_used_perc /media/stock}%  | Up ${upspeed eth0}/${totalup eth0} | Down ${downspeed eth0}/${totaldown eth0}

  • Like 2
Link to comment
Share on other sites

  • 1 year later...

salut

 

voici un aperçu de mon conky

 

conky.jpg

 

fichier conkyrc :

 

######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1

imlib_cache_size 0
double_buffer yes
no_buffers yes

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Droid Sans:size=8
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_right
gap_x 25
gap_y 40
minimum_size 182 0
maximum_width 182

default_bar_size 60 8

#########################
# - Graphics settings - #
#########################
draw_shades no

default_color cccccc

color0 white
color1 555753
color2 white

TEXT
${font Droid Sans:style=Bold:size=8}SYSTEM $stippled_hr${font}
##############
# - SYSTEM - #
##############
${color0}${voffset 6}${font OpenLogos:size=19}u${font}${color}${goto 32}${voffset -14}Kernel:  ${alignr}${color2}${kernel}${color}
${goto 32}Uptime: ${alignr}${color2}${uptime}${color}
# |--UPDATES
${goto 32}Updates: ${alignr}${font Droid Sans:style=Bold:size=8}${color1}${execi 360 aptitude search "~U" | wc -l | tail}${color}${font} ${color2}Packages${color}
# |--CPU
${offset 1}${color0}${font Poky:size=16}P${font}${offset -19}${voffset 9}${cpubar cpu0 4,18}${color}${voffset -16}${goto 32}CPU1: ${font Droid Sans:style=Bold:size=8}${color1}${cpu cpu1}%${font} ${alignr}${font Droid Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'Core 0' | cut -c15-16}°C${color}${font}  ${color2}${cpugraph cpu1 8,50 2E3436 555753}${color}
${goto 32}CPU2: ${font Droid Sans:style=Bold:size=8}${color1}${cpu cpu2}%${font} ${alignr}${font Droid Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'Core 1' | cut -c15-16}°C${color}${font}  ${color2}${cpugraph cpu2 8,50 2E3436 555753}${color}
# |--MEM
${color0}${font Poky:size=16}M${font}${color}${goto 32}${voffset -7}RAM: ${font Droid Sans:style=Bold:size=8}${color1}$memperc%${color}${font}
${offset 1}${voffset 2}${color0}${membar 4,18}${color}${goto 32}${voffset -2}F: ${font Droid Sans:style=Bold:size=8}${color2}${memeasyfree}${color}${font} U: ${font Droid Sans:style=Bold:size=8}${color2}${mem}${color}${font}
# |--CPU
${voffset 2}${color0}${font Poky:size=14}s${font}${color}${voffset -8}${goto 32}SWAP: ${font Droid Sans:style=Bold:size=8}${color1}${swapperc}%${color}${font}
${voffset 4}${offset 1}${color2}${swapbar 4,18}${color}${voffset -4}${goto 32}F: ${font Droid Sans:style=Bold:size=8}${color2}$swapmax${color}${font} U: ${font Droid Sans:style=Bold:size=8}${color2}$swap${color}${font}
#############
# - CLOCK - #
#############
${voffset 4}${font Droid Sans:style=Bold:size=8}DATE $stippled_hr${font}
${voffset -12}${goto 28}${font Arial Black:size=38}${color2}${time %H}${color}${font}${voffset -28}${font Droid Sans:style=Bold:size=11}${color2}${time :%M}${time :%S}${color}${font}
${voffset -2}${goto 100}${font Droid Sans:style=Bold:size=8}${color2}${time %A}${color}${font}
${goto 100}${time %d %b %Y}
################
# - CALENDAR - #
################
${voffset -2}${color0}${font Poky:size=15}d${font}${color}${voffset -8}${font Liberation Mono:size=8}${execpi 10800 DJS=`date +%-d`; cal | sed 's/^/${goto 32} /' | sed '1d' | sed s/" $DJS "/" "'${font Liberation Mono:style=bold:size=8}${color1}'"$DJS"'${color}${font}${font Liberation Mono:size=8}'" "/}${font}${font}${voffset -14}
####################
# - MEDIA PLAYER - #
####################
${voffset 4}${font Droid Sans:style=Bold:size=8}MEDIA PLAYER $stippled_hr${font}
${execi 6 ~/.conkycolors/bin/conkyCover}${execpi 2 ~/.conkycolors/bin/conkyBanshee -t ~/.conkycolors/templates/conkyPlayer.template}
##########
# - HD - #
##########
${voffset 4}${font Droid Sans:style=Bold:size=8}HD $stippled_hr${font}
# |--HDTEMP1
 ${voffset 4}${color0}${font Weather:size=15}y${font}${color}${voffset -8}${goto 32}/dev/sda: ${font Droid Sans:style=Bold:size=8}${color1}${execi 120 hddtemp /dev/sda -n --unit=C}°C${color}${font}
# |--HDTEMP2
${goto 32}/dev/sdb: ${font Droid Sans:style=Bold:size=8}${color1}${execi 120 hddtemp /dev/sdb -n --unit=C}°C${color}${font}
# |--HDTEMP3
${goto 32}/dev/sdc: ${font Droid Sans:style=Bold:size=8}${color1}${execi 120 hddtemp /dev/sdc -n --unit=C}°C${color}${font}
# |--HDTEMP4
${goto 32}/dev/sdd: ${font Droid Sans:style=Bold:size=8}${color1}${execi 120 hddtemp /dev/sdd -n --unit=C}°C${color}${font}
${execpi 30 ~/.conkycolors/bin/conkyHD3}
###############
# - NETWORK - #
###############
${voffset 4}${font Droid Sans:style=Bold:size=8}NETWORK $stippled_hr${font}
# |--WLAN0
${if_up wlan0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 32}${voffset -6}Up: ${font Droid Sans:style=Bold:size=8}${color1}${upspeed wlan0}${color}${font} ${alignr}${color2}${upspeedgraph wlan0 8,60 2E3436 555753}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totalup wlan0}${color}${font}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 32}${voffset -6}Down: ${font Droid Sans:style=Bold:size=8}${color1}${downspeed wlan0}${color}${font} ${alignr}${color2}${downspeedgraph wlan0 8,60 2E3436 555753}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totaldown wlan0}${color}${font}
${voffset -2}${color0}${font Poky:size=14}Y${font}${color}${goto 32} ${voffset -2}Signal: ${font Droid Sans:style=Bold:size=8}${color1}${wireless_link_qual wlan0}%${color}${font} ${alignr}${color2}${wireless_link_bar 8,60 wlan0}${color}
${voffset 4}${color0}${font Poky:size=13}w${font}${color}${goto 32}${voffset -8}Local IP: ${alignr}${color2}${addr wlan0}${color}
${goto 32}Public IP: ${alignr}${color2}${execi 10800 ~/.conkycolors/bin/conkyIp}${color}
# |--ETH0
${else}${if_up eth0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 32}${voffset -6}Up: ${font Droid Sans:style=Bold:size=8}${color1}${upspeed eth0}${color}${font} ${alignr}${color2}${upspeedgraph eth0 8,60 2E3436 555753}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totalup eth0}${color}${font}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 32}${voffset -6}Down: ${font Droid Sans:style=Bold:size=8}${color1}${downspeed eth0}${color}${font} ${alignr}${color2}${downspeedgraph eth0 8,60 2E3436 555753}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totaldown eth0}${color}${font}
${voffset -2}${color0}${font Poky:size=13}w${font}${color}${goto 32}${voffset -4}Local IP: ${alignr}${color2}${addr eth0}${color}
${goto 32}Public IP: ${alignr}${color2}${execi 10800 ~/.conkycolors/bin/conkyIp}${color}
# |--PPP0
${else}${if_up ppp0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 32}${voffset -6}Up: ${font Droid Sans:style=Bold:size=8}${color1}${upspeed ppp0}${color}${font} ${alignr}${color2}${upspeedgraph ppp0 8,60 2E3436 555753}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totalup ppp0}${color}${font}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 32}${voffset -6}Down: ${font Droid Sans:style=Bold:size=8}${color1}${downspeed ppp0}${color}${font} ${alignr}${color2}${downspeedgraph ppp0 8,60 2E3436 555753}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totaldown ppp0}${color}${font}
${voffset -2}${color0}${font Poky:size=13}w${font}${color}${goto 32}${voffset -4}Local IP: ${alignr}${color2}${addr ppp0}${color}
${else}${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color}${goto 32}Network Unavailable${voffset 14}${endif}${endif}${endif}

conky.jpg

Link to comment
Share on other sites

  • 1 month later...

hello all :p

 

ma contribution :

jjj.jpg

 

# ====/|\**Billy Chilli Willi**/|\====
use_xft yes
xftfont nu:pixelsize=13
update_interval 1
own_window yes
own_window_transparent yes
own_window_type override
double_buffer yes
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 0
border_margin 0
border_width 0
default_outline_color e0e0e0
default_color e0e0e0
alignment top_right
gap_x 20
gap_y 35
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
use_spacer none
own_window_colour no
own_window_hints  undecorated,below,sticky,skip_taskbar,skip_pager

TEXT
$nodename
$machine
${execi 86400 lsb_release -si} : ${execi 86400 lsb_release -sr} ${execi 86400 lsb_release -sc}
Linux ${kernel} 
Uptime: ${uptime_short}
Load:  $loadavg
File System: ${fs_type}

Core : $freq_g GHz ${cpu cpu1}%  
RAM $memperc% 
Swap  $swapperc% 
CPU temp: ${acpitemp} °C
Sda temp: ${hddtemp /dev/sda} °C

Root  ${fs_free /} $alignr${fs_used_perc /}%
Home  ${fs_free /home} $alignr${fs_used_perc /home}%
Windows ${fs_free /media/sda2} $alignr${fs_used_perc /media/sda2}%
Billel (D) ${fs_free /media/sda4} $alignr${fs_used_perc /media/sda4}%
Driver ${fs_free /media/sda1} $alignr${fs_used_perc /media/sda1}%

Local : ${addr eth0}
Public: ${texeci 3600 wget http://checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d \UP: ${upspeed eth0}/s
Down: ${downspeed eth0}/s${offset 25}
Used ports: ${tcp_portmon 1 65535 count}

Processes       ${alignr}CPU
${top name 1}  ${alignr}${top cpu 1}
${top name 2}  ${alignr}${top cpu 2}
${top name 3}  ${alignr}${top cpu 3}
${top name 4}  ${alignr}${top cpu 4}
${top name 5}  ${alignr}${top cpu 5}
${top name 6}  ${alignr}${top cpu 6}
${top name 7}  ${alignr}${top cpu 7}

Processes                    ${alignr}RAM
${color1} ${top name 1}   ${alignr}${top mem 1}
${color1} ${top name 2}   ${alignr}${top mem 2}
${color1} ${top name 3}   ${alignr}${top mem 3}
${color1} ${top name 4}   ${alignr}${top mem 4}
${color1} ${top name 5}   ${alignr}${top mem 5}
${color1} ${top name 6}   ${alignr}${top mem 6}
${color1} ${top name 7}   ${alignr}${top mem 7}

Edited by bilfixion
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...