Conky analog clock

Başlatan UbuLubu, 26 Şubat 2010 - 15:54:03

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

UbuLubu

Ben conky'ye bu scripti eklemek istiyorum fakat bir turlu beceremedim.Benim conky dosyam:
# Use Xft?
use_xft yes
xftfont Arial Black:size=7
#xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# 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_transparent yes
own_window_type override
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 160 0
maximum_width 160

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_graph_borders yes

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 5

# Default colors and also border colors
default_color 303030
#default_shade_color white
#default_outline_color black
own_window_colour 000000
262626
# 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 10

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

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 1

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

TEXT
${image ~/.scripts/tlo_1.png -p -0,0 -s 190x1280}


${color white}${font OpenLogos:size=50}S${voffset -30}${color white}${font Arial Black:size=18}${offset 4}${time %H:%M}${color DB008B}${font Arial Black:size=12}${time :%S}${font}
${color white}${font Arial Black:size=10}${offset 70}${time %d/%m/%Y}${color white}${voffset 5}

${offset 1}${color white}${font Poky:size=29}S${font}
${font Arial Black:size=7}${voffset -65}
${offset 50}$sysname:${color white}${alignr}${color DB008B}${uptime}
${color DB008B}${alignr}$kernel $machine${color white}
${offset 50}Hostname:${color DB008B}${alignr}$nodename${color white}
${offset 50}User:${color DB008B}${alignr}$USER${color white}

${offset 1}${offset 5}${font StyleBats:size=30}a${font}${voffset -34}
${offset 50}CPU1: ${color DB008B}${cpu cpu0}%${color white}${alignr}${cpugraph cpu0 cpu1 10,50 262626 CCCCCC}${voffset 5}
${offset 50}CPU2: ${color DB008B}${cpu cpu1}%${color white}${alignr}${cpugraph cpu1 10,50 262626 CCCCCC}${voffset 10}
${offset 5}${font RsbillsDng:size=30}q${font}${voffset -30}
${offset 50}RAM: ${alignr}${color DB008B}$memperc%${color white}
${offset 50}SWAP: ${alignr}${color DB008B}$swapperc%${color white}${voffset 15}
${offset 15}${color white}${font weather:size=40}y ${font}${color white} ${voffset -45}
${offset 50}MB: ${alignr}${color DB008B}${acpitemp}°C${color white}
${offset 50}CPU1: ${alignr}${color DB008B}${execi 300 sensors | grep Core0 | cut -c15-16 ;}°C${color white}
${offset 50}CPU2: ${alignr}${color DB008B}${execi 300 sensors | grep Core1 | cut -c15-16 ;}°C${color white}

${offset 1}${color white}${font Poky:size=30}y${font} ${voffset -45}${color white}
${offset 50}${pre_exec nc localhost 7634 | sed -e 's/|[[:digit:]]\{2,4\}|C|/\n/g' | grep sda | sed -e 's/|.*|//'}
${offset 50}${font weather:size=26}x${font}${offset 8}${color DB008B}${hddtemp /dev/sda}°C${color white} ${voffset -28}
${alignr}${diskiograph 10,80 262626 CCCCCC}${voffset 10}
${offset 50}Filesystem ${alignr}${color DB008B}${fs_used_perc /}%${color white}
${if_existing /proc/net/route wlan0} ${voffset 10}
${font Martin Vogel's Symbols:size=50}m${font}${color white} ${voffset -51}
${offset 50}IP:${color DB008B}${alignr}${addr wlan0}${color white}
${offset 50}IP:${color DB008B}${alignr}${execi 1 ~/.scripts/ip.sh}${color white}
${offset 50}UPLOAD:${color DB008B}${alignr}${totalup wlan0}${color white}
${offset 50}DOWNLOAD:${color DB008B}${alignr}${totaldown wlan0}${color white}
${else}${if_existing /proc/net/route eth0} ${voffset 10}
${font Martin Vogel's Symbols:size=35}m${font}${color white} ${voffset -51}
${offset 50}IP:${color DB008B}${alignr}${addr eth0}${color white}
${offset 50}IP:${color DB008B}${alignr}${execi 1 ~/.scripts/ip.sh}${color white}
${offset 50}UPLOAD:${color DB008B}${alignr}${totalup eth0}${color white}
${offset 50}DOWNLOAD:${color DB008B}${alignr}${totaldown eth0}${color white}${endif}
${if_running audacious2}${color white}${font Sans:size=15}${font}${color white}
${offset 13}${color white}${font Musicelements:size=40}C${font}${voffset -50}${color white}
${offset 50}AUDACIOUS:
${offset 50}${color DB008B}${exec audtool2 --current-song | cut -b-32}${color white}
${offset 50}${exec audtool2 --current-song-bitrate-kbps} kbps ${alignr}${alignr}${exec audtool2 --current-song-output-length} / ${exec audtool2 --current-song-length}
${offset 50}${execbar expr 100 \* $(audtool2 --current-song-output-length-seconds) \/ $(audtool2 --current-song-length-seconds)}${endif}

${voffset 10}${offset 6}${color white}${font Martin Vogel's Symbols:size=30}i${font}${voffset -45}
${offset 50}${color DB008B}Highest${alignr} CPU%${color white}
${offset 50}${top name 1}${alignr}${top cpu 1}
${offset 50}${top name 2}${alignr}${top cpu 2}
${offset 50}${top name 3}${alignr}${top cpu 3}${voffset 20}
${offset 6}${color white}${font Martin Vogel's Symbols:size=30}i${font}${voffset -45}
${offset 50}${color DB008B}Highest$alignr MEM%${color white}
${offset 50}${top_mem name 1}${alignr}${top_mem mem 1}
${offset 50}${top_mem name 2}${alignr}${top_mem mem 2}
${offset 50}${top_mem name 3}${alignr}${top_mem mem 3}





Zaten bir script kullaniyorum sorun olmaz insallah...

UbuLubu

Konu cozulmustur yinede tesekkurler...

BayboraKaan

Çözümü de anlatırsanız sizden sonra sorun yaşayanlar için güzel bir belge olur.

zeusmaster

/etc/conky içindeki conky.conf dosyasının içindekileri silip script kodunu oraya yapıştırıp kaydedin.Bukadar :)
Up and Running...