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.

#1001 Le 06/04/2008, à 19:39

fluo

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

BiBou258 a écrit :

Fluo: Je trouve ton fond d'écran pas mal du tout ! smile

Pourrais-tu me passer un lien? tongue

Oula, je crois que j'ai trouvé ca sur debian-tarte (deviantart), et je l'ai bidouillé pour qu'il passe sur mon écran, voila l'original en 4/3:
http://pix.nofrag.com/2/0/2/68ae0adc2d1 … c9a364.jpg
et le mien en 1280x800:
http://pix.nofrag.com/7/7/e/370fc91b3fe … 1cd58c.png
Ca s'appelle "Present" et c'est fait par PixelPanzer (merci à lui)

Dernière modification par fluo (Le 06/04/2008, à 19:47)


((fluoblog)) Le blog qui nettoie vos oreilles: http://fluoblog.wordpress.com/
Désolé pour les accents oubliés, j'ai un QWERTY suédois

Hors ligne

#1002 Le 06/04/2008, à 20:44

BiBou258

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

fluo a écrit :
BiBou258 a écrit :

Fluo: Je trouve ton fond d'écran pas mal du tout ! smile

Pourrais-tu me passer un lien? tongue

Oula, je crois que j'ai trouvé ca sur debian-tarte (deviantart), et je l'ai bidouillé pour qu'il passe sur mon écran, voila l'original en 4/3:
http://pix.nofrag.com/2/0/2/68ae0adc2d1 … c9a364.jpg
et le mien en 1280x800:
http://pix.nofrag.com/7/7/e/370fc91b3fe … 1cd58c.png
Ca s'appelle "Present" et c'est fait par PixelPanzer (merci à lui)

Excellent !
Merci beaucoup ! big_smile

Hors ligne

#1003 Le 07/04/2008, à 14:09

robinmcgregord

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

Voici mon mien screenshotwp6.th.png

.conkyrc

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

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 8x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
#font -*-luxi sans-medium-r-normal-*-13-*-*-*-*-*-iso8859-2
#font -*-helvetica-medium-r-normal-*-12-*-100-100-*-*-iso8859-2
#font -*-lucidatypewriter-medium-r-*-*-14-*-100-100-*-*-iso8895-2
#font -*-courier-medium-r-normal-*-14-*-100-100-*-*-iso8859-2
#font -*-lucida-medium-r-normal-*-13-*-*-*-*-*-iso8859-2

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont monospace-8
xftfont sans-8.5

own_window_transparent yes
own_window_colour black

# Text alpha when using Xft
xftalpha 0.8


# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1

# Create own window instead of using desktop (required in nautilus)
#own_window yes
#own_window_type normal
own_window_hints below
own_window yes
own_window_type override

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

# Minimum size of text area
minimum_size 5 5
maximum_width 110

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders yes

# Stippled borders?
stippled_borders 0

# border margins
border_margin 10

# border width
border_width 0

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

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

gap_x 5
gap_y 30 #margines gorny

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

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# boinc (seti) dir
# seti_dir /opt/seti

# 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


# 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


