Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1426 Le 19/05/2012, à 09:21

rpj

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

CerdLXDE, effectivement tu lance le conky qui se trouve dans /etc/conky/ il faut que tu vire ce qu’il y a dedans avant de lancer le tiens.

sudo rm -rf /etc/conky/conky.conf
sudo rm -rf /etc/conky/conky_no_x11.conf

et ensuite tu lance ton conky avec

conky -c /home/TON NOM/.conky/NOM DE TON CONKY

Et tu regarde comment on le lance automatiquement au démarrage.


La ligne de commande UNIX devrait être obligatoire dès la maternelle ! :-)
Debian, XFCE,  FF, .
Android dev (éternel débutant)

Hors ligne

#1427 Le 19/05/2012, à 15:51

zn23

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

Voilà le mien tout bete

http://i.imgur.com/iuTvW.png

QLaan.png

#if mixerbar does not work add 'snd-mixer-oss' in /etc/modules#
background no
# Use Xft?
use_xft yes
font snap-7
xftfont Ubuntu:pixelsize=9
xftalpha 0.9
text_buffer_size 2048
out_to_console no
update_interval 1
total_run_times 0
draw_shades no
draw_outline no
draw_borders no
#default_outline_color fff
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints below,sticky,skip_taskbar,skip_pager
double_buffer yes
default_color lightgrey
alignment bottom_right
gap_x 5
gap_y -45
no_buffers yes
minimum_size 5 5
maximum_width 150
short_units yes
use_spacer right
default_bar_size 75 2
TEXT                  
${voffset 50}${color white}${font Ubuntu:style=Bold:pixelsize=58}${time %H:%M}${font}
${voffset -2}${color lightgrey}${font Ubuntu:size=7}${alignc}${uptime}${font}
${color white}${font Ubuntu:style=Bold:pixelsize=10}${alignc}SYSTEM${font}
${color white}${voffset -10}${cpubar cpu7 2,50}${alignr}${cpubar cpu8 2,50}
${color lightgrey}${font Ubuntu:size=8}Hostname  ${alignr}${nodename}${font}
${color lightgrey}${font Ubuntu:size=8}Release ${alignr}12.04${font}
Kernel  ${alignr}${kernel}
${color lightgrey}${cpubar cpu0 3,150}
${voffset -4}${font Ubuntu:size=7}${color green}${loadavg 1}${alignc -10}${color yellow}${loadavg 2}${alignr}${color red}${loadavg 3}${font}
${color lightgrey}${voffset -5}${cpubar cpu1 3,150}
${color lightgrey}${membar 2,70}${alignr}${swapbar 2,70}

${color white}${font Ubuntu:style=Bold:pixelsize=10}${alignc}FILESYSTEM${font}
${color white}${voffset -10}${cpubar cpu7 2,42}${alignr}${cpubar cpu8 2,42}
${color lightgrey}${font Ubuntu:size=8}Ubuntu  ${alignr}${fs_bar 3,90 /}${font}
${color lightgrey}${font Ubuntu:size=8}Home  ${alignr}${fs_bar 3,90 /home/zniavre/}${font}
${color lightgrey}${font Ubuntu:size=8}Disk 1  ${alignr}${fs_bar 3,90 /media/Disk1/}${font}
${color lightgrey}${font Ubuntu:size=8}Disk 2  ${alignr}${fs_bar 3,90 /media/Disk2/}${font}

${color white}${font Ubuntu:style=Bold:pixelsize=10}${alignc}NETWORK
${color white}${voffset -10}${cpubar cpu7 2,48}${alignr}${cpubar cpu8 2,48}
${color lightgrey}${font Ubuntu:size=8}Ip network ${alignr} ${color white}${addr wlan0}${font}
${color white}${font Ubuntu:size=8}${wireless_essid wlan0} ${alignr} ${color lightgrey}${font Ubuntu:size=8}${color red}${wireless_link_qual_perc wlan0}${color lightgrey}%
${color lightgrey}${font Ubuntu:size=8}Down ${color white}${downspeed wlan0}${color lightgrey}${alignr}Up ${color white}${upspeed wlan0}${font}
${color lightgrey}${font Ubuntu:size=8}${totaldown wlan0} ${alignr}${totalup wlan0} ${font}

${color white}${font Ubuntu:style=Bold:pixelsize=11}${alignc}DATE${font}
${color white}${voffset -10}${cpubar cpu7 2,57}${alignr}${cpubar cpu8 2,57}
${color white}${font Ubuntu Mono:size=10}${alignc -6}${execpi 60 VinDSL_Cal_8=`date +%-d`; cal -h | sed -e '1d' -e 's/\<'"$VinDSL_Cal_8"'\>/${color red}&${color grey}/'}${font}
${if_running rhythmbox}${color white}${font Ubuntu:style=Bold:pixelsize=10}${alignc}RhythmBox${font}
${color white}${voffset -10}${cpubar cpu7 2,45}${alignr}${cpubar cpu8 2,45}
${color white}${font Ubuntu:style=Bold:size=14}${alignc}${exec rhythmbox-client --print-playing-format %at}${font}
${color lightgrey}${font Ubuntu:size=11} ${alignc}${exec rhythmbox-client --print-playing-format %aa}${font}
${color white}${font Ubuntu:size=9} ${alignc}${exec rhythmbox-client --no-start --print-playing-format %tt}${font}
${color red}${font Ubuntu:style=Bold:size=8}${alignc} ${exec rhythmbox-client --no-start --print-playing-format "%te"}${font}
${voffset -5}${color lightgrey}${alignc}${mixerbar}$endif
${color white}${font Ubuntu:style=Bold:pixelsize=11}${alignc}zni-A-vre${font}
${color white}${voffset -10}${cpubar cpu7 2,48}${alignr}${cpubar cpu8 2,48}

Dernière modification par zn23 (Le 19/05/2012, à 15:57)


tu peux y mettre tout le fûmier que tu veux , pour un chêne centenaire, faut cent ans ...

Hors ligne

#1428 Le 19/05/2012, à 19:20

enebre

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

zn23 -
Ha ! Qu'il est chouette ton conky, juste une question est il possible d'avoir le même résultat des lignes rhythmbox mais pour vlc ?

j'ai essayé en changeant rhythmbox-client en vlc mais ça n'a pas fonctionné... dommage, connaîtrais tu la bonne commande pour avoir vlc, ma médiathèque est en vidéo format youtube, donc exit rhythmbox, clémentine, je n'ai, je crois, que vlc...

