Aller au contenu

Change
Photo

Postez vos conky


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Noir Seigneur des Sith

Noir Seigneur des Sith

    Noir Seigneur des Sith

  • Membre
  • 8 476 messages
  • LocalisationEtoile Noire
Pour ceux qui veulent partager leurs codes de conky, s'ils en ont écrit ou adaptés, ou récupérés sur d'autres forums : c'est ici.
Pour ma part, j'en ai mis de base en colonne(pour ne pas nuire à ma belle nébuleuse de fond d'écran), avec toutes les infos du système jusqu'au réseau, aligné top_left, donc le plus simple. Donc je ne vais pas recopier son code qui est direct copier-coller de la doc linux, à quelques lignes et couleurs près.
// http://doc.ubuntu-fr..._variables.html
// http://doc.ubuntu-fr...scripts_systeme

Modifié par NoLife73, 31 août 2012 - 16:22.

  • 0
20 pc & mac
Linux - macOS - Windows - Android
Mes machins préférés du moment :
NVIDIA SHIELD TABLET K1 - puissante, bon format, meilleure tablette 8"
AORUS X3 V5 - meilleur design, prix trop élevé

#2
Arkh

Arkh

    Geek diplomé

  • Membre
  • 2 259 messages
Pour ma part j'avais tenté LUA à un moment mais j'ai préféré revenir à quelquechose de très simple :
Image IPB

CKY_MAIN :
# Position : Main

own_window yes
own_window_argb_visual yes
own_window_hints undecorated
own_window_type normal
own_window_transparent yes

out_to_console no

# Use Xft?
use_xft yes
#To add a TTF font you must ensure that
# the module section of X is configured properly :
# In /etc/X11/xorg.conf verify there is a bloc like :
# Section "Module"
#     Load "freetype"
#     Load "type1"
# EndSection
#
# Add your font in ~/.fonts/
# run fc-cache -fv to reload the font cache
# restart X / reboot
# fc-list pour avoir le nom de la police

# Update interval in seconds
update_interval 10

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

# Minimum size of text area
minimum_size 1920 1200

# Draw shades? outlines?
draw_shades no
draw_outline no

# Draw borders around text? Stippled borders?
draw_borders no
stippled_borders 1

# Default colors and also border colors
default_color grey

# Text alignment
alignment top_left

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer right

# Subtract file system buffers from used memory?
no_buffers yes

#lua_load ~/.conky/scripts/rings.lua
#  lua_draw_hook_pre ring_stats

