logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).


L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT → ODT PDF Export

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
utilisateurs:niqnutn:config:conky [28/02/2015 21:33]
nIQnutn [system.conky]
utilisateurs:niqnutn:config:conky [06/03/2015 12:26] (Version actuelle)
nIQnutn [mpd.conky]
Ligne 8: Ligne 8:
 ===== Introduction ===== ===== Introduction =====
  
-Mon conky sur XFCE.+Mon conky sur XFCE
 +  * Lancer plusieurs conky grâce à conky.sh.  
 +  * Un dossier /​home/​user/​.conky peut être créé pour organiser les différents fichiers. 
 +<note important>​Il faut exécuter ​ conky.sh au démarrage de la session.</​note>​ 
 +  * Plus d'​infos sur [[doc:​systeme:​conky|Conky]]
  
-Lancer plusieurs conky grâce à conky.sh. ​ 
- 
-Un dossier /​home/​user/​.conky peut être créé pour organiser les différents fichiers. 
- 
-Il faut exécuter ​ conky.sh au démarrage de la session. 
- 
- 
-  * Plus d'​infos sur [[doc:​systeme:​conky|Conky]] 
  
 +<note tip>Tout ce qui est offset, font, etc.. risque de ne pas fonctionner chez vous. Il faut les adpater à vos besoins.</​note>​
 ===== conky.sh ===== ===== conky.sh =====
 Permet de lancer plusieurs conky. Chaque conky peut être paramétré plus facilement. Permet de lancer plusieurs conky. Chaque conky peut être paramétré plus facilement.
Ligne 34: Ligne 31:
  
 ===== conky ===== ===== conky =====
 +chaque fichier conky peut être configurer en définissant:​
 +  * position sur l'​écran
 +  * taille
 +  * police
 +  * rafraîchissement du conky
 +  * et autres options d'​affichage
  
 +<note important>​Il doit être repris sur chaque fichier *.conky</​note>​
  
 <file - /​home/​user/​.conky/​system.conky>​ <file - /​home/​user/​.conky/​system.conky>​
Ligne 40: Ligne 44:
  
 # Update interval in seconds # Update interval in seconds
-update_interval 1.5+update_interval 1.O
  
  
Ligne 90: Ligne 94:
  
 TEXT TEXT
-${font DejaVu:​style=Bold:​size=12}Système${hr} 
-${font}# restaure la police par défaut 
-${execi 86400 lsb_release -si} : ${execi 86400 lsb_release -sr} ${execi 86400 lsb_release -sc} $alignr $nodename 
-Noyau : $sysname $kernel $alignr $machine 
-Mises à jour disponibles : ${execi 1800 aptitude search "​~U"​ | wc -l | tail} 
- 
-#/​sys/​class/​hwmon/​hwmon[n]/​device/​temp[n]_input ([n] est un chiffre) 
-${cpugraph cpu0 30,​300 ​  ​00ff00 ff0000 -t} 
-${voffset -32}${font DejaVu:​style=Bold} CPU  ${cpu}% ${font}$alignr${hwmon 1 temp 1}°C  
-${voffset 5}${font DejaVu:​size=8}${top name 1} $alignr${offset -30}${top pid 1} $alignr${top cpu 1}% 
-${top name 2}  $alignr${offset -30}${top pid 2} $alignr${top cpu 2}% 
-${top name 3}  $alignr${offset -30}${top pid 3} $alignr${top cpu 3}% 
- 
-${memgraph 30,​300 ​  ​00ff00 ff0000 -t} 
-${voffset -32}${font DejaVu:​style=Bold} RAM  $memperc% ${font}$alignr$mem / $memmax ​ 
-${voffset 5}${font DejaVu:​size=8}${top_mem name 1} $alignr${offset -30}${top_mem pid 1} $alignr${top_mem mem 1}% 
-${top_mem name 2} $alignr${offset -30}${top_mem pid 2} $alignr${top_mem mem 2}% 
-${top_mem name 3} $alignr${offset -30}${top_mem pid 3} $alignr${top_mem mem 3}% 
- 
  
 +-- Le contenu du conky --
 </​file>​ </​file>​
  
Ligne 120: Ligne 106:
  
 <file - /​home/​user/​.conky/​system.conky>​ <file - /​home/​user/​.conky/​system.conky>​