J'aimerais beaucoup avoir ce que tu as concocté pour le lecteur de musique.
Si tu me permet, bien sur, d'utiliser ta production de super conkystadore

${color white}${font Ubuntu:style=Bold:size=14}${alignc}${exec rhythmbox-client --print-playing-format %at}${font}
${color lightgrey}${font Ubuntu:size=11} ${alignc}${exec rhythmbox-client --print-playing-format %aa}${font}
${color white}${font Ubuntu:size=9} ${alignc}${exec rhythmbox-client --no-start --print-playing-format %tt}${font}
${color red}${font Ubuntu:style=Bold:size=8}${alignc} ${exec rhythmbox-client --no-start --print-playing-format "%te"}${font}
${voffset -5}${color lightgrey}${alignc}${mixerbar}$endif

Dernière modification par enebre (Le 19/05/2012, à 19:29)

Hors ligne

#1429 Le 19/05/2012, à 19:34

superBOB

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

Didier-T a écrit :

excuse moi, mais ton script ne correspond pas à ce qu'il y a sur ta capture d'écran, tu devrais vérifier.

Effectivement j'ai posté le mauvais fichier.

Voici le bon.

# set to yes if you want Conky to be forked in the background
background no

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=9
#xftfont Terminus:size=8
xftfont DejaVu Sans:size=8

# Text alpha when using Xft
xftalpha 1.0

# Print everything to console?
# out_to_console no

# Update interval in seconds
update_interval 3.0

# 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_type override
own_window_transparent yes
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 100 5

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 8

# border margins
border_inner_margin 2

# border width
border_width 1

# Default colors and also border colors
default_color Gray21
default_shade_color black
default_outline_color white

own_window_colour brown
own_window_transparent yes

# 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 10
gap_y 22

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

# 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 no
#Note: doesn't work in conky 1.2 =(

# Possible variables to be used:
#
#      Variable         Arguments                  Description                

#     addr              (interface)   IP address for an interface
#     acpiacadapter                   ACPI ac adapter state.                   
#     acpifan                         ACPI fan state                           
#     acpitemp                        ACPI temperature.                        
#     adt746xcpu                      CPU temperature from therm_adt746x       
#     adt746xfan                      Fan speed from therm_adt746x             
#     alignr            (num)         Right-justify text, with space of N
#     alignc                          Align text to centre
#     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                 
#     cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
#                     CPU usage graph, with optional colours in hex,
#                     minus the #.
#     downspeed         net           Download speed in kilobytes              
#     downspeedf        net           Download speed in kilobytes with one     
#                     decimal                                  
#     downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
#                     Download speed graph, colours defined in
#                     hex, minus the #.
#     exec              shell command Executes a shell command and displays    
#                     the output in conky. warning: this      
#                     takes a lot more resources than other    
#                     variables. I'd recommend coding wanted   
#                     behaviour in C and posting a patch :-).  
#     execbar           shell command Same as exec, except if the first value
#                     return is a value between 0-100, it
#                     will use that number for a bar.
#                     The size for the bar is currently fixed,
#                     but that may change in the future.
#     execgraph         shell command Same as execbar, but graphs values
#     execi             interval, shell command
#                      Same as exec but with specific interval. 
#                     Interval can't be less than              
#                     update_interval in configuration.        
#    font          font        Specify a different font.  Only applies
#                    to one line.
#     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                                   
#        
#                     your local computer.                     
#     if_running        (process)     if PROCESS is running, display
#                     everything if_running and the matching $endif
#     if_existing       (file)        if FILE exists, display everything between
#                     if_existing and the matching $endif
#     if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
#                     if_mounted and the matching $endif
#     else                            Text to show if any of the above are not true
#     kernel                          Kernel version                          
#     linkstatus        (interface)   Get the link status for wireless connections
#     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
#     
#     metar_ob_time
#     metar_temp
#     metar_tempf                     Temp in F
#     metar_windchill
#     metar_dew_point                 There are a bunch of these
#     metar_rh                        and they are self-explanatory
#     metar_windspeed
#     metar_winddir
#     metar_swinddir
#     metar_cloud
#     metar_u2d_time
#     
#     ml_upload_counter               total session upload in mb
#     ml_download_counter             total session download in mb
#     ml_nshared_files                number of shared files
#     ml_shared_counter               total session shared in mb, buggy
#                     in some mldonkey versions
#     ml_tcp_upload_rate              tcp upload rate in kb/s
#     ml_tcp_download_rate            tcp download rate in kb/s
#     ml_udp_upload_rate              udp upload rate in kb/s
#     ml_udp_download_rate            udp download rate in kb/s
#     ml_ndownloaded_files            number of completed files
#     ml_ndownloading_files           number of downloading files
#     
#     mpd_artist            Artist in current MPD song
#                     (must be enabled at compile)
#     mpd_album            Album in current MPD song
#     mpd_bar           (height)      Bar of mpd's progress
#     mpd_bitrate                     Bitrate of current song
#     mpd_status                      Playing, stopped, et cetera.
#     mpd_title            Title of current MPD song
#     mpd_vol                MPD's volume
#     mpd_elapsed                     Song's elapsed time
#     mpd_length                      Song's length
#     mpd_percent                     Percent of song's progress
#     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 
#                     conky 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           
#     offset            pixels        Move text over by N pixels
#     tail              logfile, lines (interval)
#                     Displays last N lines of supplied text
#                     text file.  If interval is not supplied,
#                     Conky assumes 2x Conky's interval.
#                     Max of 30 lines.
#                     Max of 30 lines can be displayed.
#     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 conky   
#                     has started.                            
#     top               type, num     This takes arguments in the form:
#                     top <name> <number>
#                     Basically, processes are ranked from 
#                     highest to lowest in terms of cpu
#                     usage, which is what <num> represents.
#                     The types are: "name", "pid", "cpu", and
#                     "mem".
#                     There can be a max of 10 processes listed.
#     top_mem           type, num     Same as top, except sorted by mem usage
#                     instead of cpu
#     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                                  
#     upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
#                     Upload speed graph, colours defined in
#                     hex, minus the #.
#     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
# stuff after 'TEXT' will be formatted on screen

TEXT

