General Motors > Informatique

T'es conky ou pas ?

<< < (23/26) > >>

bande d'encules:
frak c'est une ubuntu fraiche de vendredi j'ai rien fait de spé :o
je suis en ssh -x avec putty

bande d'encules:
je pense que ta commande elle est chelou , grep c'est quoi ? un viewer ?

BecomeInsane:
grep spour isoler des trucs, genre t'as un ficher avec 1500 lignes numérotées
tu fais cat fichier | grep 415, et ça va te sortir que la ligne qui contient 415
après man grep pour les option, mais c'est vraiement pratique
fait un ls -ahl /var/log
pour voir, ça m'étonne franchement

bande d'encules:
j'ai le dossier log mais pas les fichiers que tu as dis , j'ai un messages sans le log etc

bande d'encules:

total 4,7M
drwxr-xr-x 14 root   root  4,0K 2009-10-11 21:39 .
drwxr-xr-x 15 root   root  4,0K 2009-04-20 16:07 ..
drwxr-xr-x  2 root   root  4,0K 2009-04-08 16:54 apparmor
drwxr-xr-x  2 root   root  4,0K 2009-04-20 16:00 apt
-rw-r-----  1 syslog adm   285K 2009-10-11 21:48 auth.log
-rw-r-----  1 syslog adm    49K 2009-10-09 17:30 auth.log.0
-rw-r-----  1 root   adm     31 2009-04-20 15:59 boot
-rw-r--r--  1 root   root   38K 2009-04-20 16:00 bootstrap.log
-rw-rw-r--  1 root   utmp     0 2009-04-20 15:59 btmp
drwxr-xr-x  2 root   root  4,0K 2009-10-09 15:28 ConsoleKit
drwxr-xr-x  2 root   root  4,0K 2009-10-10 00:38 cups
-rw-r-----  1 syslog adm   103K 2009-10-11 21:39 daemon.log
-rw-r-----  1 syslog adm    36K 2009-10-09 17:28 daemon.log.0
-rw-r-----  1 syslog adm    94K 2009-10-11 21:39 debug
-rw-r-----  1 syslog adm    29K 2009-10-09 17:17 debug.0
drwxr-xr-x  2 root   root  4,0K 2009-04-19 00:35 dist-upgrade
-rw-r-----  1 root   adm    34K 2009-10-11 21:39 dmesg
-rw-r-----  1 root   adm    35K 2009-10-10 03:58 dmesg.0
-rw-r-----  1 root   adm    11K 2009-10-10 03:40 dmesg.1.gz
-rw-r-----  1 root   adm    11K 2009-10-10 02:59 dmesg.2.gz
-rw-r-----  1 root   adm   9,7K 2009-10-10 02:16 dmesg.3.gz
-rw-r-----  1 root   adm   9,7K 2009-10-10 01:59 dmesg.4.gz
-rw-r-----  1 root   adm   965K 2009-10-10 02:09 dpkg.log
-rw-r--r--  1 root   root   24K 2009-10-09 21:47 faillog
-rw-r--r--  1 root   root  2,2K 2009-04-20 16:08 fontconfig.log
drwxr-xr-x  2 root   root  4,0K 2009-04-20 15:59 fsck
drwxr-xr-x  2 root   root  4,0K 2009-10-11 21:38 gdm
drwxr-xr-x  2 root   root  4,0K 2009-10-09 13:17 installer
-rw-r--r--  1 root   root     0 2009-10-10 00:38 jockey.log
-rw-r--r--  1 root   root   23K 2009-10-10 00:38 jockey.log.1
-rw-r-----  1 syslog adm   652K 2009-10-11 21:39 kern.log
-rw-r-----  1 syslog adm   198K 2009-10-09 17:17 kern.log.0
-rw-rw-r--  1 root   utmp  286K 2009-10-11 21:40 lastlog
-rw-r-----  1 syslog adm      0 2009-04-20 16:00 lpr.log
-rw-r-----  1 syslog adm      0 2009-04-20 16:00 mail.err
-rw-r-----  1 syslog adm      0 2009-04-20 16:00 mail.info
-rw-r-----  1 syslog adm      0 2009-04-20 16:00 mail.log
-rw-r-----  1 syslog adm      0 2009-04-20 16:00 mail.warn
-rw-r-----  1 syslog adm   560K 2009-10-11 21:39 messages
-rw-r-----  1 syslog adm   169K 2009-10-09 17:31 messages.0
drwxr-xr-x  2 mpd    audio 4,0K 2009-10-09 18:56 mpd
drwxr-sr-x  2 news   news  4,0K 2009-04-20 16:00 news
-rw-r--r--  1 root   root     0 2009-04-20 16:02 pycentral.log
drwxr-x---  3 root   adm   4,0K 2009-10-10 05:39 samba
-rw-r-----  1 syslog adm   379K 2009-10-11 21:44 syslog
-rw-r-----  1 syslog adm   419K 2009-10-10 00:30 syslog.0
-rw-r-----  1 syslog adm    49K 2009-10-09 17:30 syslog.1.gz
-rw-r--r--  1 root   root  152K 2009-10-11 21:38 udev
drwxr-xr-x  2 root   root  4,0K 2009-03-02 11:07 unattended-upgrades
-rw-r-----  1 syslog adm    15K 2009-10-11 21:39 user.log
-rw-r-----  1 syslog adm    156 2009-10-09 13:30 user.log.0
-rw-r--r--  1 root   root     0 2009-10-10 00:38 wpa_supplicant.log
-rw-r--r--  1 root   root    20 2009-10-09 15:28 wpa_supplicant.log.1.gz
-rw-rw-r--  1 root   utmp  106K 2009-10-11 21:46 wtmp
-rw-r--r--  1 root   root   35K 2009-10-11 21:39 Xorg.0.log
-rw-r--r--  1 root   root   36K 2009-10-10 16:52 Xorg.0.log.old

