Титла: Малко помощ за .conkyrc
Публикувано от: NikolaiTalev в Feb 27, 2011, 12:18
Здравейте как може да се направи на мястото където пише Downloads ми показва колко гигабайта е съдържанието на папка Свалени # UBUNTU-CONKY # A comprehensive conky script, configured for use on # Ubuntu / Debian Gnome, without the need for any external scripts. # # Based on conky-jc and the default .conkyrc. # INCLUDES: # - tail of /var/log/messages # - netstat connections to your computer # # -- Pengo (conky@pengo.us) #
# Create own window instead of using desktop (required in nautilus) own_window yes own_window_hints undecorated,below,skip_taskbar background no
# Use double buffering (reduces flicker, may not work for everyone) double_buffer yes
# fiddle with window use_spacer yes use_xft yes
# Update interval in seconds update_interval 3.0
# Minimum size of text area minimum_size 400 5
# Draw shades? draw_shades yes
# 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 8
# border margins border_margin 4
# border width border_width 1
# Default colors and also border colors, grey90 == #e5e5e5 default_color white default_shade_color black default_outline_color white
own_window_colour brown own_window_transparent yes
# 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 10 gap_y 10
# stuff after 'TEXT' will be formatted on screen
override_utf8_locale yes xftfont Terminus:size=8 xftalpha 0.8
TEXT
${offset 240}${color slate grey}${time %a, } ${color }${time %e %B %G} ${offset 240}${color slate grey}${time %Z, }${color }${time %H:%M:%S} ${offset 240}${color slate grey}UpTime: ${color }$uptime ${offset 240}${color slate grey}Kern:${color }$kernel ${offset 240}${color slate grey}CPU:${color } $cpu% ${acpitemp}C ${offset 240}${cpugraph 20,130 000000 ffffff} ${offset 240}${color slate grey}Load: ${color }$loadavg ${offset 240}${color slate grey}Processes: ${color }$processes ${offset 240}${color slate grey}Running: ${color }$running_processes
${offset 240}${color slate grey}Highest CPU: ${offset 240}${color #ddaa00} ${top name 1}${top_mem cpu 1} ${offset 240}${color lightgrey} ${top name 2}${top cpu 2} ${offset 240}${color lightgrey} ${top name 3}${top cpu 3} ${offset 240}${color lightgrey} ${top name 4}${top cpu 4}
${offset 240}${color slate grey}Highest MEM: ${offset 240}${color #ddaa00} ${top_mem name 1}${top_mem mem 1} ${offset 240}${color lightgrey} ${top_mem name 2}${top_mem mem 2} ${offset 240}${color lightgrey} ${top_mem name 3}${top_mem mem 3} ${offset 240}${color lightgrey} ${top_mem name 4}${top_mem mem 4}
${offset 240}${color slate grey}MEM: ${color } $memperc% $mem/$memmax ${offset 240}${membar 3,100} ${offset 240}${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax ${offset 240}${swapbar 3,100}
${offset 240}${color slate grey}ROOT: ${color }${fs_free /}/${fs_size /} ${offset 240}${fs_bar 3,100 /} ${offset 240}${color slate grey}HOME: ${color }${fs_free /home}/${fs_size /home} ${offset 240}${fs_bar 3,100 /home} ${offset 240}${color slate grey}DOWNLOADS: ${color }${fs_free /mnt/slack}/${fs_size /mnt/slack} ${offset 240}${fs_bar 3,100 /mnt/slack} ${offset 240}${color slate grey}NET: ${offset 240}${color}Up: ${color }${upspeed eth0}/s ${offset 240}${upspeedgraph eth0 20,130 000000 ffffff} ${offset 240}${color}Down: ${color }${downspeed eth0}/s${color} ${offset 240}${downspeedgraph eth0 20,130 000000 ffffff}
Титла: Re: Малко помощ за .conkyrc
Публикувано от: radoshow в Feb 27, 2011, 14:23
За да ти показва точния размер на Свалени ще трябва да създадеш нов дял на Харда си или да го прехвърлиш на външен HDD.След това да му направиш маунт пойт и да го опишеш в /etc/fstab,ako искаш да се зарежда автоматично.Примерно както са ти сега sda1-> / sda2 -> swap sda3 -> /home Ето ти и един примет.Създадох на една флашка един разширен дял и в него направих 4 основни.Всеки дял го форматирах в различен формат и прехвърлих във всеки дял различно количество информация.Виж какво показва на практика Conky.А това съм записал в conkyrc: GeSHi (Bash): ${if_mounted /media/98f3a1e8-87d1-4cc2-b708-9dc1fbb9188f}${font arial black:size=9}Disk1:$font${goto 120}${fs_type /media/98f3a1e8-87d1-4cc2-b708-9dc1fbb9188f}${goto 190}${fs_free_perc /media/98f3a1e8-87d1-4cc2-b708-9dc1fbb9188f}%${alignr 1}${fs_size /media/98f3a1e8-87d1-4cc2-b708-9dc1fbb9188f} ${fs_bar 4 /media/98f3a1e8-87d1-4cc2-b708-9dc1fbb9188f}$color $endif ${if_mounted /media/cc80b71d-c08b-4d80-a3a0-aa9323de5893}${font arial black:size=9}Disk2:$font${goto 120}${fs_type /media/cc80b71d-c08b-4d80-a3a0-aa9323de5893}${goto 190}${fs_free_perc /media/cc80b71d-c08b-4d80-a3a0-aa9323de5893}%${alignr 1}${fs_size /media/cc80b71d-c08b-4d80-a3a0-aa9323de5893} ${fs_bar 4 /media/cc80b71d-c08b-4d80-a3a0-aa9323de5893}$color $endif ${if_mounted /media/c61a18f0-6539-4744-bb85-f89e7def8e91}${font arial black:size=9}Disk3:$font${goto 120}${fs_type /media/c61a18f0-6539-4744-bb85-f89e7def8e91}${goto 190}${fs_free_perc /media/c61a18f0-6539-4744-bb85-f89e7def8e91}%${alignr 1}${fs_size /media/c61a18f0-6539-4744-bb85-f89e7def8e91} ${fs_bar 4 /media/c61a18f0-6539-4744-bb85-f89e7def8e91}$color $endif ${if_mounted /media/BC1D-016C}${font arial black:size=9}Disk4:$font${goto 120}${fs_type /media/BC1D-016C}${goto 190}${fs_free_perc /media/BC1D-016C}%${alignr 1}${fs_size /media/BC1D-016C} ${fs_bar 4 /media/BC1D-016C}$color $endif
Ползвам if_mounted,защото когато не е монтиран диска да не излиза нищо в Conky.За по-лесен достъп до директориите можеш да направиш точка на монтиране в твоята домашна директория
Титла: Re: Малко помощ за .conkyrc
Публикувано от: fanfolet в Feb 27, 2011, 15:06
Пробвай с ${offset 240}${color slate grey}DOWNLOADS: ${color }${fs_used /mnt/slack}/${fs_size /mnt/slack}
|