-### Conky Display Settings 
- 
-# Update interval in seconds 
-update_interval 1.5 
- 
- 
-# Create own window instead of using desktop (required in nautilus) 
-own_window yes 
- 
-# Use pseudo transparency with own_window? 
-own_window_transparent yes 
-own_window_argb_visual yes 
- 
- 
-# Use double buffering (reduces flicker-maybe) 
-double_buffer yes 
- 
- 
-# If own_window is yes, these window manager hints may be used 
-own_window_hints undecorated,​below,​sticky,​skip_taskbar,​skip_pager 
- 
-# Force UTF8? note that UTF8 support required XFT 
-override_utf8_locale yes 
- 
- 
-# Utiliser Xft (polices lissées etc) 
-use_xft yes 
-xftalpha .1 
-override_utf8_locale yes # force UTF8 
- 
-#police a utiliser : use_xft doit être a "​yes"​ 
-xftfont DejaVu Sans:​size=10 
-# Tout le texte en majuscule 
-uppercase no 
- 
- 
-# écart avec le bord x=gauche ou droit y= haut ou bas 
-gap_x 15 
-gap_y 100 
- 
- 
-# positon 
-alignment top_right 
- 
-# taille 
-minimum_size 300 
-maximum_width 300 
- 
-default_color 1a2738 
-default_shade_color white 
-default_outline_color f42121 
  
 TEXT TEXT
Ligne 200: Ligne 135:
  ​{{/​file-Rf980707aa6f74b830c18b7496a2a82fa.png}}  ​{{/​file-Rf980707aa6f74b830c18b7496a2a82fa.png}}
 <​file ​ - /​home/​user/​.conky/​data.conky>​ <​file ​ - /​home/​user/​.conky/​data.conky>​
-### Conky Display Settings 
- 
-# Update interval in seconds 
-update_interval 1.5 
- 
- 
-# Create own window instead of using desktop (required in nautilus) 
-own_window yes 
- 
-# Use pseudo transparency with own_window? 
-own_window_transparent yes 
-own_window_argb_visual yes 
- 
- 
-# Use double buffering (reduces flicker-maybe) 
-double_buffer yes 
- 
- 
-# If own_window is yes, these window manager hints may be used 
-own_window_hints undecorated,​below,​sticky,​skip_taskbar,​skip_pager 
- 
-# Force UTF8? note that UTF8 support required XFT 
-override_utf8_locale yes 
- 
- 
-# Utiliser Xft (polices lissées etc) 
-use_xft yes 
-xftalpha .1 
-override_utf8_locale yes # force UTF8 
- 
-#police a utiliser : use_xft doit être a "​yes"​ 
-xftfont DejaVu Sans:​size=10 
-# Tout le texte en majuscule 
-uppercase no 
- 
- 
-# écart avec le bord x=gauche ou droit y= haut ou bas 
-gap_x 15 
-gap_y 370 
- 
-# positon 
-alignment top_right 
- 
-# taille 
-minimum_size 300 
-maximum_width 300 
- 
-default_color 1a2738 
-default_shade_color white 
-default_outline_color f42121 
  
 TEXT TEXT
Ligne 271: Ligne 156:
  ​{{/​file-R6be83c618dcf238aca05e4338d7c0d4b.png}}  ​{{/​file-R6be83c618dcf238aca05e4338d7c0d4b.png}}
 <​file ​ - /​home/​user/​.conky/​network.conky>​ <​file ​ - /​home/​user/​.conky/​network.conky>​