# stuff after 'TEXT' will be formatted on screen
TEXT
${font Digital\-7:style=Italic:pixelsize=70}${color #FFAA00}${time %H:%M}${font Neuropolitical:style=Regular:pixelsize=18}${color #AAAAAA}   ${time %A %d %B}${alignr}
${font Prototype:style=Regular:pixelsize=14}${color #666666} $hr ${color #5F5F5F}




































































${color #666666} $hr
${font Neuropolitical:style=Bold:pixelsize=20}${color #AAAAAA}$nodename ${alignc}$sysname $kernel ${alignr}$uptime_short
CKY_Right
# Position : Right

own_window yes
own_window_argb_visual yes
own_window_hints undecorated
own_window_type normal
own_window_transparent yes

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# Use Xft?
use_xft yes
#To add a TTF font you must ensure that
# the module section of X is configured properly :
# In /etc/X11/xorg.conf verify there is a bloc like :
# Section "Module"
#     Load "freetype"
#     Load "type1"
# EndSection
#
# Add your font in ~/.fonts/
# run fc-cache -fv to reload the font cache
# restart X / reboot
#

# Update interval in seconds
update_interval 2

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

# Minimum size of text area => NOT FOR THIS ONE
#minimum_size 1920 1200

# Draw shades? outlines?
draw_shades no
draw_outline no

# Draw borders around text? Stippled borders?
draw_borders no
stippled_borders 1

# Default colors and also border colors
default_color grey

# Text alignment
alignment top_right

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer right

# Subtract file system buffers from used memory?
no_buffers yes

#lua_load ~/.conky/scripts/rings.lua
#  lua_draw_hook_pre ring_stats

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

${font Prototype:style=Bold:pixelsize=21}${alignc}${color #CCCCCC}Core I7 950 (${execi 5 ~/Scripts/read_acpi.sh}°C)${color #999999}${font Prototype:style=Bold:pixelsize=15}
${cpubar cpu0 14,237}
${freq_g 1}GHz${goto 70}${cpubar cpu1 10,170}
${freq_g 2}GHz${goto 70}${cpubar cpu2 10,170}
${freq_g 3}GHz${goto 70}${cpubar cpu3 10,170}
${freq_g 4}GHz${goto 70}${cpubar cpu4 10,170}
${freq_g 5}GHz${goto 70}${cpubar cpu5 10,170}
${freq_g 6}GHz${goto 70}${cpubar cpu6 10,170}
${freq_g 7}GHz${goto 70}${cpubar cpu7 10,170}
${freq_g 8}GHz${goto 70}${cpubar cpu8 10,170}

${font Prototype:style=Bold:pixelsize=21}$alignc${color #CCCCCC}RAM (${execi 5 ~/Scripts/read_sensors.sh}°C)${color #999999}${font Prototype:style=Bold:pixelsize=15}
${alignc}$mem/$memmax
${membar 14,237}

${font Prototype:style=Bold:pixelsize=21}$alignc${color #CCCCCC}GTX 280M (${execi 5 ~/Scripts/read_gpu_therm.sh}.0°C)${color #999999}${font Prototype:style=Bold:pixelsize=15}
${alignc} Driver NVIDIA ${execi 60 ~/Scripts/read_gpu_mem.sh DRIVER}
${alignc}${execi 10 ~/Scripts/read_gpu_mem.sh USED}MB / ${execi 10 ~/Scripts/read_gpu_mem.sh TOTAL}MB
${execibar 10 ~/Scripts/read_gpu_mem.sh PERCENT}

${font Prototype:style=Bold:pixelsize=21}$alignc${color #CCCCCC}Battery ($battery_percent%)${color #999999}${font Prototype:style=Bold:pixelsize=15}
${alignc}Status : $battery
${battery_bar 14,237}

${font Prototype:style=Bold:pixelsize=21}$alignc${color #CCCCCC}Hard-drives${color #AAAAAA}${font Prototype:style=Bold:pixelsize=15}
${alignc}sda : ${hddtemp /dev/sda}°c ${color #999999}||${color #AAAAAA} sdb : ${hddtemp /dev/sdb}°c${color #999999}
/${goto 40}${fs_used /}${goto 100}/ ${fs_size /}${goto 175}${fs_bar /}
${if_mounted /media/local_hdd}HDD${goto 40}${fs_used /media/local_hdd/}${goto 100}/ ${fs_size /media/local_hdd}${goto 175}${fs_bar /media/local_hdd} $else ${alignc}HDD is not mounted! $endif
${if_mounted /media/local_ubu}UBU${goto 40}${fs_used /media/local_ubu/}${goto 100}/ ${fs_size /media/local_ubu}${goto 175}${fs_bar /media/local_ubu} $else ${alignc}UBU is not mounted! $endif
${if_mounted /media/local_win}SHM${goto 40}${fs_used /media/local_win/}${goto 100}/ ${fs_size /media/local_win}${goto 175}${fs_bar /media/local_win} $else ${alignc}SHM is not mounted! $endif
${if_mounted /media/local_ext1}EXT${goto 40}${fs_used /media/local_ext1/}${goto 100}/ ${fs_size /media/local_ext1}${goto 175}${fs_bar /media/local_ext1} $else ${alignc}EXT is not mounted! $endif

${font Prototype:style=Bold:pixelsize=21}$alignc${color #CCCCCC}NetWork${color #999999}${font Prototype:style=Bold:pixelsize=15}
${alignc} IP : ${execi 600 ~/Scripts/read_networkvalues.sh IP}
Down: ${downspeed eth0} ${alignr} Up: ${upspeed eth0}
${color #999999}${downspeedgraph eth0 32,237 DDDDDD 888888}
${color #999999}${upspeedgraph eth0   32,237 888888 DDDDDD}

${font Prototype:style=Bold:pixelsize=21}$alignc${color #CCCCCC}Processes${color #999999}${font Prototype:style=Bold:pixelsize=15}
Total : $processes $alignr Running : $running_processes
    -> CPU ${color #555555}
${top name 1} $alignr ${top cpu 1}%
${top name 2} $alignr ${top cpu 2}%
${top name 3} $alignr ${top cpu 3}%${color #999999}
    -> Memory ${color #555555}
${top_mem name 1} $alignr ${top_mem mem 1}% ${color #222222}||${color #555555} ${top_mem mem_res 1}
${top_mem name 2} $alignr ${top_mem mem 2}% ${color #222222}||${color #555555} ${top_mem mem_res 2}
${top_mem name 3} $alignr ${top_mem mem 3}% ${color #222222}||${color #555555} ${top_mem mem_res 3}${color #999999}
    -> I/O (R/W) ${color #555555}
${top_io name 1} $alignr ${top_io io_read 1}/${top_io io_write 1}
${top_io name 2} $alignr ${top_io io_read 2}/${top_io io_write 2}
${top_io name 3} $alignr ${top_io io_read 3}/${top_io io_write 3}${color #999999}
read_acpi.sh
#!/bin/bash
#Read acpi and output the temperature
vr=$( { acpi -t; } )
echo ${vr:15:4}
read_sensors.sh
#!/bin/bash
#Read sensors and output the temperature
vr=$( { sensors ; } )
echo ${vr:55:4}
read_gpu_therm.sh
#!/bin/bash
#Read gpu therm and output the temperature
vr=$( { nvidia-settings -q gpucoretemp; } )
echo ${vr:45:2}
read_gpu_mem.sh
#!/bin/bash

vr1=$( { nvidia-smi -q -i 0 -d MEMORY | grep Used; } )
v1=`echo ${vr1:0:-2}|awk -F: '{print $2}'`
vr2=$( { nvidia-smi -q -i 0 -d MEMORY | grep Total; } )
v2=`echo ${vr2:0:-2}|awk -F: '{print $2}'`
vr3=$( { nvidia-smi -q | grep "Driver Version"; } )
v3=`echo ${vr3}|awk -F: '{print $2}'`
rv=$((100*v1/v2))

if [ $# = 1 ]
 then
    if [ $1 = "USED" ]
     then
    echo $v1
    elif [ $1 = "TOTAL" ]
     then
    echo $v2
    elif [ $1 = "PERCENT" ]
     then
    echo $rv
    elif [ $1 = "DRIVER" ]
     then
    echo $v3
    fi
fi

#use : read_gpu_mem.sh USED // will return the used VRAM from nvidia-smi
Vous trouverez facilement les polices sur le net...

Sinon, pour l'intégration avec compiz :
Dans Window Rules :
    Ne pas faire apparaître dans la barre des tâches : class = Conky
    Ne pas faire apparaître dans le sélécteur : class = Conky
    Derrière : class = Conky
    Afficher sur tous les bureaux : class = Conky
    Pas de visuels ARGB : class = Conky
    Fenêtres non déplaçables : class = Conky
    Fenêtres non maximisables : class = Conky
    Pas de focus : class = Conky
Opacity Luminosity and Saturation : 
    Nouveau, class=Conky   valeur = 99
Image IPB

Capture avec scrot, avec un délais de 10 secondes :
scrot -d 10 capture.png

  • 0

D900F : I7 950 (8x3.1Ghz) /// 6GB DDR3 1333MHz (3x2Go) /// GTX 280M (128CC/1GHz/1Go) /// 2x320GB 7200Trs/min /// WUXGA Non-Glare Screen 1920x1200 /// Razer Abyssus /// NC-2000 /// By PcSystems-EvolutionX /// Powered by Debian!

> Get Process Explorer





0 utilisateur(s) li(sen)t ce sujet

0 membre(s), 0 invité(s), 0 utilisateur(s) anonyme(s)