Rajesh Koothrappali:
Bitman > En fait j'ai 4 conkys pour la capture dans le topic fond d'écrans:

conkygeneral:

--- Code: ---# --- Window Layout & Options --- #
own_window yes  
own_window_class Conky
own_window_type override  
own_window_transparent yes
gap_x 10  
gap_y 60
alignment top_right
background yes
double_buffer yes
 
# --- Colours, Sizes, Fonts & Margins --- #
use_xft yes
xftalpha 0.8
xftfont Bitstream Vera Sans Mono:size=9
update_interval 1.0
default_color 55432f
default_outline_color black  
default_shade_color black
 
# --- Text --- #
uppercase no
 
# Border width
border_width 1
cpu_avg_samples 2
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
net_avg_samples 2
no_buffers yes
out_to_console no
stippled_borders 0
show_graph_scale no
show_graph_range no

# Stuff after 'TEXT' will be formatted on screen  
TEXT
${color #675233}${font Santos Dumont:size=42}System$font
${color white}$hr${color}
Machine: ${color white}$nodename$color
Kernel: ${color white}$kernel$color
Uptime: ${color white}$uptime$color

${color #675233}${font Santos Dumont:size=42}Process$font
${color white}$hr${color}
CPU: ${alignr}$cpu%  
${cpugraph}  
RAM:$color ${alignr}$mem  
${membar 4}
 
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 #675233}${font Santos Dumont:size=42}File systems$font
${color white}$hr${color}
/: ${alignr}${fs_free /}/${fs_size /}
${fs_bar 4 /}
/home: ${alignr}${fs_free /home}/${fs_size /home}  
${fs_bar 4 /home}
Series: ${alignr}${fs_free /media/Series}/${fs_size /media/Series}
${fs_bar 4 /media/Series}  
Datas: ${alignr}${fs_free /media/Datas}/${fs_size /media/Datas}
${fs_bar 4 /media/Datas}  
Zik: ${alignr}${fs_free /media/Zik}/${fs_size /media/Zik}
${fs_bar 4 /media/Zik}
 
${color #675233}${font Santos Dumont:size=42}Network$font
${color white}$hr${color}
IP : ${color white}${addr eth0}${color}
Up: ${upspeed eth0} /s  ${alignr}Down: ${downspeed eth0} /s
${upspeedgraph eth0 16,100}  ${downspeedgraph eth0 16,100}

${color #675233}${font Santos Dumont:size=42}Todo List$font
${color white}$hr${color}
${execi 5 cat ~/todo/1.txt | grep todo | cut -d "=" -f2}${if_existing ~/todo/1.txt}${endif}
${execi 5 cat ~/todo/2.txt | grep todo | cut -d "=" -f2}${if_existing ~/todo/2.txt}${endif}
${execi 5 cat ~/todo/3.txt | grep todo | cut -d "=" -f2}${if_existing ~/todo/3.txt}${endif}
${execi 5 cat ~/todo/4.txt | grep todo | cut -d "=" -f2}${if_existing ~/todo/4.txt}${endif}
${execi 5 cat ~/todo/5.txt | grep todo | cut -d "=" -f2}${if_existing ~/todo/5.txt}${endif}
${execi 5 cat ~/todo/6.txt | grep todo | cut -d "=" -f2}${if_existing ~/todo/6.txt}${endif}
--- Fin du code ---


conkympd:

--- Code: ---#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_class Conky
own_window_transparent yes
own_window_type override
own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager
background yes

#borders
draw_borders no
border_margin 2

#shades
draw_shades no

#position
gap_x 50
gap_y 850
alignment top_left

#behaviour
update_interval 1

#colour
default_color  DCDCCC

#default_shade_color 000000
own_window_colour 121212

#font
use_xft yes
xftfont Santos Dumont:size=56
#to prevent window from moving
use_spacer none


mpd_host 127.0.0.1
mpd_port 6600


TEXT
${if_mpd_playing}${mpd_artist}
${color 666666}${font Santos Dumont:size=32}${voffset -50}      ${mpd_title}
${color DCDCCC}${mpd_bar 3 300}
${endif}
--- Fin du code ---


conkycalendar:

--- Code: ---# Date and Calendar
 
# 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

background yes

# fiddle with window
use_spacer right

# Use Xft?
use_xft yes
xftfont Bitstream Vera Sans Mono:size=9
xftalpha 0.8
text_buffer_size 2048
 
# Update interval in seconds
update_interval 10
 
# Minimum size of text are
minimum_size 5 5
maximum_width 600

# Draw shades?
draw_shades no
 
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase
 
# Stippled borders?
stippled_borders 3
 
# border margins
border_margin 9
 
# border width
border_width 10
 
# Default colors
default_color 55432f
 
# Text alignment, other possible values are commented
alignment top_left

# Gap between borders of screen
gap_x 1187
gap_y 437
 
# stuff after 'TEXT' will be formatted on screen

TEXT
${execpi 10 DJS=`date +%_d`; cal -m | sed '1d' | sed '/./!d' | sed 's/$/                     /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color2}'"$DJS"'${color}'" "/}${font}

--- Fin du code ---


conkydate:

--- Code: ---# Date and Calendar
 
# 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

background yes

# fiddle with window
use_spacer right

# Use Xft?
use_xft yes
xftfont unDotum:size=8
xftalpha 0.8
text_buffer_size 2048
 
# Update interval in seconds
update_interval 10
 
# Minimum size of text are
minimum_size 5 5
maximum_width 600

# Draw shades?
draw_shades no
 
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase
 
# Stippled borders?
stippled_borders 3
 
# border margins
border_margin 9
 
# border width
border_width 10
 
# Default colors
default_color 55432f
 
# Text alignment, other possible values are commented
alignment top_left

# Gap between borders of screen
gap_x 987
gap_y 257
 
# stuff after 'TEXT' will be formatted on screen

TEXT
${alignr 320}${font Santos Dumont:size=40}${execi 3600 date +%A\ %B\ %d\ %Y}$font

${alignr 400}${voffset -100}${font Santos Dumont:size=200}${execi 15 date +%R}$font


--- Fin du code ---




Navigation

[0] Index des messages

[#] Page suivante

[*] Page précédente

Utiliser la version classique