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:seth [Le 12/11/2008, 16:36]
213.95.41.13
utilisateurs:seth [Le 13/07/2009, 18:24] (Version actuelle)
Antonin_Morel
Ligne 11: Ligne 11:
 ===== Pages en cours de rédaction ===== ===== Pages en cours de rédaction =====
  
-  * [[:​tilda|Tilda]] ​<[[utilisateurs:​seth:​tilda|aperçu]]>+ <note>La page n'​existant plus (suprimée) je me permet d'​enlever le lien afin d'​enlever l'​entrée des liens cassé. Antonin_Morel</​note>
  
 ===== Contributions ===== ===== Contributions =====
Ligne 18: Ligne 18:
  
 ==== .conkyrc ==== ==== .conkyrc ====
-<​code>​ +Un aperçu :
-# Total number of times for Conky to update before quitting. 0 = forever  +
-total_run_times 0+
  
-# Print text to stdout +[[http://​pix.gregseth.net/​0/​1229427965.png|{{http://​pix.gregseth.net/​300/​1229427965.png}}]]
-out_to_console no+
  
-# Buffer management, avoid blinking +Le fichier de config : [[http://​media.gregseth.net/​scripts/​conkyrc|.conkyrc]]
-double_buffer yes +
-no_buffers yes +
-text_buffer_size 2048+
  
-# refresh rate +Et le script ''​conky-news.sh''​ qui permet de récupérer le flux des actus : [[http://​media.gregseth.net/​scripts/​conky-news.sh|conky-news.sh]]
-update_interval 1+
  
-# samples for rate average +==== .zshrc ====
-cpu_avg_samples 4 +
-net_avg_samples 2+
  
-# size and posiiton +[[http://​www.gregseth.net/​files/​scripts/​zshrc|zshrc]]
-alignment top_right +
-minimum_size 320 5 +
-maximum_width 320 +
-gap_x 4 +
-gap_y 4+
  
-# shading and framming +==== Thème irssi ====
-draw_shades yes +
-draw_outline no +
-draw_borders no +
-border_width 1 +
-border_margin 4+
  
-# should Conky fork in the background +La preview qui va bien :
-background yes+
  
-# window type +[[http://pix.gregseth.net/​0/​1229428252.png|{{http://​pix.gregseth.net/​300/​1229428252.png}}]]
-own_window yes +
-own_window_type override # normal ​override ​desktop +
-own_window_transparent yes+
  