-### Conky Display Settings 
- 
-# Update interval in seconds 
-update_interval 1.5 
- 
- 
-# Create own window instead of using desktop (required in nautilus) 
-own_window yes 
- 
-# Use pseudo transparency with own_window? 
-own_window_transparent yes 
-own_window_argb_visual yes 
- 
- 
-# Use double buffering (reduces flicker-maybe) 
-double_buffer yes 
- 
- 
-# If own_window is yes, these window manager hints may be used 
-own_window_hints undecorated,​below,​sticky,​skip_taskbar,​skip_pager 
- 
-# Force UTF8? note that UTF8 support required XFT 
-override_utf8_locale yes 
- 
- 
-# Utiliser Xft (polices lissées etc) 
-use_xft yes 
-xftalpha .1 
-override_utf8_locale yes # force UTF8 
- 
-#police a utiliser : use_xft doit être a "​yes"​ 
-xftfont DejaVu Sans:​size=10 
-# Tout le texte en majuscule 
-uppercase no 
- 
- 
-# écart avec le bord x=gauche ou droit y= haut ou bas 
-gap_x 15 
-gap_y 520 
- 
-# positon 
-alignment top_right 
- 
-# taille 
-minimum_size 300 
-maximum_width 300 
- 
-default_color 1a2738 
-default_shade_color white 
-default_outline_color f42121 
- 
- 
- 
 TEXT TEXT
 ${font DejaVu:​style=Bold:​size=12}Réseau ${hr} ${font DejaVu:​style=Bold:​size=12}Réseau ${hr}
Ligne 350: Ligne 182:
 </​file>​ </​file>​
  
 +===== mpd.conky =====
 +Pour afficher les informations ça se passe uniquement dans le conky. L'​affichage de la pochette d'​album n'est pas obligatoire (conky_mpd.sh).
 +
 + ​{{/​file-R7c1f7b4e862d558285faa6905a7da357.png}}
 +
 +<​file ​ - /​home/​user/​.conky/​mpd.conky>​
 +
 +#MPD 
 +mpd_port 6600
 +mpd_host localhost
 +
 +TEXT
 +${if_mpd_playing}${color}${font DejaVu:​style=Bold:​size=12}Musique ${hr 3}
 +${font}${color}#​ restaure la police par défaut ​
 +${voffset 7}${offset 125}${mpd_artist}
 +${offset 125}$mpd_album
 +${offset 125}$mpd_track. $mpd_title
 +${offset 125}${mpd_bar 6,325}
 +${image ~/​.conky/​quodLibet_CD.png ​ -p 10,35 -s 100x100}${image ~/​.conky/​quodLibet_box.png ​ -p 1,32 -s 112x105}${image /​tmp/​conky_cover.jpg ​ -p 10,35 -s 100x100 -n}${offset 125}${offset 20}${if_match "​${mpd_status}"​=="​Playing"​}${image ~/​.conky/​start.png ​ -p 125,110 } Playing ${execpi 2 ~/​.conky/​conky_mpd.sh}${else}${image ~/​.conky/​pause.png ​ -p 125,110 } Pause ${endif} ${alignc}${offset 40} ${image ~/​.conky/​volume.png ​ -p 230,110 } $mpd_vol ​  ​${if_match "​${mpd_repeat}"​=="​On"​} ${image ~/​.conky/​repeat.png ​ -p 375,110 } ${endif} ${if_match "​${mpd_random}"​=="​On"​} ${image ~/​.conky/​shuffle.png ​ -p 425,110 } ${endif} ${endif}
 +</​file>​
 +
 +
 +<​file ​ - /​home/​user/​.conky/​conky_mpd.sh>​
 +##​!/​bin/​bash
 +
 +# Répertoire Musique
 +library='/​home/​user/​Musique/'​
 +
 +# chancon en cours de lecture
 +current_song=$(mpc --port 6600 --format %file% ​ | head -n1)
 +# echo $current_song
 +
 +# chemin de l'​image
 +current_song_cover=$( echo "​$current_song"​ |   sed '​s|/​[^/​]*$|/​cover.jpg|'​ )
 +# echo $current_song_cover
 +
 +# suppression de l'​ancienne pochette de l'​album
 +rm /​tmp/​conky_cover.jpg
 +
 +# copie de la pochette d'​album dans le dossier /tmp
 +cp -f  "​${library}/​${current_song_cover}"​ /​tmp/​conky_cover.jpg
 +
 +
 + </​file>​
 +
 +on en parle ici [[https://​debian-facile.org/​viewtopic.php?​id=10756|Forum Debian-Facile]]
 +
 +===== Références =====
 +  * [[http://​conky.sourceforge.net/​config_settings.html|Conky - config file settings]]
 +  * [[http://​conky.sourceforge.net/​variables.html|Conky - variables]]
utilisateurs/niqnutn/config/conky.1425155610.txt.gz · Dernière modification: 28/02/2015 21:33 par nIQnutn

Pied de page des forums

Propulsé par FluxBB