Bonsoir,
j'ai une petite question : Compiz apporte beaucoup de freeze (aléatoire) chez moi. Je l'ai donc désactiver et j'ai activé le composite de metacity. Seulement maintenant mes conky s'affiche dans une sorte de cadre transparent, on dirait qu'il y a une surépaisseur... (voir screenshot)
Est ce que quelqu'un saurait comment retirer sa? 🙂
Merci d'avance
Au passage : ma contribution :
.conkyrc1 (celui de gauche)
#Position à l'écran
alignment top_left
#Pour que Conky tourne en arriere plan
background yes
#background no #pour les tests
#Largeur des marges
border_margin 10
#Largeur de la bordure
border_width 2
#Nombre d'echantillons à prendre en compte pour le monitoring du CPU
cpu_avg_samples 3
#Couleur par défaut (texte et bordure)
default_color white
#Couleur de l'ombre par défaut (texte et bordure)
default_shade_color white
#Couleur par défaut des contours
default_outline_color white
#Pour utiliser l'extension Xdbe afin d'éviter le clignotement
double_buffer yes
#Pour afficher des bordures autour du texte
draw_borders no
#Pour afficher des bordures autour des graphes
draw_graph_borders yes
#Afficher les ombres
draw_shades no
#Afficher les contours
draw_outline no
#Ecart avec le bord gauche ou droit de l'écran
#gap_x 35
#Ecart avec le bord haut ou bas de l'écran
#gap_y 410
gap_y 500
#Taille maximale de la fenêtre
minimum_size 240
#Soustraire les mémoires tampons de la mémoire utiliser
no_buffers yes
#Nombre d'échantillons pour faire la moyenne de l'utilisation réseau
net_avg_samples 3
#Forcer l'UTF-8
override_utf8_locale yes
#Utiliser sa propre fenetre
own_window yes
#Utiliser la pseudo-transparence
own_window_transparent yes
#Type de fenetre
#own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#Affiche le texte sur la sortie standard
out_to_console no
#Intervalle de rafraîchissement de la fenêtre
update_interval 1
#Texte en majuscule
uppercase no
#Ajoute des espaces apres certains objets pour eviter de les faire bouger
#Fonctionne uniquement avec la police Monospace
use_spacer yes
#Utiliser Xft
use_xft yes
#Police à utiliser
#xftfont Radio Space:size=8
# Possible variables to be used:
#
# Variable Arguments Description
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# exec shell command Executes a shell command and displays
# the output in torsmo. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execi interval, shell Same as exec but with specific interval.
# command Interval can't be less than
# update_interval in configuration.
# fs_bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or temp
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# kernel Kernel version
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# torsmo displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before torsmo
# has started.
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit
# 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
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
#${font Luxi Mono:size=10}justo como este texto que o google traduz fêz o português
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}
#${color #e49c16}CPU :${color #FFFFFF}$alignr$cpu%
#${color #ffc11f}${cpubar}
#${color white}${cpugraph ffc11f 8b4b0b}
#
#
#${color #e49c16}Mémoire :
#${color #FFFFFF} RAM : $alignr$mem/1GiB - $memperc%
#${color #ffc11f}${membar}
#${color #FFFFFF} SWAP :${color #FFFFFF} $alignr$swap/3GiB - $swapperc%
#${color #ffc11f}${swapbar}
#${color #e49c16}Connection(s) : $alignr${color #FFFFFF}entrante(s) : ${color}${tcp_portmon 1 32767 count}
#$alignr${color white}sortante(s) : ${color #FFFFFF}${color}${tcp_portmon 32768 61000 count}$alignr
#$alignr${color white}total : ${color #FFFFFF}${color}${tcp_portmon 1 65535 count}
#${color white}Ventilo [inconnu] : $alignr ${exec expr `cat /sys/bus/i2c/devices/2-002e/fan4_input`} tr/min
#${color #e49c16}IPs :
# ${color white}Locale : $alignr${addr eth0}${color #e49c16}
# ${color white}Publique : $alignr${color white}${execi 1800 ~/.conky/scriptip.sh}
TEXT
${font Radio Space :size=10}${color #e49c16}Capteurs :
${color white}Maxtor 160 : $alignr ${execi 10 hddtemp -n /dev/sda} °C
${color white}CPU : $alignr ${exec expr `cat /sys/bus/i2c/devices/0-002e/temp1_input` / 1000} °C
${color white}Carte mère : $alignr ${exec expr `cat /sys/bus/i2c/devices/0-002e/temp2_input` / 1000} °C
${color white}Ventilo carte mère : $alignr ${exec expr `cat /sys/bus/i2c/devices/0-002e/fan1_input`} tr/min
${color white}Ventilo arrière : $alignr ${exec expr `cat /sys/bus/i2c/devices/0-002e/fan2_input`} tr/min
${color #e49c16}Débit IO :
${color white}Lecture : ${alignr}${color white}${diskio_read}
${color white}Écriture : ${alignr}${color white}${diskio_write}
${color #e49c16}IPs :
${color white}Locale : $alignr${addr eth0}${color #e49c16}
${color white}Publique : $alignr${color white}${execi 1800 ~/.conky/scriptip.sh}
${color #e49c16}Down : ${color white}( Total ${totaldown eth0} ) $alignr${downspeedf eth0}Kio/s
${color #e49c16}Upl : ${color white} ( Total ${totalup eth0} ) $alignr${upspeedf eth0}Kio/s
${color #FFFFFF}${downspeedgraph eth0 25,150 ffc11f 8b4b0b} $alignr${color #FFFFFF}${upspeedgraph eth0 25,150 8b4b0b ffc11f}
${color #e49c16}$alignc Down Upl
.conkyrc2 (celui de droite)
#Position à l'écran
alignment top_right
#Pour que Conky tourne en arriere plan
background yes
#background no #pour les tests
#Largeur des marges
border_margin 10
#Largeur de la bordure
border_width 2
#Nombre d'echantillons à prendre en compte pour le monitoring du CPU
cpu_avg_samples 3
#Couleur par défaut (texte et bordure)
default_color white
#Couleur de l'ombre par défaut (texte et bordure)
default_shade_color white
#Couleur par défaut des contours
default_outline_color white
#Pour utiliser l'extension Xdbe afin d'éviter le clignotement
double_buffer yes
#Pour afficher des bordures autour du texte
draw_borders no
#Pour afficher des bordures autour des graphes
draw_graph_borders yes
#Afficher les ombres
draw_shades no
#Afficher les contours
draw_outline no
#Ecart avec le bord gauche ou droit de l'écran
#gap_x 35
#Ecart avec le bord haut ou bas de l'écran
gap_y 400
#Taille maximale de la fenêtre
minimum_size 240
#Soustraire les mémoires tampons de la mémoire utiliser
no_buffers yes
#Nombre d'échantillons pour faire la moyenne de l'utilisation réseau
net_avg_samples 3
#Forcer l'UTF-8
override_utf8_locale yes
#Utiliser sa propre fenetre
own_window yes
#Utiliser la pseudo-transparence
own_window_transparent yes
#Type de fenetre
#own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#Affiche le texte sur la sortie standard
out_to_console no
#Intervalle de rafraîchissement de la fenêtre
update_interval 1
#Texte en majuscule
uppercase no
#Ajoute des espaces apres certains objets pour eviter de les faire bouger
#Fonctionne uniquement avec la police Monospace
use_spacer no
#Utiliser Xft
use_xft yes
#Police à utiliser
#xftfont Sans:size=8
# Possible variables to be used:
#
# Variable Arguments Description
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# exec shell command Executes a shell command and displays
# the output in torsmo. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execi interval, shell Same as exec but with specific interval.
# command Interval can't be less than
# update_interval in configuration.
# fs_bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or temp
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# kernel Kernel version
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# torsmo displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before torsmo
# has started.
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit
# 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
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
#${font Luxi Mono:size=10}justo como este texto que o google traduz fêz o português
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}
#$color $alignr ${time %Hh %Mm}
#${font monospaces :size=9}${color #e49c16}
#${color #e49c16}RAM : ${color #FFFFFF}$alignr $memperc%
#${color #e49c16}SWAP :${color #FFFFFF}$alignr $swapperc%
#
#
# ${color #FFFFFF}$alignr ${cpu}%
TEXT
${font Radio Space :style=:size=10} ${color #e49c16}
${color #e49c16}Noyeau : $alignr ${color white} $sysname $kernel
${color #e49c16}Uptime : $color $alignr$uptime
${color #e49c16}Charge système :$color $alignr$loadavg
${color #e49c16}CPU :
${color white}${cpugraph ffc11f 8b4b0b}
${color #e49c16}Processus : ${color #FFFFFF}${color}$processes ${color #e49c16}En cours : ${color #FFFFFF}${color}$running_processes
${color #e49c16}Processeur (%) $alignr PID CPU MEM
${color #FFFFFF}${top name 1} $alignr ${top pid 1}${top cpu 1} ${top mem 1}
${color #FFFFFF}${top name 2} $alignr ${top pid 2}${top cpu 2} ${top mem 2}
${color #FFFFFF}${top name 3} $alignr ${top pid 3}${top cpu 3} ${top mem 3}
${color #FFFFFF}${top name 4} $alignr ${top pid 4}${top cpu 4} ${top mem 4}
${color #e49c16}Mémoire (%) $alignr PID CPU MEM
${color #FFFFFF}${top_mem name 1} $alignr ${top_mem pid 1}$alignr${top_mem cpu 1} ${top_mem mem 1}
${color #FFFFFF}${top_mem name 2} $alignr ${top_mem pid 2}$alignr${top_mem cpu 2} ${top_mem mem 2}
${color #FFFFFF}${top_mem name 3} $alignr ${top_mem pid 3}$alignr${top_mem cpu 3} ${top_mem mem 3}
${color #FFFFFF}${top_mem name 4} $alignr ${top_mem pid 4}$alignr${top_mem cpu 4} ${top_mem mem 4}
.conkyrc3 (amarok)
#Position à l'écran
alignment bottom_left
#Pour que Conky tourne en arriere plan
background yes
#background no #pour les tests
#Largeur des marges
border_margin 10
#Largeur de la bordure
border_width 2
#Nombre d'echantillons à prendre en compte pour le monitoring du CPU
cpu_avg_samples 3
#Couleur par défaut (texte et bordure)
default_color white
#Couleur de l'ombre par défaut (texte et bordure)
default_shade_color white
#Couleur par défaut des contours
default_outline_color white
#Pour utiliser l'extension Xdbe afin d'éviter le clignotement
double_buffer yes
#Pour afficher des bordures autour du texte
draw_borders no
#Pour afficher des bordures autour des graphes
draw_graph_borders yes
#Afficher les ombres
draw_shades no
#Afficher les contours
draw_outline no
#Ecart avec le bord gauche ou droit de l'écran
#gap_x 35
#Ecart avec le bord haut ou bas de l'écran
#gap_y 130
gap_y 520
#Taille maximale de la fenêtre
minimum_size 240
#Soustraire les mémoires tampons de la mémoire utiliser
no_buffers yes
#Nombre d'échantillons pour faire la moyenne de l'utilisation réseau
net_avg_samples 3
#Forcer l'UTF-8
override_utf8_locale yes
#Utiliser sa propre fenetre
own_window yes
#Utiliser la pseudo-transparence
own_window_transparent yes
#Type de fenetre
#own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#Affiche le texte sur la sortie standard
out_to_console no
#Intervalle de rafraîchissement de la fenêtre
update_interval 3
#Texte en majuscule
uppercase no
#Ajoute des espaces apres certains objets pour eviter de les faire bouger
#Fonctionne uniquement avec la police Monospace
use_spacer yes
#Utiliser Xft
use_xft yes
#Police à utiliser
#xftfont Sans:size=8
# Possible variables to be used:
#
# Variable Arguments Description
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# exec shell command Executes a shell command and displays
# the output in torsmo. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execi interval, shell Same as exec but with specific interval.
# command Interval can't be less than
# update_interval in configuration.
# fs_bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or temp
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# kernel Kernel version
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# torsmo displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before torsmo
# has started.
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit
# 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
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
#${font Luxi Mono:size=10}justo como este texto que o google traduz fêz o português
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}
#
TEXT
${font Radio Space :size=10}${if_running amarokapp}
$stippled_hr
${color #e49c16}AmaroK${color white}
${alignc}${execi 10 ~/.conky/amarok artist}
${alignc}${execi 10 ~/.conky/amarok title}
${execibar 1 ~/.conky/amarok progress}
${alignc}"${execi 10 ~/.conky/amarok album}"
${alignc}${execi 10 ~/.conky/amarok year} - ${color white}${alignc}${execi 10 ~/.conky/amarok genre}
$stippled_hr
$endif
Le script pour amarok ( ~./.conky/amarok)
#!/bin/bash
# amaroK info display script by eirc <eirc.eirc@gmail.com>
case "$1" in
# Now Playing Info
artist) dcop amarok player artist ;;
title) dcop amarok player title ;;
album) dcop amarok player album ;;
year) dcop amarok player year ;;
genre) dcop amarok player genre ;;
progress)
curr=`dcop amarok player trackCurrentTime`
tot=`dcop amarok player trackTotalTime`
if (( $tot )); then
expr $curr \* 100 / $tot
fi
;;
esac
Et le script pour l'IP pour ceux qui ne l'ont pas déja (~./.conky/scriptip.sh)
#!/bin/bash
# voir ip derriere routeur
wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f 2 | cut -d\< -f 1 > ip
cat ip