-#font management +Et le fichier ​[[http://media.gregseth.net/scripts/spiced.theme|spiced.theme]]
-use_xft yes +
-xftalpha .1 +
-override_utf8_locale yes # force UTF8 +
- +
-# font face +
-xftfont Fixed:​size=7#​OCR A Std:​size=6 +
-uppercase no +
- +
-# Adds spaces to keep things from moving about. +
-# Works only with fixed width fonts +
-use_spacer right +
- +
-# Colors +
-default_color FFFFFF +
-default_shade_color 333333 +
-default_outline_color black +
- +
-color1 E08000 #orange +
-color2 888888 #gray50 +
- +
-color6 CCCCCC +
-color7 999999 +
-color8 666666 +
-color9 333333 +
- +
- +
- +
-TEXT +
-${alignc}${color1}${color}${time %A %d %B %Y} +
-${color1} ${font LCD:​style=Bold:​pixelsize=48}${alignc}${time %H:​%M:​%S}${font}${color} +
- +
-${color2}${font StyleBats:​size=16}X${color1}${font Aerial:​size=8} Computer${color2}${hr}${font} +
-${alignr}${color}${execi 86400 cat /​etc/​lsb-release|grep ID|cut -d= -f2} ${color1}${execi 86400 cat /​etc/​lsb-release|grep REL|cut -d= -f2}${color} "​${color1}${execi 86400 cat /​etc/​lsb-release|grep NAME|cut -d= -f2}${color}"​ +
-${alignr}${color}$sysname ${color1}$kernel ${color}on ${color1}$machine +
-${alignr}${color1}${nodename}${color} is running for ${color1}$uptime${color} +
- +
-${color2}${font StyleBats:​size=16}B${color1}${font Aerial:​size=8} Network${color2}${hr} +
-${color1}${font}eth0 : +
-${alignc}${color2}lan:​ ${color}${addr eth0}    ${color2}wan:​${color}${texeci 3600 wget http://​checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d \< -f 1}  +
-${color2}${downspeedgraph eth0 16,145 582D10 E08000}${alignr}${upspeedgraph eth0 16,145 582D10 E08000} +
-${color1}Down ${color}${downspeed eth0} ${color grey}ko/​s${color} ​ ${color}${totaldown eth0}${alignr}${color1}Up ${color}${color}${upspeed eth0} ${color grey}ko/​s${color} ​ ${color}${totalup eth0} +
- +
-${color2}${font StyleBats:​size=16}H${color1}${font Aerial:​size=8} Drives${color2}${hr} +
-${font}${color1}${alignc}${execi 86400 ~/​scripts/​mounts.sh} ${color}mounts remaining till next fsck +
- +
-${color2}/​${color1} ​    : ${color}${fs_used_perc /} % ${alignr}${color1}[${color}${fs_free /​}${color1}/ ​ ${color7}${fs_used /​}${color1}/​ ${color8}${fs_size /​}${color1}] +
-${color2}${fs_bar 4 /} +
-${color2}/​${color1}home${color2}/​${color1}:​ ${color}${fs_used_perc /home} % ${alignr}${color1}[${color}${fs_free /​home}${color1}/ ​ ${color7}${fs_used /​home}${color1}/​ ${color8}${fs_size /​home}${color1}] +
-${color2}${fs_bar 4 /home} +
-${color2}/​${color1}data${color2}/​${color1}:​ ${color}${fs_used_perc /data} % ${alignr}${color1}[${color}${fs_free /​data}${color1}/ ​ ${color7}${fs_used /​data}${color1}/​ ${color8}${fs_size /​data}${color1}] +
-${color2}${fs_bar 4 /data} +
-${color2}/​${color1}win${color2}/​${color1} : ${color}${fs_used_perc /win} % ${alignr}${color1}[${color}${fs_free /​win}${color1}/ ​ ${color7}${fs_used /​win}${color1}/​ ${color8}${fs_size /​win}${color1}] +
-${color2}${fs_bar 4 /win} +
- +
-${color2}${font StyleBats:​size=16}J${color1}${font Aerial:​size=8} Processes${color2}${hr} +
-${font}${color2}${alignc}Total:​ ${color}$processes ​  ​${color2}Running:​${color} ${color}$running_processes +
- +
-${voffset 2}${color1}CPU ​  :​${alignr}${color}${freq_dyn_g}GHz ${color2}${color2}${voffset  +
--12}${cpugraph 16,128 582D10 E08000} ${voffset -1}${color}$cpu% +
-${alignr}${offset -32}${color1}PID ​  ​%CPU ​  ​%MEM +
-${alignr}${offset -32}${color1}${top name 1}${color} ${top pid 1} ${top cpu 1} ${top mem 1} +
-${alignr}${offset -32}${color1}${top name 2}${color6} ${top pid 2} ${top cpu 2} ${top mem 2} +
-${alignr}${offset -32}${color1}${top name 3}${color7} ${top pid 3} ${top cpu 3} ${top mem 3} +
-${alignr}${offset -32}${color1}${top name 4}${color8} ${top pid 4} ${top cpu 4} ${top mem 4} +
-${alignr}${offset -32}${color1}${top name 5}${color9} ${top pid 5} ${top cpu 5} ${top mem 5} +
- +
-${color2}${font StyleBats:​size=16}G${color1}${font Aerial:​size=8} Memory${color2}${hr}${font} +
- +
-${color1}RAM ​  :​${alignr}${color2}${membar 4,128} ${color}${memperc}% +
-${color1}swap ​ :​${alignr}${offset 6}${color2}${swapbar 4,128} ${color}${swapperc}%  +
-${alignr}${offset -32}${color1}PID ​  ​%CPU ​  ​%MEM +
-${alignr}${offset -32}${color1}${top_mem name 1}${color} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1} +
-${alignr}${offset -32}${color1}${top_mem name 2}${color6} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2} +
-${alignr}${offset -32}${color1}${top_mem name 3}${color7} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3} +
-${alignr}${offset -32}${color1}${top_mem name 4}${color8} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4} +
-${alignr}${offset -32}${color1}${top_mem name 5}${color9} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5} +
- +
-${color2}${font StyleBats:​size=16}N${color1}${font Aerial:​size=8} News${color2}${hr}${font}${color} +
- +
-${execpi 300 ~/​scripts/​read-feed.sh} +
- +
-${color2}${font StyleBats:​size=16}I${color1}${font Aerial:​size=8} Meteo${color2}${hr}${font}${color} +
- +
-${alignc}${execi 1800 conkyForecast -L fr --location=FRXX0076 --datatype=DW --startday=1 --endday=4 --spaces=10 --shortweekday} +
-${color}${font ConkyWeather:​size=36}${alignc}${execi 1800 conkyForecast -L fr --location=FRXX0076 --datatype=WF --startday=1 --endday=4 --spaces=2}${font} +
-${color1}${alignc}${execi 1800 conkyForecast -L fr --location=FRXX0076 --datatype=HT --startday=1 --endday=4 --spaces=9} +
-${color8}${alignc}${execi 1800 conkyForecast -L fr --location=FRXX0076 --datatype=LT --startday=1 --endday=4 --spaces=10} +
- +
-${color2}${hr} +
-${voffset 5}${font Paskowy:​size=18}${alignr}{Conky-v$conky_version / design by Seth}$font +
-</​code>​ +
- +
-Et le script ''​conky-news.sh''​ qui permet de récupérer le flux des actus : +
- +
-<​code>​ +
-#​!/​bin/​zsh ​                                                                                                                                 +
- +
-feed=http://www.20minutes.fr/rss/flux/une.xml +
-nbitems=10 +
-maxwidth=55 +
- +
-function oddity { +
-        if [ $[$1 % 2] -eq 0 ] +
-        then +
-                echo \$\{color7\}\$\{alignr\} +
-        else +
-                echo \$\{color\} +
-        fi +
-+
- +
-function split { +
-        trunk=""​ +
-        branch=""​ +
-        len=$(expr length $1) +
-        if [ $len -gt $maxwidth ] +
-        then +
-                                                                                                          +
-                idx=4 +
-                trunk=$(echo $1 cut -d \  -f -$idx) +
-                while [ $(expr length $trunk) -le $maxwidth ] +
-                do +
-                                                                                                    +
-                        idx=$[$idx+1] +
-                        trunk=$(echo $1 | cut -d \  -f -$idx) +
-                done +
- +
-                trunk=$(echo $1 | cut -d \  -f -$[$idx-1]) +
-                branch=$(echo $1 | cut -d \  -f $[$idx]-) +
- +
-                echo $(oddity $2)$trunk +
- +
-                split $branch $2 +
-        else +
-                echo $(oddity $2)$1 +
-        fi +
-+
- +
- +
-if wget $feed &> /dev/null +
-then +
-        l=1 +
-        grep title une.xml | cut -d\> -f2 | cut -d\< -f1 | head -$[$nbitems+2| tail -$nbitems > titles.lst +
-        iconv -f ISO_8859-1 -t UTF-8 -o titles.utf titles.lst +
-        while read line +
-        do +
-                split $line $l +
-                l=$[$l+1] +
-        done < titles.utf +
-        rm une.xml titles.lst titles.utf +
-fi +
-</​code>​ +
- +
-==== .zshrc =====+
  • utilisateurs/seth.1226504163.txt.gz
  • Dernière modification: Le 18/04/2011, 14:42
  • (modification externe)