TEXT
${font Verdana:size=7}
${color #FF8900}
kernel: $kernel
Uptime: $uptime
$stippled_hr
${color lightgrey}
CPU Usage: ${alignr}${cpu}%
${cpugraph 000000 5000a0}
RAM: ${alignr}$mem -  $memperc%
${membar}
Swap:${alignr}$swap - $swapperc%
${swapbar}
Running proc:${alignr}$running_processes/$processes

Top CPU Usage
${top name 1}${alignr}${top cpu 1}%
${top name 2}${alignr}${top cpu 2}%
${top name 3}${alignr}${top cpu 3}%

Top Mem usage
${top_mem name 1}${alignr}${top_mem mem 1}Mo
${top_mem name 2}${alignr}${top_mem mem 2}Mo
${top_mem name 3}${alignr}${top_mem mem 3}Mo
${color #00FFF6}
$stippled_hr
File systems:
/   ${alignr}${fs_used_perc /}% ${fs_free /}
${fs_bar 8 /}
Doc   ${alignr}${fs_used_perc /media/documents}% ${fs_free /media/documents}
${fs_bar 8 /media/documents}
DD temp: ${execi 10 echo $(($(hddtemp -n /dev/sda1)-0))} °C
${color #19FF00}
$stippled_hr
Networking:
int IP${alignr}${addr eth1}
ext IP${alignr}${execi 1800 ~/monip.sh}
Down: ${downspeed eth1}k/s
${downspeedgraph eth1 32 ff0000 0000ff}
Up: ${upspeed eth1}k/s
${upspeedgraph eth1 32 0000ff ff0000}
HellaNZB:
${execi 10 hellaconk.py -l}

Gmail: 
${execi 10 ~/gmail.py}
${color #FFFF00}${stippled_hr}${if_empty ${execi 10 ~/exaile.sh}}
Exaile:
Artiste : ${execi 10 exaile --get-artist}
Titre : ${execi 10 exaile --get-title}
Album : ${execi 10 exaile --get-album}
Lecture : ${execi 1 ~/.lecture_exaile $(exaile --current-position)}% ${execbar ~/.lecture_exaile $(exaile --current-position)}
${endif}

Dernière modification par robinmcgregord (Le 07/04/2008, à 14:12)

Hors ligne

#1004 Le 09/04/2008, à 11:47

alautre

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

J'avais déjà posté :http://forum.ubuntu-fr.org/viewtopic.php?id=205151
La météo ne s'affiche toujours  pas sur mon conky
Ce que je ne comprends pas c'est pourquoi les gens publient leur .weather.sh et xslt
Que faut il modifier par rapport a celui du tuto
Moi , j'ai simplement remplacé user par
# where this script and the XSLT lives
RUNDIR=/home/alain/scripts/weather
Une petite aide merci

Hors ligne

#1005 Le 13/04/2008, à 17:16

fsail

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

Mon conky cool :

conkyhp2.png

Le fichier conkyrc :

TEXT
${font Zekton:style=Bold:pixelsize=10}
${color #aaaaaa}${alignc}Bonjour Florent
${color white}${alignc}Nous sommes le ${time %A %d %B %Y} - ${time %H:%M:%S}
${color white}${alignc}IP Locale ${addr eth1} ${color white} IP Publique ${execi 60 wget -O - http://ip.tupeux.com | tail} ${color white} Uptime: $uptime
${color white}${alignc}${exec cat /etc/issue.net} - $sysname $kernel - $machine $freq_g GHz
${color white}${alignc}Batterie ${battery_percent}% ${battery} - $acpiacadapter
$color$hr
${color white}CPU
${color white}Load:${color #aaaaaa} $loadavg
${color white}CPU Usage:${color #aaaaaa} $cpu% ${cpubar}
${color #aaaaaa}${cpugraph #aaaaaa #aaaaaa}
${color white}RAM Usage:${color #aaaaaa} $mem/$memmax - $memperc% ${membar}
${color white}Processes:${color #aaaaaa} $processes ${color white}Running:${color #aaaaaa} $running_processes
$color$hr
${color white}${alignc}Réseau WiFi
${alignc}${color white}Accès ${color #aaaaaa}${wireless_essid eth1}${color white}   Mode ${color #aaaaaa}${wireless_mode eth1}${color white}   Taux ${color #aaaaaa}${wireless_bitrate eth1}${color white}   Qualité ${color #aaaaaa}${wireless_link_qual_perc eth1}${color white}
${color white}${alignc} Down: ${color #aaaaaa} ${downspeed eth1} k/s${color white} ${offset 100}  Up:${color #aaaaaa} ${upspeed eth1} k/s
${color #aaaaaa}${alignc} ${downspeedgraph eth1 32,150 #aaaaaa #aaaaaa} ${color #aaaaaa}${upspeedgraph eth1 32,150 #aaaaaa #aaaaaa}
${color white}${alignc} DL ${color #aaaaaa} ${totaldown eth1}${color white} - UP ${color #aaaaaa} ${totalup eth1}
$color$hr
${color white}Occupation disques
${color #aaaaaa}/home   ${fs_used /home}/${fs_size /home}${alignr}${fs_used_perc /home}%
${fs_bar /home}
${if_mounted /media/vista}/Vista   ${fs_used /media/vista}/${fs_size /media/vista}${alignr}${fs_used_perc /media/vista}%
${fs_bar /media/vista}
${else}vista non monté
$endif
$color$hr
${color white} Météo
 ${color #aaaaaa}Ville: ${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M M M S}
 Conditions: ${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M M M C}
 Description: ${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M M M D}
 ${font Weather:size=36}${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M M M F}${font}
 Température: ${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M M M T}
 Vent: ${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M K K W}
 Visibilité: ${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M M M V}
 Humidité: ${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M I I H}
$color$hr

Et son conkyGlobalWeather.py :

#!/usr/bin/python
# -*- coding: iso-8859-15 -*-
###############################################################################
# conkyGlobalWeather.py is a simple python script to gather details of the 
# current weather for use in conky, where textual content is only valid.
#
# Author: Kaivalagi
# Dependancies: Python, PyMetar
#
# Usage: conkyGlobalWeather.py StnRef TempUnit WindUnit VisUnit DataType
#
#     Where StnRef:   EGSH = Norwich, UK
#
#           TempUnit: M = Metric (°C)
#                     I = Imperial (°F)
#
#           WindUnit: M = Metric (m/s)
#                     K = Metric (kph)
#                     I = Imperial(mph)
#
#           VisUnit:  M = Metric (kilometers)
#                     I = Imperial (miles)
#
#           DataType: T = Temperature
#                     W = Wind
#                     V = Visibility
#                     S = StationName
#                     D = Description
#                     C = Conditions
#                     H = Humidity
#                     F = Weather Font Character (Based on Pixmap)
#
#                     Note: Only one data type should be given at any time
#
# References:
#
#     PyMetar: http://www.schwarzvogel.de/software-pymetar.shtml 
#     Station Ref Lookup: http://www.nws.noaa.gov/tg/siteloc.shtml
#
#
# Example Output: conkyGlobalWeather.py EGSH M I I
#     
#        Location: Norwich Weather Centre, United Kingdom
#        Description: showers in the vicinity; Cumulonimbus clouds observed
#        Conditions: partly cloudy
#        Temperature: 5 °C
#        Wind: No Wind
#        Humidity: 80 %
#        Visibility: 7 miles
#        Pixmap: suncloud
#

import sys, pymetar, textwrap, pickle, os, time, datetime
from stat import *

###############################################################################
# CONSTANTS
USAGE = """
 conkyGlobalWeather.py is a simple python script to gather details of the 
 current weather for use in conky, where textual content is only valid.

 Usage: conkyGlobalWeather.py StnRef TempUnit WindUnit VisUnit DataType

     Where StnRef:   e.g. EGSH -> http://www.nws.noaa.gov/tg/siteloc.shtml

           TempUnit: M = Metric (°C)
                     I = Imperial (°F)

           WindUnit: M = Metric (m/s)
                     K = Metric (kph)
                     I = Imperial(mph)

           VisUnit:  M = Metric (kilometers)
                     I = Imperial (miles)

           DataType: T = Temperature
                     W = Wind
                     V = Visibility
                     S = StationName
                     D = Description
                     C = Conditions
                     H = Humidity
                     F = Weather Font Character (Based on Pixmap)

                     Note: Only one data type should be given at any time
"""

TEMP_FILEPATH="/tmp/globalweather.pkl"
WRAP_WIDTH = 40
EXPIRY_MINUTES = 90

#StnRef = "EGSH" # Norwich
#TempUnit = "M" #M=Metric(°C)/I=Imperial(°F)
#WindUnit = "I" #M=Metric(Metres Per Second)/K=Metric(Kilometers Per Hour)/I=Imperial(Miles Per Hour)
#VisUnit = "I" #M=Metric(Kilometers)/I=Imperial(Miles)

###############################################################################
# Functions
def formatSentence(text, capitalise):

    # Capitalise the first character
    if capitalise == 1:
        text = text.capitalize()

    # wrap the text to fit the width
    text = "\n".join(textwrap.wrap(text,WRAP_WIDTH))

    return text

def serializeData(obj, filepath):
    fileoutput = open(filepath, 'wb')
    pickle.dump(obj, fileoutput)
    fileoutput.close()
    return

def deserializeData(filepath):
    fileinput = open(filepath, 'rb')
    obj = pickle.load(fileinput)
    fileinput.close()
    return obj

# Make calls to PyMetar for details and/or store details away
def FetchData(StnRef):
    # does the data need retrieving again?
    if os.path.exists(TEMP_FILEPATH):
        lastmodDate = time.localtime(os.stat(TEMP_FILEPATH)[ST_MTIME])
        expiryDate = (datetime.datetime.today() - datetime.timedelta(minutes=EXPIRY_MINUTES)).timetuple()

        if expiryDate > lastmodDate:
            RefetchData = True
        else:
            RefetchData = False
    else:
        RefetchData = True

    # fetch the data, either from Metar or by 'unpickling'
    if RefetchData == True:
        rf = pymetar.ReportFetcher(StnRef)
        re = rf.FetchReport()
        rp = pymetar.ReportParser()
        pr = rp.ParseReport(re)
        serializeData(pr,TEMP_FILEPATH)
    else:
        pr = deserializeData(TEMP_FILEPATH)

    return pr

def OutputData(pr,TempUnit,WindUnit,VisUnit,DataType):

    # Temperature
    if DataType == "T":
        if TempUnit == "M":
            OutputText = "%d °C" % int(pr.getTemperatureCelsius())
        else:
            OutputText = "%d °F" % int(pr.getTemperatureFahrenheit())

    # Wind
    elif DataType == "W":
        WindDirection = pr.getWindCompass()
        if WindDirection is None:
            OutputText = "No Wind"
        else:
            if WindUnit == "M":
                OutputText = "%d m/s -> %s" % (int(pr.getWindSpeed()),WindDirection)
            elif WindUnit == "K":
                OutputText = "%d kph -> %s" % (int((pr.getWindSpeed()*3600)/1000),WindDirection)
            else:
                OutputText = "%d mph -> %s" % (int(pr.getWindSpeedMilesPerHour()),WindDirection)

    # Visibility
    elif DataType == "V":
        if VisUnit == "M":
            OutputText = "%d kilometers" % int(pr.getVisibilityKilometers())
        else:
            OutputText = "%d miles" % int(pr.getVisibilityMiles())

    # StationName
    elif DataType == "S":
        OutputText = pr.getStationName()

    # Description
    elif DataType == "D":
        OutputText = formatSentence(pr.getWeather(),1)

    # Conditions
    elif DataType == "C":
        OutputText = formatSentence(pr.getSkyConditions(),1)

    # Humidity
    elif DataType == "H":
        OutputText = "%d %%" % int(pr.getHumidity())

    # Weather Font Character
    elif DataType == "F":
        Pixmap = pr.getPixmap()

        if Pixmap is None:
            OutputText = "c"
        elif Pixmap == "clear":
            OutputText = "A"
        elif Pixmap == "sun":
            OutputText = "A"
        elif Pixmap == "suncloud":
            OutputText = "c"
        elif Pixmap == "cloud":
            OutputText = "e"
        elif Pixmap == "rain":
            OutputText = "h"
        elif Pixmap == "snow":
            OutputText = "k"

    return OutputText

###############################################################################
# MAIN

if len(sys.argv) < 6:
    print "\n",formatSentence(" ERROR: Incorrect number of command line arguments.\n"+USAGE,0)
else:
    StnRef = sys.argv[1]
    TempUnit = sys.argv[2]
    WindUnit = sys.argv[3]
    VisUnit = sys.argv[4]
    DataType = sys.argv[5]

    pr = FetchData(StnRef)

    if pr.getTemperatureCelsius() is None:
        print "\n",formatSentence(" ERROR: There was a problem obtaining the weather data.\n",0)
    else:
        text = OutputData(pr,TempUnit,WindUnit,VisUnit,DataType)

        if text is None:
            print "\n",formatSentence(" ERROR: DataType not set correctly.\n"+USAGE,0)
        else:
            print text

Hors ligne

#1006 Le 14/04/2008, à 14:53

kokim

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

bonjour

@fsail : j'aime bien ton script météo mais j'aimerais avoir la météo pour les jours à venir,
celle du jour m'interesse moyennement...

Hors ligne

#1007 Le 14/04/2008, à 15:16

sakul

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

http://images1.up.free.fr/im.php?img=u/22/capture_1207824262.png

en bas a droite :

use_xft yes
on_bottom yes
xftfont bauhaus:size=7
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
double_buffer yes
minimum_size 300 5
draw_shades no
draw_outline no
draw_borders yes
stippled_borders 0
border_margin 5
border_width 1
default_color #4582B5
default_shade_color black
default_outline_color black
alignment top_left
gap_x 1100
gap_y 480
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer no
own_window_hints undecorated,below,skip_taskbar,skip_pager



TEXT
$alignc$nodename - $sysname $kernel on $machine
$stippled_hr
${color #4582B5}Usage CPU:$color ${color #F6AE03} ${cpu cpu0}% ${color #FFFFFF} ${cpubar cpu0}
$alignc	+-- Core1   ${color #F6AE03}	${cpu cpu1}%, ${color #FFFFDD}$alignr${cpubar cpu1 10,100 FFFFDD  F6AE03}
$alignc	+-- Core2   ${color #F6AE03}	${cpu cpu2}%, ${color #FFFFDD}$alignr${cpubar cpu2 10,100 FFFFDD  F6AE03}
${color #4582B5}Usage RAM:${color #FFFFFF} $mem/$memmax -${color #F6AE03} $memperc% ${color #FFFFFF}${membar}
${color #4582B5}Usage Swap:${color #FFFFFF} $swap/$swapmax - ${color #F6AE03}$swapperc% ${color #FFFFFF}${swapbar}
$color$stippled_hr
${color #4582B5}Espace Disque:
${color #4582B5}racine: $color${fs_used /}/${fs_size /} ${fs_bar /}
${color #4582B5}home: $color${fs_used /home/sakul}/${fs_size /home/sakul} ${fs_bar /home/sakul}
${color #4582B5}datas: $color${fs_used /diskul-data}/${fs_size /diskul-data} ${fs_bar /diskul-data}
$color$stippled_hr
${color #4582B5} CPU%      MEM%       PID         NAME
${color #E60000}${top cpu 1}      ${top mem 1}      ${top pid 1}     ${top name 1}
${color #E60000}${top cpu 2}      ${top mem 2}      ${top pid 2}     ${top name 2} 
${color #C50000}${top cpu 3}      ${top mem 3}      ${top pid 3}     ${top name 3}
${color #C50000}${top cpu 4}      ${top mem 4}      ${top pid 4}     ${top name 4} 
${color #AC0000}${top cpu 5}      ${top mem 5}      ${top pid 5}     ${top name 5}
$color$stippled_hr
 ${color #4582B5}$alignc Wifi
${color #FF0000} Up:${color white} ${upspeed wlan0} k/s${color #FF0000}${offset 74} $alignr Down:${color white} ${downspeed wlan0} k/s
${color #4582B5} $alignc Ethernet
 ${color #FF0000} Up:${color white} ${upspeed eth0} k/s${color #FF0000}${offset 74}$alignr Down:${color white} ${downspeed eth0} k/s

haut :

#avoid flicker
double_buffer yes
out_to_console no

use_xft yes
xftfont bauhaus:size=8
xftalpha 0.8
override_utf8_locale yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent no
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager 

#borders
draw_borders yes
border_margin 4
exit
#shades
draw_shades no

#position
alignment top_left
gap_x 10
gap_y 10

#behaviour
update_interval 1

#colour
default_color  8f8f8f
#default_shade_color 000000
own_window_colour 262626

#font
use_xft yes
xftfont bauhaus:pixelsize=11

#to prevent window from moving
use_spacer no
minimum_size 1420
TEXT
${color }${mpd_status}  ${color bfbfbf}${mpd_elapsed}/${mpd_length} ${color e0e0e0}${mpd_file}${color a40101} |$alignr${color a40101} |${color}Temp:${color e0e0e0}${acpitemp}C°${color a40101} |${color} batterie : ${color e0e0e0} ${battery_time BAT0}${color} ; ${color e0e0e0}${battery_percent BAT0}% ${color a40101} | ${color e0e0e0} ${time}

commandes de bases ||  Debian testing 64bit - xfce / Intel-Core-2 Quad @ 2.33GHz / 9600 GT

Hors ligne

#1008 Le 14/04/2008, à 16:44

fsail

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

kokim a écrit :

bonjour

@fsail : j'aime bien ton script météo mais j'aimerais avoir la météo pour les jours à venir,
celle du jour m'interesse moyennement...

Essaye ça, chez moi je n'y suis pas arrivé.

http://ubuntuforums.org/showthread.php?t=666842

Hors ligne

#1009 Le 17/04/2008, à 01:18

J3R3MI3

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

Bonjour tout le monde !

Après avoir pompé plusieurs .conkyrc sur ce forum pour en faire un à mon gout je viens poster le mien.

Mon Conky : cool
capturexe9.th.jpg

Mon .conkyrc

double_buffer yes
alignment top_right
own_window yes
own_window_transparent yes
gap_y 15
gap_x 5
total_run_times 0
update_interval 1
cpu_avg_samples 5
net_avg_samples 5
use_xft yes
default_color lightblue
xftfont URW Bookman L:size=12
top_cpu_separate yes
stippled_borders 10
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

TEXT
$alignc${color white}Bonjour Jérémie
$alignc${color }${time %A %d %B %Y} - ${time %H:%M:%S}
$alignc$sysname $kernel - $machine $freq_g GHz
$alignc${color }Uptime : $color $uptime ${color }
$color$stippled_hr
${color }Réseaux :

${color }Adresse IP : ${color }${addr eth0}
${color }Download : ${color #00FF00} ${downspeed eth0} kB/s${color } ${offset 100}Upload : ${color #FF0000} ${upspeed eth0} kB/s
${color black}${downspeedgraph eth0 25,150 404080 00FF00} $alignr${color black}${upspeedgraph eth0 25,150 404080 FF0000}
$color$stippled_hr
${color }Ressources système :

${color }CPU Temp : ${color blue}${acpitemp}°C
		${color }Core 1 : ${color #00FF00} ${cpu cpu1}% ${cpubar cpu1}
		${color }Core 2 : ${color #00FF00} ${cpu cpu2}% ${cpubar cpu2}
${color }RAM : ${color #FDFF00} $memperc% $membar
${color }Swap : ${color #FF0000} $swapperc% ${swapbar}
$color$stippled_hr
${color }Espace Disque :

${color #00FF00}Linux     ${fs_used /}/${fs_size /}${alignr}${fs_used_perc /}%
${fs_bar 8 /}
${color #FDFF00}Windows  ${fs_used /media/sda1}/${fs_size /media/sda1}${alignr}${fs_used_perc /media/sda1}%
${fs_bar 8 /media/sda1}
${color #FF0000}DD Externe ${fs_used /media/DD EXTERNE}/${fs_size /media/DD EXTERNE}${alignr}${fs_used_perc /media/DD EXTERNE}%
${fs_bar 8 /media/DD EXTERNE} 
$color$stippled_hr
$alignc${exec rhythmbox-client --no-start --print-playing-format "%tt - %ta"}

$alignc${exec rhythmbox-client --no-start --print-playing-format "%te / %td"}

Désolé de ne pas l'avoir commenté.

#1010 Le 18/04/2008, à 20:56

qu3nt1n

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

fsail a écrit :

Mon conky cool :

http://img399.imageshack.us/img399/7759/conkyhp2.png

Le fichier conkyrc :

TEXT
${font Zekton:style=Bold:pixelsize=10}
${color #aaaaaa}${alignc}Bonjour Florent
${color white}${alignc}Nous sommes le ${time %A %d %B %Y} - ${time %H:%M:%S}
${color white}${alignc}IP Locale ${addr eth1} ${color white} IP Publique ${execi 60 wget -O - http://ip.tupeux.com | tail} ${color white} Uptime: $uptime
${color white}${alignc}${exec cat /etc/issue.net} - $sysname $kernel - $machine $freq_g GHz
${color white}${alignc}Batterie ${battery_percent}% ${battery} - $acpiacadapter
$color$hr
${color white}CPU
${color white}Load:${color #aaaaaa} $loadavg
${color white}CPU Usage:${color #aaaaaa} $cpu% ${cpubar}
${color #aaaaaa}${cpugraph #aaaaaa #aaaaaa}
${color white}RAM Usage:${color #aaaaaa} $mem/$memmax - $memperc% ${membar}
${color white}Processes:${color #aaaaaa} $processes ${color white}Running:${color #aaaaaa} $running_processes
$color$hr
${color white}${alignc}Réseau WiFi
${alignc}${color white}Accès ${color #aaaaaa}${wireless_essid eth1}${color white}   Mode ${color #aaaaaa}${wireless_mode eth1}${color white}   Taux ${color #aaaaaa}${wireless_bitrate eth1}${color white}   Qualité ${color #aaaaaa}${wireless_link_qual_perc eth1}${color white}
${color white}${alignc} Down: ${color #aaaaaa} ${downspeed eth1} k/s${color white} ${offset 100}  Up:${color #aaaaaa} ${upspeed eth1} k/s
${color #aaaaaa}${alignc} ${downspeedgraph eth1 32,150 #aaaaaa #aaaaaa} ${color #aaaaaa}${upspeedgraph eth1 32,150 #aaaaaa #aaaaaa}
${color white}${alignc} DL ${color #aaaaaa} ${totaldown eth1}${color white} - UP ${color #aaaaaa} ${totalup eth1}
$color$hr
${color white}Occupation disques
${color #aaaaaa}/home   ${fs_used /home}/${fs_size /home}${alignr}${fs_used_perc /home}%
${fs_bar /home}
${if_mounted /media/vista}/Vista   ${fs_used /media/vista}/${fs_size /media/vista}${alignr}${fs_used_perc /media/vista}%
${fs_bar /media/vista}
${else}vista non monté
$endif
$color$hr
${color white} Météo
 ${color #aaaaaa}Ville: ${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M M M S}
 Conditions: ${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M M M C}
 Description: ${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M M M D}
 ${font Weather:size=36}${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M M M F}${font}
 Température: ${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M M M T}
 Vent: ${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M K K W}
 Visibilité: ${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M M M V}
 Humidité: ${execi 3600 python ~/scripts/conkyGlobalWeather.py LFML M I I H}
$color$hr

Et son conkyGlobalWeather.py :

#!/usr/bin/python
# -*- coding: iso-8859-15 -*-
###############################################################################
# conkyGlobalWeather.py is a simple python script to gather details of the 
# current weather for use in conky, where textual content is only valid.
#
# Author: Kaivalagi
# Dependancies: Python, PyMetar
#
# Usage: conkyGlobalWeather.py StnRef TempUnit WindUnit VisUnit DataType
#
#     Where StnRef:   EGSH = Norwich, UK
#
#           TempUnit: M = Metric (°C)
#                     I = Imperial (°F)
#
#           WindUnit: M = Metric (m/s)
#                     K = Metric (kph)
#                     I = Imperial(mph)
#
#           VisUnit:  M = Metric (kilometers)
#                     I = Imperial (miles)
#
#           DataType: T = Temperature
#                     W = Wind
#                     V = Visibility
#                     S = StationName
#                     D = Description
#                     C = Conditions
#                     H = Humidity
#                     F = Weather Font Character (Based on Pixmap)
#
#                     Note: Only one data type should be given at any time
#
# References:
#
#     PyMetar: http://www.schwarzvogel.de/software-pymetar.shtml 
#     Station Ref Lookup: http://www.nws.noaa.gov/tg/siteloc.shtml
#
#
# Example Output: conkyGlobal

Salut,
Super tongue
Mais j'ai un problème ...^^
enfait j'ai installé Conky comme dans ce tuto http://doc.ubuntu-fr.org/conky
et j'ai mon Conky qui s'affiche q'en bas en gauche et j'ai que celui de base même en modifiant le .conkyrc (que j'ai mis sur le bureau, je sait pas si c'est le bon endroit) sa ne change rien sad donc voila j'aimerait bien avoir un beau conky ^^
pouvez vous me dire que faire svp.
Un petit screen :
conkyoc2.png

Allez @+
qu3nt1n
PS: Dsl pour la taille de l'image

Dernière modification par qu3nt1n (Le 18/04/2008, à 21:10)


<iframe src="http://www.ubuntu.com/files/countdown/904/countdown-9.04-1/countdown.html" width="180" height="150" frameborder="0" scrolling="no" name="ubuntucountdown"><a href="http://www.ubuntu.com/"><img src="http://www.ubuntu.com/files/countdown/904/countdown-9.04-1/00.png" alt="Ubuntu 9.04 - on desktops, netbooks, servers and in the cloud" width="180" height="150" border="0" /></a></iframe>

Hors ligne

#1011 Le 20/04/2008, à 16:00

Eliness

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

qu3nt1n > Le .conkyrc est à mettre dans ton home. Si tu veux spécifier un fichier de paramtétrage autre que celui-ci, il faut utiliser la commande : conky -c chemindemonfichier wink

Hors ligne

#1012 Le 26/04/2008, à 11:44

Delleck

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

Quentin, fait un mv ~/Bureau/.conkyrc ~

Dernière modification par Delleck (Le 26/04/2008, à 11:44)

Hors ligne

#1013 Le 26/04/2008, à 16:35

froli

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

Voilà le mien smile

e0bad56f2bf372865d4b81fceab5ft.jpg

background yes

cpu_avg_samples 2
net_avg_samples 2

out_to_console no
use_xft yes
xftfont Terminal Bitstream Vera Sans :size=9
xftalpha 0.8
update_interval 1

own_window yes
own_window_type override
own_window_transparent yes


double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 10
border_margin 4
border_width 1

default_color #EBD9BC
default_shade_color black

gap_x 20
gap_y 40
alignment top_right


use_spacer yes
no_buffers yes
uppercase no


TEXT
${color}
Hello Pilou !!!
Nous sommes le  ${color brown}${time %A %d %B %Y} $color  Et il est  ${color brown}${time %H:%M:%S}    $color
Ubuntu 8.04 Hardy Heron
$sysname $kernel sur $machine $freq_g GHz
Allumé depuis: $uptime$alignr Load: $loadavg
CPU: ${cpu cpu1}% ${color #EBD9BC}${cpubar cpu1 5,96}$color$alignr
${color #EBD9BC}${cpugraph cpu1 32,155 104E8B #EBD9BC}$alignr${cpugraph cpu2 32,155 104E8B #EBD9BC}$color
RAM Usage: $mem / $memmax - $memperc% ${color #EBD9BC}$membar$color
Swap Usage: $swap / $swapmax - $swapperc% ${color #EBD9BC}${swapbar}$color
Procs:$color $processes Run: $running_processes
IP Locale ${addr eth0} - IP Publique ${execi 1800 ~/.monip.sh}
Net Down: ${downspeed eth0} k/s                         Net Up: ${upspeed eth0} k/s
${color #EBD9BC}${downspeedgraph eth0 32,155 104E8B #EBD9BC} $alignr${upspeedgraph eth0 32,155 104E8B #EBD9BC}$color
${color #EBD9BC}File systems:$color
/                ${fs_used /} / ${fs_size /}  ${fs_used_perc /} %${alignr}${color #EBD9BC}${fs_bar 5,120 /}$color
/home        ${fs_used /home} / ${fs_size /home}  ${fs_used_perc /home} %${alignr}${color #EBD9BC}${fs_bar 5,120 /home}$color
/opt          ${fs_used /opt} / ${fs_size /opt}  ${fs_used_perc /opt} %${alignr}${color #EBD9BC}${fs_bar 5,120 /opt}$color
PilouDisk  ${fs_used /media/PilouDisk} / ${fs_size /media/PilouDisk/}  ${fs_used_perc /media/PilouDisk} %${alignr}${color #EBD9BC}${fs_bar 5,120 /media/PilouDisk}$color
${color #EBD9BC}Processus :            $alignc PID    %CPU   %MEM$color
${top name 1} $alignc${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} $alignc${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} $alignc${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} $alignc${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5} $alignc${top pid 5} ${top cpu 5} ${top mem 5}

${color #EBD9BC}Memoire :$color
${top_mem name 1} $alignc${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${top_mem name 2} $alignc${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3} $alignc${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${top_mem name 4} $alignc${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${top_mem name 5} $alignc${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}

Pour voir mon desktop cliquez ici

Hors ligne

#1014 Le 27/04/2008, à 10:32

PyroFrissons

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

Salut je suis sous Ubuntu depuis moins d'une semaine et j'arrive plutot bien à l'utiliser tongue

Je vous propose mon '.conkyrc' et les fichiers que j'y ai associés '.sh'.
Un problèmes de compréhension du codage de ce fichier m'a empéché de faire des conditions afin d'afficher les graphiques de la connexion active!
Si vous avez une idée, j'attend avec impatience de les connaitres.

Voici la miniature et l'image réel sur celle-ci ::
14a42fe2f8f6be5c128cfe92a880et.jpg

Faites un répertoire '.conky' dans votre dossier personnel pour y copier les script shell '.sh'

Voici mes fichiers ::
- .conkyrc

use_xft yes
#xftfont Zekton:style=Bold:pixelsize=10
xftfont Zekton:pixelsize=10
xftalpha 0.8
on_bottom yes
update_interval 1.0
total_run_times 0
own_window no
own_window_transparent yes
own_window_colour hotpink
own_window_type desktop
#own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background yes
no_buffers yes
double_buffer yes
minimum_size 350 5
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 8
border_margin 0
border_width 0
default_color white
default_shade_color lightgrey
default_outline_color black
alignment top-left
gap_x 13
gap_y 34
use_spacer no
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer no
min_port_monitors 0
min_port_monitor_connections 0
color0 black
color1 white
color2 darkgrey
color3 yellow

TEXT
${color1}
Youkoso Alubinu
${time %A %d %B %Y} - ${time %H:%M:%S}
IP Locale ${addr eth0} - IP Publique ${execi 15 wget -O - http://ip.tupeux.com | tail}
Ubuntu $sysname $kernel sur $machine
${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} - $freq_g GHz
${color0}${stippled_hr}
${color1}Uptime:$color $uptime ${color1}- Load:$color $loadavg
${color1}Processus:$color $processes ${color1}| Actifs:$color $running_processes
${color1}${cpugraph df0000 502679}#${color1}${cpugraph 502679 df0000}
${color2}  Usage CPU:${color1} $cpu% ${cpubar}
${color2}  Usage RAM:$color $memperc% ${membar}
${color2}  Usage Swap:$color $swapperc% ${swapbar}
${color0}${stippled_hr}
${color0}Réseau (eth0)
${alignc}${color2}Réception:${color1} ${downspeed eth0} k/s ${offset 65} ${color2}Envoi:${color1} ${upspeed eth0} k/s 
${alignc}${color1}${downspeedgraph eth0 32,175 ff0000 0000ff} ${color1}${upspeedgraph eth0 32,175 0000ff ff0000} 
${color0}${stippled_hr}
${color0}Disque Dur
${color2}  Ubuntu ${color1} ${alignc}${fs_used /}/${fs_size /}${alignr}${fs_used_perc /}%
${color1}${fs_bar /}
${color2}  Windows ${color1} ${alignc}${fs_used /media/hda1}/${fs_size /media/hda1}${alignr}${fs_used_perc /media/hda1}%
${color1}${fs_bar /media/hda1}
${if_existing /media/PYROMUSIC}${color2}  PyroMusic ${color1} ${alignc}${fs_used /media/PYROMUSIC}/${fs_size /media/PYROMUSIC}${alignr}${fs_used_perc /media/PYROMUSIC}%
${color1}${fs_bar /media/PYROMUSIC}
${endif}${if_existing /media/ELEMENTS}${color2}  Elements ${color1} ${alignc}${fs_used /media/ELEMENTS}/${fs_size /media/ELEMENTS}${alignr}${fs_used_perc /media/ELEMENTS}%
${color1}${fs_bar /media/ELEMENTS}
${endif}${color0}${stippled_hr}
${color0}Process ${alignr}${color2}PID   %CPU   %MEM 
${color3} ${top name 1} ${alignr}${top pid 1}  ${top cpu 1}    ${top mem 1} 
${color1} ${top name 2} ${alignr}${top pid 2}  ${top cpu 2}    ${top mem 2} 
${color1} ${top name 3} ${alignr}${top pid 3}  ${top cpu 3}    ${top mem 3} 
${color1} ${top name 4} ${alignr}${top pid 4}  ${top cpu 4}    ${top mem 4} 
${color1} ${top name 5} ${alignr}${top pid 5}  ${top cpu 5}    ${top mem 5} 
${color0}Memoire
${color3} ${top_mem name 1} ${alignr}${top_mem pid 1}  ${top_mem cpu 1}    ${top_mem mem 1} 
${color1} ${top_mem name 2} ${alignr}${top_mem pid 2}  ${top_mem cpu 2}    ${top_mem mem 2} 
${color1} ${top_mem name 3} ${alignr}${top_mem pid 3}  ${top_mem cpu 3}    ${top_mem mem 3} 
${color1} ${top_mem name 4} ${alignr}${top_mem pid 4}  ${top_mem cpu 4}    ${top_mem mem 4} 
${color1} ${top_mem name 5} ${alignr}${top_mem pid 5}  ${top_mem cpu 5}    ${top_mem mem 5} 
${color0}${stippled_hr}
${color0}Temperature & Ventilateurs
${color green} CPU: ${execi 2 sensors | grep 'CPU' | sed -e 's/.*  +//' | sed -e 's/.0°C.*//'} °C ${alignr}${color3}${execi 2 sensors | grep 'M/B' | sed -e 's/.*  +//' | sed -e 's/.0°C.*//'} °C :M/B
${color green} Fan1: ${execi 2 sensors | grep 'fan1' | sed -e 's/.*: * //' | sed -e 's/RPM  (.*//'} RPM ${alignr}${color3}${execi 2 sensors | grep 'fan2' | sed -e 's/.*: * //' | sed -e 's/RPM  (.*//'} RPM :Fan2
${color0}${stippled_hr}
${color0}Port(s) ouvert(s): ${color0}${tcp_portmon 1 65535 count} ${alignr}${color2}In: ${color1}${tcp_portmon 1 32767 count} | ${color2}Out: ${color1}${tcp_portmon 32768 61000 count} 
  ${execi 60 ~/.conky/ports.sh 1}${tcp_portmon 1 65535 rhost 0} ${alignr}${tcp_portmon 1 65535 lservice 0} 
  ${tcp_portmon 1 65535 rhost 1} ${alignr}${tcp_portmon 1 65535 lservice 1} 
  ${tcp_portmon 1 65535 rhost 2} ${alignr}${tcp_portmon 1 65535 lservice 2} 
  ${tcp_portmon 1 65535 rhost 3} ${alignr}${tcp_portmon 1 65535 lservice 3} 
  ${tcp_portmon 1 65535 rhost 4} ${alignr}${tcp_portmon 1 65535 lservice 4} 
  ${tcp_portmon 1 65535 rhost 5} ${alignr}${tcp_portmon 1 65535 lservice 5} 
  ${tcp_portmon 1 65535 rhost 6} ${alignr}${tcp_portmon 1 65535 lservice 6} 
  ${tcp_portmon 1 65535 rhost 7} ${alignr}${tcp_portmon 1 65535 lservice 7} 
  ${tcp_portmon 1 65535 rhost 8} ${alignr}${tcp_portmon 1 65535 lservice 8} 
  ${tcp_portmon 1 65535 rhost 9} ${alignr}${tcp_portmon 1 65535 lservice 9} 
  ${tcp_portmon 1 65535 rhost 10} ${alignr}${tcp_portmon 1 65535 lservice 10} 
${color0}${stippled_hr}

- ports.sh
  problème d'envoi d'argument, pour essayer :
   remplacez : ~/.conky/ports.sh 1
   par ceci : ~/.conky/ports.sh $(tcp_portmon 1 65535 lservice 1)

#!/bin/bash
if [ ! $1 ]; then
 echo -e "Aucun port n'est ouvert en ce moment!"
fi

- net.sh
  problème d'insertion de résultat de net.sh dans les graphiques.

#!/bin/bash
cat /proc/net/if_inet6 | grep 'eth' | sed -e 's/.* //' || cat /proc/net/if_inet6 | grep 'wlan' | sed -e 's/.* //'
#!/bin/bash
cat /proc/net/if_inet6 | grep 'eth' | sed -e 's/.* //' || cat /proc/net/if_inet6 | grep 'wlan' | sed -e 's/.* //'

J'attend vous apréciations wink

#1015 Le 27/04/2008, à 15:21

thuban

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

bonjour!
j'ai fabriqué mon concky en piochant des bouts un peu partout. j'ai cherché pour rajouter des citations, de bashfr, et aussi fortune. je rencontre cependant un petit probleme, si les citations sont longues, mon conky va prendre la moitié de l'écran...:/
de plus, les caractères avec accents sont très moches! (symboles étranges...)
voici mon conky :
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
override_utf8_locale yes      #Force à utiliser l'utf8, mais pour cela...
use_xft yes
on_bottom yes
xftfont Comic sans MS:size=8
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
double_buffer yes
minimum_size 280 5
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 4
border_width 1
default_color #4582B5
default_shade_color black
default_outline_color black
alignment top_right
gap_x 8
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer no




TEXT
${color white}Bonjour Xavier
${color white}Nous sommes le : ${time %A %d %B %Y} - ${time %H:%M:%S}
$nodename - $sysname $kernel on $machine
$stippled_hr
${color #e49c16}allumé depuis:$color $uptime ${color #FFFFFF}- Load:$color $loadavg
${color #e49c16}CPU Utilise :${color #FFFFFF} $cpu% ${color #ffc11f}${cpubar}
${color white}${cpugraph ffc11f 8b4b0b}
${color #e49c16}Memoire RAM :${color #FFFFFF} $mem/$memmax - $memperc% ${color #ffc11f}${membar}
${color #e49c16}Utilisation du Swap :${color #FFFFFF} $swap/$swapmax - $swapperc% ${color #ffc11f}${swapbar}
${color #e49c16}Processus : $color $processes ${color #FFFFFF}En cour : $color $running_processes
$color$stippled_hr
${color #e49c16}Reseau pcmia : ${color #FFFFFF}IP Locale ${addr wlan0} - IP Publique ${execi 1800 ~/.conky/scriptip.sh}
${color #e49c16}Download :${color white} ${downspeed wlan0} k/s${color white} ${offset 80}${color #e49c16}Upload:${color white} ${upspeed wlan0} k/s
${color #FFFFFF}${downspeedgraph wlan0 22,150 8b4b0b ffc11f} ${color #FFFFFF}${upspeedgraph wlan0 22,150 ffc11f 8b4b0b}
$color$stippled_hr
${color #e49c16}Reseau eth0 : ${color #FFFFFF}IP Locale ${addr eth0} - IP Publique ${execi 1800 ~/.conky/scriptip.sh}
${color #e49c16}Download :${color white} ${downspeed eth0} k/s${color white} ${offset 80}${color #e49c16}Upload:${color white} ${upspeed eth0} k/s
${color #FFFFFF}${downspeedgraph eth0 22,150 8b4b0b ffc11f} ${color #FFFFFF}${upspeedgraph eth0 22,150 ffc11f 8b4b0b}
$color$stippled_hr
${color #e49c16}Espace Disque:
${color #FFFFFF}Root: ${color #FFFFFF}${fs_free /}/${fs_size /} ${color #ffc11f}${fs_bar /}
${color #FFFFFF}Stockage: ${color #FFFFFF}${fs_free /media/fat32}/${fs_size /media/fat32} ${color #ffc11f}${fs_bar /media/fat32}
${color #FFFFFF}Windows: ${color #FFFFFF}${fs_free /media/vista}/${fs_size /media/vista} ${color #ffc11f}${fs_bar /media/vista}
${execi 30 ~/.conky/bashfr.pl -random2}
$color$stippled_hr
${color #FFFFFF}${execi 30 /usr/games/fortune}

l'image en petit :
23a23cbfb378feb5bfead640ba193t.jpg

et en grand :
http://pix.nofrag.com/f/0/3/23a23cbfb378feb5bfead640ba193.html







voila, une idée pour arranger ca?
ps :  le sript pour les quotes de bash sont dans le forum truc et astuces

Dernière modification par thuban (Le 27/04/2008, à 15:34)

Hors ligne

#1016 Le 28/04/2008, à 06:26

thuban

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

ce n'est peut être pas possible de résoudre l'affichage des accents? je ne m'y connais pas assez en écriture de scripts ou autre pour pouvoir trouver un moyen de définir la taille du conky, et permettre aux citations de passer à la ligne si elles sont trop longues...

Hors ligne

#1017 Le 28/04/2008, à 10:51

JoNas-fr

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

Bon aller j'y vais de ma contribution:

Tout d'abord l'aperçu du bureau:

bureaufb9.th.png

le contenu du .conkyrc:

# -*- conf -*-
#
# ~/.conkyrc - Conky configuration file
#
# By Jonas Termeau <jonas *DOT* termeau *AT* gmail *DOT* com>
#
# Heavily inspired by .conkyrc file of
# Henrik Brix Andersen <henrik@brixandersen.dk>
#
# Thanks to him.
#

# do not fork to background
background no

# font settings
use_xft yes
#font monospace-8
xftfont Visitor TT2 BRK:size=10
uppercase no

# update every 2 secs
update_interval 2

# stay running forever
total_run_times 0

# draw to root window
own_window no

# avoid flickering
double_buffer yes

# size
minimum_size 1024 768
maximum_width 1024

# position
alignment top_left
gap_x 0
gap_y 0

# colors
default_color white
default_shade_color white
default_outline_color black
color0 000000
color1 4D4D4D
color2 144556

# borders
draw_borders no
stippled_borders 8
border_margin 4
border_width 1

# shades
draw_shades no

# outline
draw_outline no

# spacer
use_spacer no

# buffers
no_buffers yes

# sampling
cpu_avg_samples 2
net_avg_samples 2

# configuration
TEXT
${voffset 10}${offset 10}$color2 System
${offset 10}$color2 ${time %A %d/%m/%y %kh%M}
${offset 10}$color1 $nodename - Uptime: $uptime

${voffset 95}${offset 190}$color2 Network (eth0)
${offset 190}$color1 IPv4: $color2 ${addr eth0} ${color #144556} /${execi 1800 ~/.conky/ip.sh}${color #144556}
${offset 190}$color1 Down: $color1 ${downspeedgraph eth0 8,200 000000 144556} $color2 ${downspeed eth0} kb/s 
${offset 190}$color1 Up: ${offset 6} $color1 ${upspeedgraph eth0 8,200 000000 144556} $color2 ${upspeed eth0} kb/s

${voffset 30}${offset 40}$color2 Memory
${offset 40}$color1 RAM: ${offset 0} $color2 ${membar 6,200} $mem ($memperc%)
${offset 40}$color1 Swap: $color2 ${swapbar 6,200} $swap ($swapperc%)

${voffset 30}${offset 750}$color2 Power
${offset 750}$color1 $acpiacadapter
${offset 750}$color1 ($battery -$color2  $battery_time$color1)
${offset 750}$color2 ${battery_bar 6,200}

${voffset 100}${offset 700}$color2 CPU
${offset 700}$color1 Frequency: $color2$freq MHz $color1 Temperature:$color2 ${acpitemp}°C
${offset 700}$color1 Load: $color2 ${cpubar cpu0 6,223} $cpu%

${voffset -35}${offset 75}$color2 Wifi (eth1)
${offset 75}$color1 IPv4: $color2${addr eth1} /${execi 1800 ~/.conky/ip.sh}${color #144556}
${offset 75}$color1 Down: $color1 ${downspeedgraph eth1 8,200 000000 144556} $color2 ${downspeed eth1} kb/s
${offset 75}$color1 Up: ${offset 6} $color1 ${upspeedgraph eth1 8,200 000000 144556} $color2 ${upspeed eth1} kb/s
${offset 75}$color1 essid: ${wireless_essid eth1}
${offset 75}$color1 MAC: ${offset 2} ${wireless_ap eth1}
${offset 75}$color1 Quality: $color2 ${wireless_link_bar 6,100} ${wireless_link_qual_perc eth1}

${voffset 0}${offset 600}$color2 Disk
${offset 600}$color1 root:$color2 ${fs_used_perc /}% (${fs_free /}) $color1 I/O:$color2 $diskio
${offset 600}$color2 ${fs_bar 6,200 /}

le contenu du ip.sh (pour avoir son ip publique):

#!/bin/bash

wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f 2 | cut -d\< -f 1 > ip
cat ip

Le tout sous Fluxbox avec le theme GSM (http://customize.org/fluxbox/themes/49241).

Je me suis inspiré de ce conky là : http://blog.brixandersen.dk/?p=67 pour ne pas dire totalement tongue

Voilà, en espérant que ça donne des idées à certain(e)s! wink

EDIT: Pour le fond d'écran c'est fait maison. Pour ceux que ça intéresse, j'ai obtenu le "wireframe" du thinkpad a partir du hardware maintenance manual de mon thinkpad (ouvrez le PDF avec inkscape tout simplement smile)

Dernière modification par JoNas-fr (Le 28/04/2008, à 10:53)


"If you see strict DRM and copy protection that threatens the preservation of history, fight it: copy the work, keep it safe, and eventually share it so it never disappears. [...] no one living 500 years from now will judge your infringing deeds harshly when they can load up an ancient program and see it for themselves."
B. E. - [url=[Merci de relire les règles]/benjedwards]Why History Needs Software Piracy[/url]

Hors ligne

#1018 Le 29/04/2008, à 02:36

arpbook

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

salut,  smile

thuban a écrit :

ce n'est peut être pas possible de résoudre l'affichage des accents? je ne m'y connais pas assez en écriture de scripts ou autre pour pouvoir trouver un moyen de définir la taille du conky, et permettre aux citations de passer à la ligne si elles sont trop longues...

pour les accents :

override_utf8_locale no

tu remplace par yes
et pour la taille , tu rajoute une ligne style

maximum_size 300 600

... fais plusieurs essais en testant les valeurs qui te conviennent
voilà,
pour le retour à la ligne dans les fichiers texte , .... je sais pas
wink

#1019 Le 29/04/2008, à 20:27

thuban

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

merci pour ta réponse! je vais continuer de chercher pour le retour à la ligne, ce serait bien de pouvoir y arriver!
merci!

Hors ligne

#1020 Le 30/04/2008, à 18:12

re06011988

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

Bon alors merci a froli de m'avoir repondu pour me parlé de conky et awn wink
et a toutes vos contrib ou je me suis inspiré

voici mon desktop :

mon20desktopiz2.th.png

voici mon .conky :

#emplacement
alignment top_right

#pour que corky tourne en arriere plan
background yes
#background no #pour les tests

#nombre d'echantillons a utiliser pour calculer la moyenne d'utilisation
cpu_avg_samples 4
net_avg_samples 4

#affiche le texte sur la sortie standard
out_to_console no

# Utiliser Xft (polices lissées etc)
use_xft yes

#police a utiliser : use_xft doit etre a "yes"
xftfont Terminal Bitstream Vera Sans Mono:size=8

# utiliser sa propre fenetre ?
own_window yes

#type de fenetre : normal(avec le cadre) / override / desktop
own_window_type override

#pseudo transparence?
own_window_transparent yes

#Nom de la fenetre pour compiz
own_window_title "gfxconky"

# taux de raffraichissement de la fenetre (en secondes)
update_interval 2

# pour eviter le clignotement de la semaine (fonctionne pas chez moi)
double_buffer yes

# afficher les ombres?
draw_shades no

# afficher des contours ?
draw_outline no

#contours autour des blocs de texte?
draw_borders no

# contour en trait-tillés, longueur d'un trait en pixels
stippled_borders 10

#largeur des marges (n'a pas l'air de fonctionner)
border_margin 40

# largeur du contour
border_width 1

# couleur par defaut du texte, de l'ombre et du contour
default_color white
default_shade_color white
default_outline_color white

# ecart avec le bord x=gauche ou droit y= haut ou bas
gap_x 30
gap_y 30

# Ajoute des espaces apres certains objets pour eviter de les faire bouger.
# Fonctionne uniquement avec la police Monospace
use_spacer no

# Soustraire les mémoires tampons de la mémoire utiliser ?
no_buffers yes

# Tout le texte en majuscule ?
uppercase no

TEXT
${font Dungeon:style=Bold:pixelsize=11}
${color #ddaa00}Bienvenue Maitre sur :
${color #dd3939}$nodename - $sysname $kernel on $machine ${freq_g cpu1} ${freq_g cpu0} GHz
${color #ddaa00}Nous somme le : $color ${time %A %d %B %Y} - ${time %H:%M:%S}
${color lightgrey}Temps d'utilisation : $color $uptime ${color lightgrey}
Autonomie batterie : ${color #FFFB00}${battery_percent BAT1}% ${battery BAT1}
${color lightgrey}Temperature & Ventilateurs :
${color #ddaa00} CPU1: ${color #dd3939}${execi 2 sensors | grep 'Core 0' | sed -e 's/.*  +//' | sed -e 's/.0°C.*//'} °C ${alignr}${color #ddaa00}CPU2: ${color #dd3939}${execi 2 sensors | grep 'Core 1' | sed -e 's/.*  +//' | sed -e 's/.0°C.*//'} °C
${color #ddaa00} Fan1: ${color #3939dd}${acpifan} RPM ${alignr}${color #ddaa00}Fan2: ${color #3939dd}${execi 2 sensors | grep 'fan2' | sed -e 's/.*: * //' | sed -e 's/RPM  (.*//'} RPM
$color$stippled_hr
${color lightgrey}Ethernet (eth0) :${alignr}DL :${color #8844ee} ${totaldown eth0} ${color lightgrey}/ UP :${color #22ccff} ${totalup eth0} 
${color #22ccff}Adresse IP Local: ${color #ddaa00}${addr eth0}
${color #22ccff}Adresse IP Public: ${color #ddaa00}${execi 1800 ~/monip.sh}
${color lightgrey}Down :${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 100}Up:${color #22ccff} ${upspeed eth0} k/s
${color lightgrey}${downspeedgraph eth0 25,150 ff0000 0000ff} $alignr${color lightgrey}${upspeedgraph eth0 25,150 0000ff ff0000}

${color lightgrey}Wifi (eth1) :${alignr}DL :${color #8844ee} ${totaldown eth1} ${color lightgrey}/ UP :${color #22ccff} ${totalup eth1}
${color #22ccff}Accès :${color #ddaa00}${wireless_essid eth1}
${color #22ccff}Taux :${color #ddaa00}${wireless_bitrate eth1}${color #22ccff}   Qualité :${color #ddaa00}${wireless_link_qual_perc eth1}
${color #22ccff}Adresse IP Local: ${color #ddaa00}${addr eth1}
${color #22ccff}Adresse IP Public: ${color #ddaa00}${execi 1800 ~/monip.sh}
${color lightgrey}Down :${color #8844ee} ${downspeed eth1} k/s${color lightgrey} ${offset 100}Up:${color #22ccff} ${upspeed eth1} k/s
${color lightgrey}${downspeedgraph eth1 25,150 ff0000 0000ff} $alignr${color lightgrey}${upspeedgraph eth1 25,150 0000ff ff0000}
$color$stippled_hr
${color lightgrey}CPU 1 Usage:${color #FF0000} ${cpu cpu0}% $alignr${color lightgrey}CPU 2 Usage: ${color #0000FF} ${cpu cpu1}%
${color #FF0000}${cpubar cpu0 5,150} $alignr${color #0000FF}${cpubar cpu1 5,150}
${color lightgrey}${cpugraph cpu0 25,150 ff0000 0000ff} $alignr${color lightgrey}${cpugraph cpu1 25,150 0000ff ff0000}
${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% $membar
${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar}
${color lightgrey}Processus:$color $processes  ${color grey}Running:$color $running_processes
$color$stippled_hr
${color lightgrey}File systems:
    
${color #00FF00}Linux System    ${fs_used /}/${fs_size /}${alignr}${fs_used_perc /}%
${fs_bar 8 /}
${color #FFFF00}Windows XP    ${fs_used /media/sda1}/${fs_size /media/sda1}${alignr}${fs_used_perc /media/sda1}%
${fs_bar 8 /media/sda1}
${color #FF0000}Home    ${fs_used /home}/${fs_size /home}${alignr}${fs_used_perc /home}%
${fs_bar 8 /home} 
$color$stippled_hr 
${color}CPU usage
${offset 80}${color #CCCCCC}Nom ${alignr 50}PID ${alignr 20}CPU%
${offset 80}${color #ddaa00}${top name 1} ${alignr 30}${top pid 1} ${alignr 15}${top cpu 1}
${offset 80}${color #888888}${top name 2} ${alignr 30}${top pid 2} ${alignr 15}${top cpu 2}
${offset 80}${color #888888}${top name 3} ${alignr 30}${top pid 3} ${alignr 15}${top cpu 3}
${color}Mem usage
${offset 80}${color #CCCCCC}Nom ${alignr 50}PID ${alignr 20}Mem%
${offset 80}${color #ddaa00}${top_mem name 1} ${alignr 30}${top_mem pid 1} ${alignr 15}${top_mem mem 1}
${offset 80}${color lightgrey}${top_mem name 2} ${alignr 30}${top_mem pid 2} ${alignr 15}${top_mem mem 2}
${offset 80}${color lightgrey}${top_mem name 3} ${alignr 30}${top_mem pid 3} ${alignr 15}${top_mem mem 3}

merci de me donner votre avis wink

Hors ligne

#1021 Le 30/04/2008, à 18:19

mydoom666

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

Sympa et très coloré !

On voit tout de suite que tu t'es pas inspiré de mes Conky... lol

Dernière modification par mydoom666 (Le 30/04/2008, à 18:20)

Hors ligne

#1022 Le 30/04/2008, à 20:37

re06011988

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

J'avoue je me suis inspirer de tout le monde et utiliser pas mal la doc pour y adapter a mon pc meme si je suis deg que sensors ne trouve pas mes fan du coup l'affichage est incomplet

Hors ligne

#1023 Le 30/04/2008, à 23:49

re06011988

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

Sinon j'ai un problème avec mes icônes du bureau même apres avoir suivie le tutos de la doc pour régles ce probleme avez vous la solution

Hors ligne

#1024 Le 01/05/2008, à 00:17

Delleck

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

70°C et 60°C c'est pas un peu chaud pour tes deux procos là ? big_smile

Hors ligne

#1025 Le 01/05/2008, à 00:31

cam

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

quel problème?

Hors ligne