${color #000000}SYSTEM ${hr 2}$color
   $nodename $sysname
   ${color #000000}${execi 86400 cat /etc/lsb-release|grep ID|cut -d= -f2} ${color #000000}${execi 86400 cat /etc/lsb-release|grep REL|cut -d= -f2}${color #000000} "${color #000000}${execi 86400 cat /etc/lsb-release|grep NAME|cut -d= -f2}${color #000000}" 
   Kernel: $kernel on $machine
   ${color #000000}Uptime: $color$uptime 
#   ${color #000000}Battery: $color${battery}
${color #000000}CPU ${hr 2}$color
   ${color #000000}Frequency: $color${freq}MHz   ${color #000000}Temp: $color${acpitemp}°C
   ${color #000000}Load: $color${loadavg}
   ${cpubar 6,200}$color
#   NAME             PID       CPU%      MEM%
#   ${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
#   ${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
#   ${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
#   ${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}
${color #000000}MEMORY ${hr 2}$color
   RAM:   $memperc% $mem/$memmax  
   ${membar 6,200}$color
   Swap:  $swapperc% $swap/$swapmax   
   ${swapbar 6,200}$color
${color #000000}DISKS ${hr 2}$color
   Root:  ${fs_free /} / ${fs_size /} -- ${fs_free_perc /}% free
   ${fs_bar 6,200 /}$color
   Home: ${fs_free /home} / ${fs_size /home} -- ${fs_free_perc /home}% free
   ${fs_bar 6,200 /home}$color 
${color #000000}LAN (${addr eth0}) ${hr 2}$color
   Down: ${totaldown eth0} ${alignr}Up: ${totalup eth0}
   ${downspeedgraph eth0 25,100 000000 ff0000} ${alignr}${upspeedgraph eth0 25,100 000000 00ff00}$color
${color #000000}Wi-Fi (${addr wlan0}) ${hr 2}$color
   ${color #000000}Connected to $color${wireless_essid wlan0} 
   ${color #000000}Speed $color${wireless_bitrate wlan0} ${color #000000}Quality: $color${wireless_link_qual wlan0}% 
   Down: ${totaldown wlan0} ${alignr}Up: ${totalup wlan0}
   ${downspeedgraph wlan0 25,100 000000 ff0000} ${alignr}${upspeedgraph wlan0 25,100 000000 00ff00}$color
${color #000000}WAN (${addr ppp0}) ${hr 2}$color
   Down: ${totaldown ppp0} ${alignr}Up: ${totalup ppp0}
   ${downspeedgraph ppp0 25,100 000000 ff0000} ${alignr}${upspeedgraph ppp0 25,100 000000 00ff00}$color

capturedu20120517224132.th.png

Hors ligne

#1430 Le 19/05/2012, à 20:47

enebre

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

salut les conkystadores,
C'est avec l'excellent travail de zn23, que je suis arrivé à faire le conky de mes rêves, que j'ai nommé conky-tout-bete cfr zn23 post#1427,sauf le problème d'avoir vlc, à la place ou en plus de rhythmbox,
j'aimerais une petite aide pour le coup... siouplait
L'image original et le conky de zn23 modifié

#if mixerbar does not work add 'snd-mixer-oss' in /etc/modules#
#background no
# Use Xft?
use_xft yes
font snap-7
xftfont Ubuntu:pixelsize=13
xftalpha 0.9
text_buffer_size 2048
background yes
out_to_console no
update_interval 10
total_run_times 0
draw_shades no
draw_outline no
draw_borders no
#default_outline_color fff
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints below,sticky,skip_taskbar,skip_pager
double_buffer yes
default_color lightgrey
alignment bottom_left
gap_x 60
gap_y 255
no_buffers yes
minimum_size 5 5
maximum_width 170
short_units yes
use_spacer right
default_bar_size 100 4
TEXT 
${color EAEAEA}${font GE Inspira:pixelsize=55}${alignc}${time %H:%M}${font GE Inspira:pixelsize=24}
${alignc}${voffset 10}${alignc}${color EAEAEA}${time %A}
${alignc}${color D12122}${time %d}${color EAEAEA} ${time %B}
#${font Ubuntu:pixelsize=10}${alignr}${color D12122}HD  $color${fs_used /} / ${fs_size /}    ${color D12122}RAM  $color$mem / $memmax     ${color D12122}CPU  $color${cpu cpu0}% 
                 
#${voffset 50}${color white}${font Ubuntu:style=Bold:pixelsize=58}${time %H:%M}${font}
${color white}${font Ubuntu:style=Bold:pixelsize=12}${alignc}UpTime Chrono${font}
${color white}${voffset -10}${cpubar cpu7 2,30}${alignr}${cpubar cpu8 2,30}
${voffset -2}${color lightgrey}${font Ubuntu:size=12}${alignc}${uptime}${font}

${color white}${font Ubuntu:style=Bold:pixelsize=11}${alignc}SYSTEM INFO${font}
${color white}${voffset -10}${cpubar cpu7 2,30}${alignr}${cpubar cpu8 2,30}
${color lightgrey}${font Ubuntu:size=11}Hostname  ${alignr}${nodename}${font}
${color lightgrey}${font Ubuntu:size=11}Release ${alignr}12.04${font}
Kernel  ${alignr}${kernel}
${color lightgrey}${font Ubuntu:size=9}cpu 1 & 2 ${alignr}bar${font}
${color lightgrey}${cpubar cpu0 3,170}
${voffset -4}${font Ubuntu:size=10}${color green}${loadavg 1}${alignc -10}${color yellow}${loadavg 2}${alignr}${color red}${loadavg 3}${font}
${color lightgrey}${voffset -5}${cpubar cpu1 4,170}
${color lightgrey}${font Ubuntu:size=9}memory ${alignr}swap${font}
${color lightgrey}${membar 4,80}${alignr}${swapbar 4,80}

${color white}${font Ubuntu:style=Bold:pixelsize=11}${alignc}FILESYSTEM SIZE${font}
${color white}${voffset -10}${cpubar cpu7 2,30}${alignr}${cpubar cpu8 2,30}
${color lightgrey}${font Ubuntu:size=10}Voyager & home  ${alignr}${fs_bar 3,60 /}${font}
#${color lightgrey}${font Ubuntu:size=8}Home  ${alignr}${fs_bar 3,90 /home/zniavre/}${font}
#${color lightgrey}${font Ubuntu:size=8}Disk 1  ${alignr}${fs_bar 3,90 /media/Disk1/}${font}
#${color lightgrey}${font Ubuntu:size=8}Disk 2  ${alignr}${fs_bar 3,90 /media/Disk2/}${font}

${color white}${font Ubuntu:style=Bold:pixelsize=11}${alignc}NETWORK DATA
${color white}${voffset -10}${cpubar cpu7 2,30}${alignr}${cpubar cpu8 2,30}
${color lightgrey}${font Ubuntu:size=8}Ip network etho ${alignr} ${color white}${addr eth0}${font}
#${color lightgrey}${font Ubuntu:size=8}Ip network wlan ${alignr} ${color white}${addr wlan0}${font}
#${color white}${font Ubuntu:size=10}${wireless_essid wlan0} ${alignr} ${color lightgrey}${font Ubuntu:size=8}${color red}${wireless_link_qual_perc wlan0}${color lightgrey}%
${color lightgrey}${font Ubuntu:size=9}Down ${color white}${downspeed eth0}${color lightgrey}${alignr}Up ${color white}${upspeed eth0}${font}
${color lightgrey}${font Ubuntu:size=9}${totaldown eth0} ${alignr}${totalup eth0} ${font}

${color white}${font Ubuntu:style=Bold:pixelsize=11}${alignc}CALENDRIER 2012${font}
${color white}${voffset -10}${cpubar cpu7 2,30}${alignr}${cpubar cpu8 2,30}
${color white}${font Ubuntu Mono:size=10}${alignc -6}${execpi 60 VinDSL_Cal_8b=$(( $(date +%-d) - 1 ));VinDSL_Cal_8=$(date +%-d); cal -h | sed -e '1d' -e 's/\<'"$VinDSL_Cal_8"'\>/&${color grey}/' -e 's/\<'"$VinDSL_Cal_8b"'\>/&${color red}/'}${font}
${if_running rhythmbox}${color white}${font Ubuntu:style=Bold:pixelsize=10}${alignc}Rhythmbox${font}
${color white}${voffset -10}${cpubar cpu7 2,45}${alignr}${cpubar cpu8 2,45}
${color white}${font Ubuntu:style=Bold:size=14}${alignc}${exec rhythmbox-client --print-playing-format %at}${font}
${color lightgrey}${font Ubuntu:size=11} ${alignc}${exec rhythmbox-client --print-playing-format %aa}${font}
${color white}${font Ubuntu:size=9} ${alignc}${exec rhythmbox-client --no-start --print-playing-format %tt}${font}
${color red}${font Ubuntu:style=Bold:size=8}${alignc} ${exec rhythmbox-client --no-start --print-playing-format "%te"}${font}
${voffset -5}${color lightgrey}${alignc}${mixerbar}$endif
${color white}${font Ubuntu:style=Bold:pixelsize=13}${alignc}enebre${font}
${color white}${voffset -10}${cpubar cpu7 2,48}${alignr}${cpubar cpu8 2,48}

Ici la partie du code qui devrait être modifiée pour permettre l'affichage des infos du média en cours de lecture par VLC.

${if_running rhythmbox}${color white}${font Ubuntu:style=Bold:pixelsize=10}${alignc}Rhythmbox${font}
${color white}${voffset -10}${cpubar cpu7 2,45}${alignr}${cpubar cpu8 2,45}
${color white}${font Ubuntu:style=Bold:size=14}${alignc}${exec rhythmbox-client --print-playing-format %at}${font}
${color lightgrey}${font Ubuntu:size=11} ${alignc}${exec rhythmbox-client --print-playing-format %aa}${font}
${color white}${font Ubuntu:size=9} ${alignc}${exec rhythmbox-client --no-start --print-playing-format %tt}${font}

Dernière modification par enebre (Le 20/05/2012, à 10:12)

Hors ligne

#1431 Le 19/05/2012, à 22:22

Didier-T

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

superBOB a écrit :
Didier-T a écrit :

excuse moi, mais ton script ne correspond pas à ce qu'il y a sur ta capture d'écran, tu devrais vérifier.

Effectivement j'ai posté le mauvais fichier.

Voici le bon.

# set to yes if you want Conky to be forked in the background
background no

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=9
#xftfont Terminus:size=8
xftfont DejaVu Sans:size=8

# Text alpha when using Xft
xftalpha 1.0

# Print everything to console?
# out_to_console no

# Update interval in seconds
update_interval 3.0

# 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_type override
own_window_transparent yes
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 100 5

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 8

# border margins
border_inner_margin 2

# border width
border_width 1

# Default colors and also border colors
default_color Gray21
default_shade_color black
default_outline_color white

own_window_colour brown
own_window_transparent yes

# 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 10
gap_y 22

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

# 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 no
#Note: doesn't work in conky 1.2 =(

# Possible variables to be used:
#
#      Variable         Arguments                  Description                

#     addr              (interface)   IP address for an interface
#     acpiacadapter                   ACPI ac adapter state.                   
#     acpifan                         ACPI fan state                           
#     acpitemp                        ACPI temperature.                        
#     adt746xcpu                      CPU temperature from therm_adt746x       
#     adt746xfan                      Fan speed from therm_adt746x             
#     alignr            (num)         Right-justify text, with space of N
#     alignc                          Align text to centre
#     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                 
#     cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
#                     CPU usage graph, with optional colours in hex,
#                     minus the #.
#     downspeed         net           Download speed in kilobytes              
#     downspeedf        net           Download speed in kilobytes with one     
#                     decimal                                  
#     downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
#                     Download speed graph, colours defined in
#                     hex, minus the #.
#     exec              shell command Executes a shell command and displays    
#                     the output in conky. warning: this      
#                     takes a lot more resources than other    
#                     variables. I'd recommend coding wanted   
#                     behaviour in C and posting a patch :-).  
#     execbar           shell command Same as exec, except if the first value
#                     return is a value between 0-100, it
#                     will use that number for a bar.
#                     The size for the bar is currently fixed,
#                     but that may change in the future.
#     execgraph         shell command Same as execbar, but graphs values
#     execi             interval, shell command
#                      Same as exec but with specific interval. 
#                     Interval can't be less than              
#                     update_interval in configuration.        
#    font          font        Specify a different font.  Only applies
#                    to one line.
#     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                                   
#        
#                     your local computer.                     
#     if_running        (process)     if PROCESS is running, display
#                     everything if_running and the matching $endif
#     if_existing       (file)        if FILE exists, display everything between
#                     if_existing and the matching $endif
#     if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
#                     if_mounted and the matching $endif
#     else                            Text to show if any of the above are not true
#     kernel                          Kernel version                          
#     linkstatus        (interface)   Get the link status for wireless connections
#     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
#     
#     metar_ob_time
#     metar_temp
#     metar_tempf                     Temp in F
#     metar_windchill
#     metar_dew_point                 There are a bunch of these
#     metar_rh                        and they are self-explanatory
#     metar_windspeed
#     metar_winddir
#     metar_swinddir
#     metar_cloud
#     metar_u2d_time
#     
#     ml_upload_counter               total session upload in mb
#     ml_download_counter             total session download in mb
#     ml_nshared_files                number of shared files
#     ml_shared_counter               total session shared in mb, buggy
#                     in some mldonkey versions
#     ml_tcp_upload_rate              tcp upload rate in kb/s
#     ml_tcp_download_rate            tcp download rate in kb/s
#     ml_udp_upload_rate              udp upload rate in kb/s
#     ml_udp_download_rate            udp download rate in kb/s
#     ml_ndownloaded_files            number of completed files
#     ml_ndownloading_files           number of downloading files
#     
#     mpd_artist            Artist in current MPD song
#                     (must be enabled at compile)
#     mpd_album            Album in current MPD song
#     mpd_bar           (height)      Bar of mpd's progress
#     mpd_bitrate                     Bitrate of current song
#     mpd_status                      Playing, stopped, et cetera.
#     mpd_title            Title of current MPD song
#     mpd_vol                MPD's volume
#     mpd_elapsed                     Song's elapsed time
#     mpd_length                      Song's length
#     mpd_percent                     Percent of song's progress
#     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 
#                     conky 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           
#     offset            pixels        Move text over by N pixels
#     tail              logfile, lines (interval)
#                     Displays last N lines of supplied text
#                     text file.  If interval is not supplied,
#                     Conky assumes 2x Conky's interval.
#                     Max of 30 lines.
#                     Max of 30 lines can be displayed.
#     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 conky   
#                     has started.                            
#     top               type, num     This takes arguments in the form:
#                     top <name> <number>
#                     Basically, processes are ranked from 
#                     highest to lowest in terms of cpu
#                     usage, which is what <num> represents.
#                     The types are: "name", "pid", "cpu", and
#                     "mem".
#                     There can be a max of 10 processes listed.
#     top_mem           type, num     Same as top, except sorted by mem usage
#                     instead of cpu
#     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                                  
#     upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
#                     Upload speed graph, colours defined in
#                     hex, minus the #.
#     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
# stuff after 'TEXT' will be formatted on screen

TEXT

${color #000000}SYSTEM ${hr 2}$color
   $nodename $sysname
   ${color #000000}${execi 86400 cat /etc/lsb-release|grep ID|cut -d= -f2} ${color #000000}${execi 86400 cat /etc/lsb-release|grep REL|cut -d= -f2}${color #000000} "${color #000000}${execi 86400 cat /etc/lsb-release|grep NAME|cut -d= -f2}${color #000000}" 
   Kernel: $kernel on $machine
   ${color #000000}Uptime: $color$uptime 
#   ${color #000000}Battery: $color${battery}
${color #000000}CPU ${hr 2}$color
   ${color #000000}Frequency: $color${freq}MHz   ${color #000000}Temp: $color${acpitemp}°C
   ${color #000000}Load: $color${loadavg}
   ${cpubar 6,200}$color
#   NAME             PID       CPU%      MEM%
#   ${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
#   ${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
#   ${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
#   ${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}
${color #000000}MEMORY ${hr 2}$color
   RAM:   $memperc% $mem/$memmax  
   ${membar 6,200}$color
   Swap:  $swapperc% $swap/$swapmax   
   ${swapbar 6,200}$color
${color #000000}DISKS ${hr 2}$color
   Root:  ${fs_free /} / ${fs_size /} -- ${fs_free_perc /}% free
   ${fs_bar 6,200 /}$color
   Home: ${fs_free /home} / ${fs_size /home} -- ${fs_free_perc /home}% free
   ${fs_bar 6,200 /home}$color 
${color #000000}LAN (${addr eth0}) ${hr 2}$color
   Down: ${totaldown eth0} ${alignr}Up: ${totalup eth0}
   ${downspeedgraph eth0 25,100 000000 ff0000} ${alignr}${upspeedgraph eth0 25,100 000000 00ff00}$color
${color #000000}Wi-Fi (${addr wlan0}) ${hr 2}$color
   ${color #000000}Connected to $color${wireless_essid wlan0} 
   ${color #000000}Speed $color${wireless_bitrate wlan0} ${color #000000}Quality: $color${wireless_link_qual wlan0}% 
   Down: ${totaldown wlan0} ${alignr}Up: ${totalup wlan0}
   ${downspeedgraph wlan0 25,100 000000 ff0000} ${alignr}${upspeedgraph wlan0 25,100 000000 00ff00}$color
${color #000000}WAN (${addr ppp0}) ${hr 2}$color
   Down: ${totaldown ppp0} ${alignr}Up: ${totalup ppp0}
   ${downspeedgraph ppp0 25,100 000000 ff0000} ${alignr}${upspeedgraph ppp0 25,100 000000 00ff00}$color

http://img850.imageshack.us/img850/3331/capturedu20120517224132.th.png

Bonsoir,
ton soucis vient de cette ligne ci

${color #000000}${execi 86400 cat /etc/lsb-release|grep ID|cut -d= -f2} ${color #000000}${execi 86400 cat /etc/lsb-release|grep REL|cut -d= -f2}${color #000000} "${color #000000}${execi 86400 cat /etc/lsb-release|grep NAME|cut -d= -f2}${color #000000}"

remplace tes execi 86400 par des pre_exec

en fait il y a un petit bug avec conky depuis Ubuntu 12.04 execi attent la fin du compte à rebour pour executer la commande

Hors ligne

#1432 Le 19/05/2012, à 22:26

Didier-T

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

enebre a écrit :

salut les conkystadores,
C'est avec l'excellent travail de zn23, que je suis arrivé à faire le conky de mes rêves, que j'ai nommé conky-tout-bete cfr zn23 post#1427,sauf le problème d'avoir vlc, à la place ou en plus de rhythmbox,
j'aimerais une petite aide pour le coup... siouplait
L'image http://www.23hq.com/enebre/photo/7874341/original et le conky de zn23 modifié

#if mixerbar does not work add 'snd-mixer-oss' in /etc/modules#
#background no
# Use Xft?
use_xft yes
font snap-7
xftfont Ubuntu:pixelsize=13
xftalpha 0.9
text_buffer_size 2048
background yes
out_to_console no
update_interval 10
total_run_times 0
draw_shades no
draw_outline no
draw_borders no
#default_outline_color fff
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints below,sticky,skip_taskbar,skip_pager
double_buffer yes
default_color lightgrey
alignment bottom_left
gap_x 60
gap_y 255
no_buffers yes
minimum_size 5 5
maximum_width 170
short_units yes
use_spacer right
default_bar_size 100 4
TEXT 
${color EAEAEA}${font GE Inspira:pixelsize=55}${alignc}${time %H:%M}${font GE Inspira:pixelsize=24}
${alignc}${voffset 10}${alignc}${color EAEAEA}${time %A}
${alignc}${color D12122}${time %d}${color EAEAEA} ${time %B}
#${font Ubuntu:pixelsize=10}${alignr}${color D12122}HD  $color${fs_used /} / ${fs_size /}    ${color D12122}RAM  $color$mem / $memmax     ${color D12122}CPU  $color${cpu cpu0}% 
                 
#${voffset 50}${color white}${font Ubuntu:style=Bold:pixelsize=58}${time %H:%M}${font}
${color white}${font Ubuntu:style=Bold:pixelsize=12}${alignc}UpTime Chrono${font}
${color white}${voffset -10}${cpubar cpu7 2,30}${alignr}${cpubar cpu8 2,30}
${voffset -2}${color lightgrey}${font Ubuntu:size=12}${alignc}${uptime}${font}

${color white}${font Ubuntu:style=Bold:pixelsize=11}${alignc}SYSTEM INFO${font}
${color white}${voffset -10}${cpubar cpu7 2,30}${alignr}${cpubar cpu8 2,30}
${color lightgrey}${font Ubuntu:size=11}Hostname  ${alignr}${nodename}${font}
${color lightgrey}${font Ubuntu:size=11}Release ${alignr}12.04${font}
Kernel  ${alignr}${kernel}
${color lightgrey}${font Ubuntu:size=9}cpu 1 & 2 ${alignr}bar${font}
${color lightgrey}${cpubar cpu0 3,170}
${voffset -4}${font Ubuntu:size=10}${color green}${loadavg 1}${alignc -10}${color yellow}${loadavg 2}${alignr}${color red}${loadavg 3}${font}
${color lightgrey}${voffset -5}${cpubar cpu1 4,170}
${color lightgrey}${font Ubuntu:size=9}memory ${alignr}swap${font}
${color lightgrey}${membar 4,80}${alignr}${swapbar 4,80}

${color white}${font Ubuntu:style=Bold:pixelsize=11}${alignc}FILESYSTEM SIZE${font}
${color white}${voffset -10}${cpubar cpu7 2,30}${alignr}${cpubar cpu8 2,30}
${color lightgrey}${font Ubuntu:size=10}Voyager & home  ${alignr}${fs_bar 3,60 /}${font}
#${color lightgrey}${font Ubuntu:size=8}Home  ${alignr}${fs_bar 3,90 /home/zniavre/}${font}
#${color lightgrey}${font Ubuntu:size=8}Disk 1  ${alignr}${fs_bar 3,90 /media/Disk1/}${font}
#${color lightgrey}${font Ubuntu:size=8}Disk 2  ${alignr}${fs_bar 3,90 /media/Disk2/}${font}

${color white}${font Ubuntu:style=Bold:pixelsize=11}${alignc}NETWORK DATA
${color white}${voffset -10}${cpubar cpu7 2,30}${alignr}${cpubar cpu8 2,30}
${color lightgrey}${font Ubuntu:size=8}Ip network etho ${alignr} ${color white}${addr eth0}${font}
#${color lightgrey}${font Ubuntu:size=8}Ip network wlan ${alignr} ${color white}${addr wlan0}${font}
#${color white}${font Ubuntu:size=10}${wireless_essid wlan0} ${alignr} ${color lightgrey}${font Ubuntu:size=8}${color red}${wireless_link_qual_perc wlan0}${color lightgrey}%
${color lightgrey}${font Ubuntu:size=9}Down ${color white}${downspeed eth0}${color lightgrey}${alignr}Up ${color white}${upspeed eth0}${font}
${color lightgrey}${font Ubuntu:size=9}${totaldown eth0} ${alignr}${totalup eth0} ${font}

${color white}${font Ubuntu:style=Bold:pixelsize=11}${alignc}CALENDRIER 2012${font}
${color white}${voffset -10}${cpubar cpu7 2,30}${alignr}${cpubar cpu8 2,30}
${color white}${font Ubuntu Mono:size=10}${alignc -6}${execpi 60 VinDSL_Cal_8=`date +%-d`; cal -h | sed -e '1d' -e 's/\<'"$VinDSL_Cal_8"'\>/${color red}&${color grey}/'}${font}
${if_running rhythmbox}${color white}${font Ubuntu:style=Bold:pixelsize=10}${alignc}Rhythmbox${font}
${color white}${voffset -10}${cpubar cpu7 2,45}${alignr}${cpubar cpu8 2,45}
${color white}${font Ubuntu:style=Bold:size=14}${alignc}${exec rhythmbox-client --print-playing-format %at}${font}
${color lightgrey}${font Ubuntu:size=11} ${alignc}${exec rhythmbox-client --print-playing-format %aa}${font}
${color white}${font Ubuntu:size=9} ${alignc}${exec rhythmbox-client --no-start --print-playing-format %tt}${font}
${color red}${font Ubuntu:style=Bold:size=8}${alignc} ${exec rhythmbox-client --no-start --print-playing-format "%te"}${font}
${voffset -5}${color lightgrey}${alignc}${mixerbar}$endif
${color white}${font Ubuntu:style=Bold:pixelsize=13}${alignc}enebre${font}
${color white}${voffset -10}${cpubar cpu7 2,48}${alignr}${cpubar cpu8 2,48}

Ici la partie du code qui devrait être modifiée pour permettre l'affichage des infos du média en cours de lecture par VLC.

${if_running rhythmbox}${color white}${font Ubuntu:style=Bold:pixelsize=10}${alignc}Rhythmbox${font}
${color white}${voffset -10}${cpubar cpu7 2,45}${alignr}${cpubar cpu8 2,45}
${color white}${font Ubuntu:style=Bold:size=14}${alignc}${exec rhythmbox-client --print-playing-format %at}${font}
${color lightgrey}${font Ubuntu:size=11} ${alignc}${exec rhythmbox-client --print-playing-format %aa}${font}
${color white}${font Ubuntu:size=9} ${alignc}${exec rhythmbox-client --no-start --print-playing-format %tt}${font}

Bonsoir(Re),
Tu devrais regarder ce script ci, je suis certain qu'il en existe d'autres avec plus d'informations disponibles.

Hors ligne

#1433 Le 19/05/2012, à 22:40

enebre

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

J'ai bien essayé mais désolé, je ne peux rien faire avec ces lignes, ça dépasse mes compétences.
Je suis allé sur le web chercher un peu et pour l'instant je n'ai pas encore trouvé pointure à mon conky.

Dernière modification par enebre (Le 19/05/2012, à 23:08)

Hors ligne

#1434 Le 20/05/2012, à 09:00

enebre

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

Bonjour Didier
voici la capture originalcomme tu peux le constater en bas ce n'est plus correctement aligné, j'ai bien vérifié si j'avais changé quelque chose depuis la précédente capture, mais aucune différence, c'est le djin qui pendant la nuit est venu faire des bêtises...
original
Que représente la ligne des valeurs loadvag en couleur vert-blanc-rouge

${voffset -4}${font Ubuntu:size=10}${color green}${loadavg 1}${alignc -10}${color yellow}${loadavg 2}${alignr}${color red}${loadavg 3}${font}

située dans la partie systeme info entre les barres des cpu ?

Didier-T a écrit :

Ton soucis semble venir du calendrier, il faudrait continuer cette discutions dans le fil consacré à conky.

P.S.: l'utilisation de script toutes les secondes est nuisible à ton utilisation de processeur (regarde ton taux d'utilisation)

Que dois-je chercher comme type d'erreur

Dernière modification par enebre (Le 20/05/2012, à 09:06)

Hors ligne

#1435 Le 20/05/2012, à 09:19

Didier-T

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

enebre a écrit :

Bonjour Didier
voici la capture originalcomme tu peux le constater en bas ce n'est plus correctement aligné, j'ai bien vérifié si j'avais changé quelque chose depuis la précédente capture, mais aucune différence, c'est le djin qui pendant la nuit est venu faire des bêtises...
http://www.23hq.com/enebre/photo/7874848/original
Que représente la ligne des valeurs loadvag en couleur vert-blanc-rouge

${voffset -4}${font Ubuntu:size=10}${color green}${loadavg 1}${alignc -10}${color yellow}${loadavg 2}${alignr}${color red}${loadavg 3}${font}

située dans la partie systeme info entre les barres des cpu ?

Didier-T a écrit :

Ton soucis semble venir du calendrier, il faudrait continuer cette discutions dans le fil consacré à conky.

P.S.: l'utilisation de script toutes les secondes est nuisible à ton utilisation de processeur (regarde ton taux d'utilisation)

Que dois-je chercher comme type d'erreur

aller ont vas tenter un truc pour voir dans ton conky tu vas modifier la commande suivante

VinDSL_Cal_8=`date +%-d`; cal -h | sed -e '1d' -e 's/\<'"$VinDSL_Cal_8"'\>/${color red}&${color grey}/'

en

VinDSL_Cal_8=$(( $(date +%-d) - 7 )); cal -h | sed -e '1d' -e 's/\<'"$VinDSL_Cal_8"'\>/${color red}&${color grey}/'

si je ne me trompe pas sa devrais deplacer le soucis une ligne plus haut

et avec ceci

VinDSL_Cal_8=$(( $(date +%-d) - 1 )); cal -h | sed -e '1d' -e 's/\<'"$VinDSL_Cal_8"'\>/${color red}&${color grey}/'

tous devrais retrouver sa place, mais avec un jour de retard.

tu fais des petites captures, pour montrer le résultat (la flemme de refaire un conky), sa servira certainement a d'autre plus tard

Hors ligne

#1436 Le 20/05/2012, à 09:29

enebre

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

Didier-T a écrit :

aller ont vas tenter un truc pour voir dans ton conky tu vas modifier la commande suivante

VinDSL_Cal_8=`date +%-d`; cal -h | sed -e '1d' -e 's/\<'"$VinDSL_Cal_8"'\>/${color red}&${color grey}/'

en

VinDSL_Cal_8=$(( $(date +%-d) - 1 )); cal -h | sed -e '1d' -e 's/\<'"$VinDSL_Cal_8"'\>/${color red}&${color grey}/'

Résolu smile
Capture20dC3A9cran20-202005201220-20094104.png

Dernière modification par enebre (Le 20/05/2012, à 09:45)

Hors ligne

#1437 Le 20/05/2012, à 09:31

Didier-T

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

enebre a écrit :
Didier-T a écrit :

aller ont vas tenter un truc pour voir dans ton conky tu vas modifier la commande suivante

VinDSL_Cal_8=$(( $(date +%-d) - 1 )); cal -h | sed -e '1d' -e 's/\<'"$VinDSL_Cal_8"'\>/${color red}&${color grey}/'

Résolu :-)

non, nous ne somme pas le 19 mais le 20, le soucis est isolé, pas résolu.
mais sa vas venir, il faut juste trouver comment contourner le bug d'affichage de conky

Hors ligne

#1438 Le 20/05/2012, à 09:47

enebre

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

En effet sad
Étrange ce décalage de 24h

Dernière modification par enebre (Le 20/05/2012, à 09:55)

Hors ligne

#1439 Le 20/05/2012, à 09:59

Didier-T

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

enebre a écrit :

En effet sad
Étrange ce décalage de 24h

essaye ceci

VinDSL_Cal_8b=$(( $(date +%-d) - 1 ));VinDSL_Cal_8=$(date +%-d); cal -h | sed -e '1d' -e 's/\<'"$VinDSL_Cal_8"'\>/&${color grey}/' -e 's/\<'"$VinDSL_Cal_8b"'\>/&${color red}/'

c'est pas très beau, mais sa pourrais faire l’affaire.

Hors ligne

#1440 Le 20/05/2012, à 10:08

enebre

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

Ce coup-ci tu as résolu le problème, je crois que tu fais de moi un adepte de conky, je vais voir pour étudier le sujet en reprenant depuis le premier post du forum, peut être que je pourrais apprendre à résoudre quelques petites situations, on n' est jamais trop nombreux.
th_Capture20dC3A9cran20-202005201220-20100529.png

Dernière modification par enebre (Le 20/05/2012, à 10:09)

Hors ligne

#1441 Le 20/05/2012, à 10:11

Didier-T

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

enebre a écrit :

Ce coup-ci tu as résolu le problème, je crois que tu fais de moi un adepte de conky, je vais voir pour étudier le sujet en reprenant depuis le premier post du forum, peut être que je pourrais apprendre à résoudre quelques petites situations, on n' est jamais trop nombreux.
http://i1070.photobucket.com/albums/u49 … 100529.png

Et bien voila le génie est retourné dans sa bouteille. cool

Hors ligne

#1442 Le 20/05/2012, à 10:49

enebre

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

Oui, merci Didier.

Hors ligne

#1443 Le 20/05/2012, à 11:05

zn23

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

merci à vous deux d'avoir résolu le calendrier car ce matin à ma grande surprise je l'ai vu bugger.


tu peux y mettre tout le fûmier que tu veux , pour un chêne centenaire, faut cent ans ...

Hors ligne

#1444 Le 20/05/2012, à 12:23

enebre

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

zn23 - merci à toi de m'avoir ouvert la porte des conkys.

Hors ligne

#1445 Le 20/05/2012, à 13:04

zn23

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

enebre: les trois valeurs colorées sont le load average :
techniquement je crois que c'est la charge processeur, je sais pas trop exactement, mais ca permet ,sur mon vieil ordi , de verifier qu'il ne ralentisse  de trop.

j'ai vu sur ton conkyshot que la derniere barre concernant la partie de rhythmbox n'affiche rien  ,soit tu l'enleve ,soit tu lance le module snd-mixer-oss comme indiqué sur la premiere ligne de mon conkyrc


tu peux y mettre tout le fûmier que tu veux , pour un chêne centenaire, faut cent ans ...

Hors ligne

#1446 Le 20/05/2012, à 13:35

enebre

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

zn23 - J'ai difficile à comprendre les valeurs qui s'affichent, je l'enlèverai si je ne trouve pas la lumière à ce sujet.
Je voudrais intégrer clémentine sous rhythmbox, mais j'ai un soucis avec l'affichage des vignettes , j'ai pour l'instant l'image par défaut d'un cd vide,  "image /tmp/cover" ne doit pas être le bon endroit, dois je changer l'adresse ?
Pour la position de la vignette que je l'aimerais en bottom au lieu de : ${image /tmp/cover -p 50, 640 -s 75x75 -f 6 } (résolu pour la position)

j'ai placé le modules en etc/modules, la ligne est maintenant pleine mais ne change pas, je l'ai donc supprimée de mon conky.

Dernière modification par enebre (Le 20/05/2012, à 13:49)

Hors ligne

#1447 Le 20/05/2012, à 13:37

superBOB

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

Didier-T a écrit :

Bonsoir,
ton soucis vient de cette ligne ci

${color #000000}${execi 86400 cat /etc/lsb-release|grep ID|cut -d= -f2} ${color #000000}${execi 86400 cat /etc/lsb-release|grep REL|cut -d= -f2}${color #000000} "${color #000000}${execi 86400 cat /etc/lsb-release|grep NAME|cut -d= -f2}${color #000000}"

remplace tes execi 86400 par des pre_exec

en fait il y a un petit bug avec conky depuis Ubuntu 12.04 execi attent la fin du compte à rebour pour executer la commande

Ca marche!
Mille mercis.

Hors ligne

#1448 Le 20/05/2012, à 14:46

enebre

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

Comment faire pour avoir les jaquettes des albums en lecture par Clémentine dans ce petit conky :

${image /tmp/cover -p 48, 680 -s 75x75 -f 6 }



${execi 10 conkyClementine -d CA > /dev/null}
${color3}Title: ${color1}${exec conkyClementine --datatype=TI --maxlength=32}
${color3}Artist: ${color1}${exec conkyClementine --datatype=AR --maxlength=32}
${color3}Album: ${color1}${exec conkyClementine --datatype=AL --maxlength=32}
${color3}Piste: ${color1}${exec conkyClementine --datatype=TN --maxlength=32} ${color3}Time: ${color1}${exec conkyClementine --datatype=PT --maxlength=32} / ${exec conkyClementine --datatype=LE --maxlength=32}  ${color3}$endif
#${execibar 2 conkyClementine --datatype=PP}
#$else${color #696969}${alignc}${font sans:size=6:bold}No Activity${font}

Dernière modification par enebre (Le 20/05/2012, à 14:48)

Hors ligne

#1449 Le 20/05/2012, à 16:14

enebre

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

J'ai trouvé une partie de la solution, mais je ne sais pas comment l'intégrer au conkyrc, la ligne de commande lancée dans un terminal offre le résultat tant espéré, comment faire pour lancer cette ligne avec la condition if clementine running par exemple, cela dans la partie de code postée ici dessus :

ls -f1 /tmp | grep clementine-art

dans la seconde qui suit l'image apparaît.

Dernière modification par enebre (Le 20/05/2012, à 16:15)

Hors ligne

#1450 Le 20/05/2012, à 16:40

Didier-T

Re : (4) Conky : Postez vos conkyrc ou certaines parties intéressantes

enebre a écrit :

J'ai trouvé une partie de la solution, mais je ne sais pas comment l'intégrer au conkyrc, la ligne de commande lancée dans un terminal offre le résultat tant espéré, comment faire pour lancer cette ligne avec la condition if clementine running par exemple, cela dans la partie de code postée ici dessus :

ls -f1 /tmp | grep clementine-art

dans la seconde qui suit l'image apparaît.

Si tu veut te creusé un peut le tête va voir de ce coté ci

~/.conky/conky2/conkyClementine1

il s'agit du conky clementine wv inclus dans Voyager, il y a tous ce que tu cherche à l’intérieur.
Mais aussi une forte sollicitation du processeur.
Enfin a toi de juger.

Si un jour je trouve une solution pour employer DBus en lua je vous ferais un petit script sympa qui consommera presque pas de ressource, mais pour le moment je ne trouve pas !

Hors ligne