Kirjoittaja Aihe: Conky  (Luettu 93137 kertaa)

Whig

  • Käyttäjä
  • Viestejä: 333
  • puppu-generaattori
    • Profiili
    • localhost
Vs: Conky
« Vastaus #160 : 12.05.10 - klo:21.18 »
Missäköhän voisi olla vika, kun Ubuntu 10.04:ssa Conky toimii muuten ok mutta jokaisen rivin lopussa on "neliö" merkki?
En keksi mistä tuon saisi pois, kun ei .conkyrc:ssä sellaista ole ja conkyrc on lähes suora copy/paste yhdestä tämän topicin conkyistä
puppu-generaattorin outputtia
"minä olen kansainvälinen supertähti"

Tha-Fox

  • Käyttäjä
  • Viestejä: 3315
  • Arch Linux && CentOS
    • Profiili
    • http://kettu.dy.fi
Vs: Conky
« Vastaus #161 : 12.05.10 - klo:22.22 »
Missäköhän voisi olla vika, kun Ubuntu 10.04:ssa Conky toimii muuten ok mutta jokaisen rivin lopussa on "neliö" merkki?
En keksi mistä tuon saisi pois, kun ei .conkyrc:ssä sellaista ole ja conkyrc on lähes suora copy/paste yhdestä tämän topicin conkyistä


Itsellä tuli vanhassa confissa sama vastaan Lucidiin siirtyessä, mutta vain yhdellä rivillä. Nyt on jo uusi menossa, niin ei voi oikein enää tutkia.

nore

  • Käyttäjä
  • Viestejä: 302
    • Profiili
Vs: Conky
« Vastaus #162 : 13.05.10 - klo:20.18 »
Missäköhän voisi olla vika, kun Ubuntu 10.04:ssa Conky toimii muuten ok mutta jokaisen rivin lopussa on "neliö" merkki?
En keksi mistä tuon saisi pois, kun ei .conkyrc:ssä sellaista ole ja conkyrc on lähes suora copy/paste yhdestä tämän topicin conkyistä
Selaimesta leikepöydän kautta kopsatessa voi mukana tulla merkkejä, jotka eivät näy selaimessa ja tekstieditorissa mutta muuttuvat näkyviksi conkyrc:ssä määritellyllä fontilla. Fontissa määrittämättömät merkit ovat usein tuollaisia pieniä neliöitä. Koetapa avata conky-tiedostosi tekstieditoriin, pyyhi Deletellä joku rivinvaihto pois ja lisää se uudelleen painamalla Enteriä. Jos loota katoaa rivin lopusta kun virkistät conkyn, tiedät, miten saat muutkin neliöt pois.

Whig

  • Käyttäjä
  • Viestejä: 333
  • puppu-generaattori
    • Profiili
    • localhost
Vs: Conky
« Vastaus #163 : 17.05.10 - klo:15.34 »
Missäköhän voisi olla vika, kun Ubuntu 10.04:ssa Conky toimii muuten ok mutta jokaisen rivin lopussa on "neliö" merkki?
En keksi mistä tuon saisi pois, kun ei .conkyrc:ssä sellaista ole ja conkyrc on lähes suora copy/paste yhdestä tämän topicin conkyistä
Selaimesta leikepöydän kautta kopsatessa voi mukana tulla merkkejä, jotka eivät näy selaimessa ja tekstieditorissa mutta muuttuvat näkyviksi conkyrc:ssä määritellyllä fontilla. Fontissa määrittämättömät merkit ovat usein tuollaisia pieniä neliöitä. Koetapa avata conky-tiedostosi tekstieditoriin, pyyhi Deletellä joku rivinvaihto pois ja lisää se uudelleen painamalla Enteriä. Jos loota katoaa rivin lopusta kun virkistät conkyn, tiedät, miten saat muutkin neliöt pois.

Ei vaikuttanut tuo rivinvaihdon muutos mutta tuon vinkin perusteella avasin .conkyrc:n ubuntu 10.04:n teksti editoriin ja tallennettaessa valitsin muistaakseni -15 merkistön jonka jälkeen oudot neliöt katosivat joten kiitoksia vinkistä.
puppu-generaattorin outputtia
"minä olen kansainvälinen supertähti"

myllyjo

  • Käyttäjä
  • Viestejä: 144
    • Profiili
Vs: Conky
« Vastaus #164 : 20.05.10 - klo:06.29 »
4-5 tuntia meni tähänkin tänään. :) En ollut ennen kokeillu conkya ja olen myös aloittelija linuxilla, ja aluksi näyttikin siltä kuin näppäimistö olisi oksentanut notepadille. Hieman kuin tutustuin niin sain tämmöistä aikaiseksi:

Tiedän, että alin osio on leveämpi kuin muut. Se näyttää luonnollisemmalta kun näkee koko työpöydän, tuossa pikkukuvassa se näyttää tosiaan vähän turhalta.

Koodia: [Valitse]
    background yes
    use_xft yes
    xftfont 123:size=8
    xftalpha 0.1
    update_interval 0.5
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 250 5
    maximum_width 400
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    default_color gray
    default_shade_color red
    default_outline_color green
    alignment top_right
    gap_x 10
    gap_y 10
    no_buffers no
    uppercase no
    cpu_avg_samples 2
    net_avg_samples 1
    override_utf8_locale yes
    use_spacer right
    text_buffer_size 256

    TEXT

    $alignc${font Arial:size=12}${color Tan1}

    ${voffset -90}
    ${color DimGray}
    ${font}
    ${font Arial:bold:size=10}${color Tan1}SYSTEM ${color DarkSlateGray} ${hr 2}
    $font${color DimGray}$sysname $kernel $alignr $machine
    Intel Core 2 Duo T9300 $alignr${freq_g}Ghz
    Nvidia GeForce 8700GT $alignr ${color DimGray} ${exec nvidia-settings -q GPUCoreTemp | grep Attribute | cut -d ' ' -f 6 | cut -c 1-2}  °C
    M/B Temperature: $alignr${color DimGray}$acpitemp°C
    Uptime $alignr${uptime}

    ${font Arial:bold:size=10}${color Tan1}PROCESSORS ${color DarkSlateGray}${hr 2}
    $font${color DimGray}CPU1  ${cpu cpu1}% ${cpubar cpu1}
    CPU2  ${cpu cpu2}% ${cpubar cpu2}

    ${font Arial:bold:size=10}${color Tan1}MEMORY ${color DarkSlateGray}${hr 2}
    $font${color DimGray}MEM $alignc $mem / $memmax $alignr $memperc%
    $membar

    ${font Arial:bold:size=10}${color Tan1}HDD ${color DarkSlateGray}${hr 2}
    $font${color DimGray}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
    ${fs_bar /home}

    ${font Arial:bold:size=10}${color Tan1}TOP PROCESSES ${color DarkSlateGray}${hr 2}
    ${color DimGray}$font${top_mem name 2}${alignr}${top mem 2} %
    $font${top_mem name 3}${alignr}${top mem 3} %
    $font${top_mem name 4}${alignr}${top mem 4} %
    $font${top_mem name 5}${alignr}${top mem 5} %

    ${font Arial:bold:size=10}${color Tan2}NETWORK ${color DarkSlateGray}${hr 2}
    $font${color DimGray}IP on eth0 $alignr ${addr eth0}
    $font${color DimGray}Internet IP $alignr ${pre_exec wget -O - http://ip.tupeux.com | tail}

    Down $alignr ${downspeed eth0} kb/s
    Up $alignr ${upspeed eth0} kb/s

    Downloaded: $alignr  ${totaldown eth0}
    Uploaded: $alignr  ${totalup eth0}






${font Arial:bold:size=10}${color Tan1}TIME & WEATHER ${color DarkSlateGray}${hr 2}

    ${color Ivory} ${font :size=32}$alignc${time %H:%M}
    ${voffset -30}${font :bold:size=10}$alignc${time %d %b. %Y}
    ${font :bold:size=8}$alignc${time %A}

${voffset 0}${font}${color Ivory}${font :size=17}${alignc 30}${execi 600 conkyForecast --location=FIXX0002 --datatype=HT}${alignc -30}${font ConkyWeather:size=30}${execpi 600 conkyForecast --location=FIXX0002 --datatype=WF}
${voffset 0}${font :bold:size=8}${alignc 34}${execpi 600 conkyForecast --location=FIXX0002 --datatype=DW --startday=1 --shortweekday} ${alignc 1}${execpi 600 conkyForecast --location=FIXX0002 --datatype=DW --startday=2 --shortweekday} ${alignc -31}${execpi 600 conkyForecast --location=FIXX0002 --datatype=DW --startday=3 --shortweekday} ${alignc -68}${execpi 600 conkyForecast --location=FIXX0002 --datatype=DW --startday=4 --shortweekday}
${voffset -1}${alignc 69}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=FIXX0002 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${voffset 0}${font Gentium:size=7}${alignc 15}${execpi 600 conkyForecast --location=FIXX0002 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=FIXX0002 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -13}${execpi 600 conkyForecast --location=FIXX0002 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=FIXX0002 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=FIXX0002 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=FIXX0002 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 40}${execpi 600 conkyForecast --location=FIXX0002 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=FIXX0002 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}

Jotain jäi uupumaan. Toi weather ei taida toimia pelkästään tuolla.

myllyjo
Packard Bell Imax iMini NVIDIA ION=> Ubuntu 10.10/W8 (Elokuvakats. 46") 2 X 1T Iomega + 1 X 2T Elements
Packard Bell Imax iMini NVIDIA ION=> Ubuntu 12.10/W8
Dell C840 => Ubuntu 10.10/Win2000
Pöytä=> Ubuntu 10.10/WIN2000

nore

  • Käyttäjä
  • Viestejä: 302
    • Profiili
Vs: Conky
« Vastaus #165 : 20.05.10 - klo:15.38 »
Lainaus
...
${voffset 0}${font}${color Ivory}${font :size=17}${alignc 30}${execi 600 conkyForecast --location=FIXX0002 --datatype=HT}...
Jotain jäi uupumaan. Toi weather ei taida toimia pelkästään tuolla.

Conky Weather Forecast Python Script

skfin

  • Vieras
Vs: Conky
« Vastaus #166 : 28.06.10 - klo:18.28 »
Jotain tämmöstä olen laittanut, en nyt mitenkään erikoista ole laittanut.

Koodia: [Valitse]
alignment bm
background yes
update_interval 5.0
double_buffer yes
override_utf8_locale yes

use_xft yes
xftfont Bitstream Vera Sans Mono:size=9
xftalpha 0.8

own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_width 0
cpu_avg_samples 2

draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
default_color white
default_outline_color white
default_shade_color white
#font 6x10
gap_x 0
gap_y 0
net_avg_samples 2
no_buffers yes
out_to_console no
stippled_borders 0
uppercase no
use_spacer left
show_graph_scale no
show_graph_range no

TEXT

${alignc}${color white}System name: ${color #FF7700}$nodename ${color dim grey}| ${color white}Kernel: ${color #FF7700}$sysname $kernel
${alignc}${color white}Uptime: ${color #FF7700}$uptime_short ${color dim grey}| ${color white}CPU: ${color #FF7700}$cpu%  ${color dim grey}| ${color white}RAM: ${color #FF7700}$memperc% ${color dim grey}| ${color white}Up:${color #FF7700} ${upspeed eth0} ${color dim grey}- ${color white}Down:${color #FF7700}${downspeed eth0} ${color dim grey}${color dim grey}| ${color white}${time %H:%M %d.%m.%Y}
${alignc}${color #FF7700}Now playing: ${color white}${exec conkyRhythmbox --datatype=AR} ${color dim grey}- ${color #FF7700}${exec conkyRhythmbox --datatype=TI} ${color dim grey}(${exec conkyRhythmbox --datatype=AL}) ${color white}${exec conkyRhythmbox --datatype=PT}${color dim grey}/${color #FF7700}${exec conkyRhythmbox --datatype=LE}

Tuossa linkki tuohon Rytmipoksi-skriptiin: http://ubuntuforums.org/showthread.php?p=5843297

[ylläpito on poistanut liitteen]

SuomenEläin

  • Käyttäjä
  • Viestejä: 2
    • Profiili
Vs: Conky
« Vastaus #167 : 27.07.10 - klo:16.10 »
Sellainen kysymys olisi miten saan toisen conkyn auki? Conky aukeaa kun käynnistän koneen mutta haluaisin västä vielä toisen tai kolmannen conkyn. Ketjun alussa oli selitetty mutta en nyt aloittelijana oikein ymmärtänyt tai saanut toimimaan.

myllyjo

  • Käyttäjä
  • Viestejä: 144
    • Profiili
Vs: Conky
« Vastaus #168 : 05.09.10 - klo:12.32 »
Tässä meikän conky, ihan kiva tää koneella rakentaminen! ::)
Koodia: [Valitse]
background no
    use_xft yes
    xftfont 123:size=8
    xftalpha 0.1
    update_interval 5 #0.5
    total_run_times 0
    own_window yes
    own_window_type override #normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 240 5
    maximum_width 400
    draw_shades no
    draw_outline no
    draw_borders no
    border_margin 16 # this puts everything 16 pixels from the edge
                     # since you are using a black background and 4 spaces
                     # at the start of every line - this does the same
    draw_graph_borders no
    default_color white
#   changed from gray to white as you are not using gray
    default_shade_color red
    default_outline_color green
    alignment top_right
    gap_x 10
    gap_y 35
    no_buffers yes #no
    uppercase no
    cpu_avg_samples 2
    net_avg_samples 1
    override_utf8_locale yes
    use_spacer left # yes - is NOT an option - left right or none
    text_buffer_size 256

    TEXT
${font Arial:bold:size=10}${color Tan1}TIETOKONEENI ${color DarkSlateGray} ${hr 2}${color}${font}
${font Arial:size=9}Distro ${alignr 2}${pre_exec cat /etc/issue.net}
Gnome ${alignr 2}${color white}text here${font}
$font${color white}$sysname $kernel ${alignr 2} $machine
Intel Pentium D ${alignr 2}${freq_g cpu0}Ghz, ${freq_g cpu1}Ghz
Uptime ${alignr 2}${uptime}
Processes: $processes ${alignr 2}Running: $running_processes
File System ${alignr 2}${fs_type}

${font Arial:bold:size=10}${color Tan1}PROSESSORIT ${color DarkSlateGray}${hr 2}${color}${font}
CPU1  ${cpu cpu0}% ${cpubar cpu0}
CPU2  ${cpu cpu1}% ${cpubar cpu1}

${font Arial:bold:size=10}${color Tan1}TYÖMUISTI ${color DarkSlateGray}${hr 2}${color}${font}
RAM${alignc}$mem / $memmax${alignr 2}$memperc%
$membar

${font Arial:bold:size=10}${color Tan1}KOVALEVY ${color DarkSlateGray}${hr 2}${color}${font}
 /${alignc}${fs_used /} / ${fs_size /}${alignr 2}${fs_free_perc /}%
${fs_bar /}

${font Arial:bold:size=10}${color Tan1}OHJELMAN KÄYTTÖ (CPU) ${color DarkSlateGray}${hr 2}${color}${font}
${font Arial:bold:size=9}${color red}${top name 1}${goto 160}${top pid 1}${alignr 2}${top cpu 1} %${color}${font}
${top name 2}${goto 160}${top pid 2}${alignr 2}${top cpu 2} %
${top name 3}${goto 160}${top pid 3}${alignr 2}${top cpu 3} %
${top name 4}${goto 160}${top pid 4}${alignr 2}${top cpu 4} %
${top name 5}${goto 160}${top pid 5}${alignr 2}${top cpu 5} %

${font Arial:bold:size=10}${color Tan1}OHJELMAN KÄYTTÖ (muisti/ram) ${color DarkSlateGray}${hr 2}${color}${font}
${font Arial:bold:size=9}${color red}${top_mem name 1}${goto 160}${top_mem pid 1}${alignr 2}${top mem 1} %${color}${font}
${top_mem name 2}${goto 160}${top_mem pid 2}${alignr 2}${top mem 2} %
${top_mem name 3}${goto 160}${top_mem pid 3}${alignr 2}${top mem 3} %
${top_mem name 4}${goto 160}${top_mem pid 4}${alignr 2}${top mem 4} %
${top_mem name 5}${goto 160}${top_mem pid 5}${alignr 2}${top mem 5} %

${font Arial:bold:size=10}${color Tan1}INTERNETTI  ${color DarkSlateGray}${hr 2}${color}${font}
IP on eth0${alignr 2}${addr eth0}
Sisään${alignr 2}${downspeed eth0} kb/s
ulos${alignr 2}${upspeed eth0} kb/s

${font Arial:bold:size=10}${color Tan1}NETTILIIKENNE YHTEENSÄ  ${color DarkSlateGray}${hr 2}${color}${font}
${goto 80}${font Arial:Bold:size=8}${color Red}Sisään${goto 150}${color green}Ulos${alignr 2}Yhteensä${color}${font}
Eileen: ${color red}${execi 300 vnstat | grep "Eileen" | awk '{print $2 $3}'}${goto 140}${color green}${execi 300 vnstat | grep "Eileen" | awk '{print $5 $6}'}${alignr 2}${color white}${execi 300 vnstat | grep "Eileen" | awk '{print $8 $9}'}
Tänään:${goto 80}${color red}${execi 300 vnstat | grep "Tänään" | awk '{print $2 $3}'}${goto 140}${color green}${execi 300 vnstat | grep "Tänään" | awk '{print $5 $6}'}${alignr 2}${color white}${execi 300 vnstat | grep "Tänään" | awk '{print $8 $9}'}
vim Viikko:${goto 80}${color red}${execi 300 vnstat -w | grep "vim Viikko" | awk '{print $3 $4}'}${goto 140}${color green}${execi 300 vnstat -w | grep "vim Viikko" | awk '{print $6 $7}'}${alignr 2}${color white}${execi 300 vnstat -w | grep "vim Viikko" | awk '{print $9 $10}'}
vim Kuukausi:${goto 80}${color red}${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'}${goto 140}${color green}${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}${alignr 2}${color white}${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9 $10}'}${font}

Toimiiko toi alinnaoleva Nettiliikenne yhteensä?
Minä en sitä ainakaan saanut toimimaan?????

myllyjo
Packard Bell Imax iMini NVIDIA ION=> Ubuntu 10.10/W8 (Elokuvakats. 46") 2 X 1T Iomega + 1 X 2T Elements
Packard Bell Imax iMini NVIDIA ION=> Ubuntu 12.10/W8
Dell C840 => Ubuntu 10.10/Win2000
Pöytä=> Ubuntu 10.10/WIN2000

Tha-Fox

  • Käyttäjä
  • Viestejä: 3315
  • Arch Linux && CentOS
    • Profiili
    • http://kettu.dy.fi
Vs: Conky
« Vastaus #169 : 05.09.10 - klo:14.37 »
Tuo lainattu koodihan käyttää eth0-liitäntää? Onko sinulla tuo sama liitäntä käytössä (langallinen) vai pitäisikö se vaihtaa esim. wlan0:ksi?

myllyjo

  • Käyttäjä
  • Viestejä: 144
    • Profiili
Vs: Conky
« Vastaus #170 : 06.09.10 - klo:06.25 »
Tuo lainattu koodihan käyttää eth0-liitäntää? Onko sinulla tuo sama liitäntä käytössä (langallinen) vai pitäisikö se vaihtaa esim. wlan0:ksi?
Kumpaakin on kokeiltu. Ja nettinopeus kyllä näkyy mutta noi siirtomäärät jää uupumaan.

myllyjo
Packard Bell Imax iMini NVIDIA ION=> Ubuntu 10.10/W8 (Elokuvakats. 46") 2 X 1T Iomega + 1 X 2T Elements
Packard Bell Imax iMini NVIDIA ION=> Ubuntu 12.10/W8
Dell C840 => Ubuntu 10.10/Win2000
Pöytä=> Ubuntu 10.10/WIN2000

Jone

  • Käyttäjä
  • Viestejä: 182
  • \,,/
    • Profiili
Vs: Conky
« Vastaus #171 : 06.09.10 - klo:10.04 »
Tuo lainattu koodihan käyttää eth0-liitäntää? Onko sinulla tuo sama liitäntä käytössä (langallinen) vai pitäisikö se vaihtaa esim. wlan0:ksi?
Kumpaakin on kokeiltu. Ja nettinopeus kyllä näkyy mutta noi siirtomäärät jää uupumaan.

myllyjo
Pitää asentaa ohjelma vnstat joka pyörii taustalla ja kerää noita siirtomääriä. Siltähän tuossa huudellaan tietoja.

myllyjo

  • Käyttäjä
  • Viestejä: 144
    • Profiili
Vs: Conky
« Vastaus #172 : 08.09.10 - klo:06.34 »
Tuo lainattu koodihan käyttää eth0-liitäntää? Onko sinulla tuo sama liitäntä käytössä (langallinen) vai pitäisikö se vaihtaa esim. wlan0:ksi?
Kumpaakin on kokeiltu. Ja nettinopeus kyllä näkyy mutta noi siirtomäärät jää uupumaan.

myllyjo
Pitää asentaa ohjelma vnstat joka pyörii taustalla ja kerää noita siirtomääriä. Siltähän tuossa huudellaan tietoja.
Asennettu on muta ei edelleenkään tuo mitään näkyviin.
Alla tuloste:

jouni@PackardBell:~$ vnstat -d

 eth0  /  daily

    day         rx      |     tx      |  total
------------------------+-------------+----------------------------------------
   07.09.     68.14 MB  |  623.29 MB  |  691.44 MB   %%:::::::::::::::::::::::
   08.09.     81.52 MB  |   10.76 MB  |   92.28 MB   %%%
------------------------+-------------+----------------------------------------
 estimated      360 MB  |      44 MB  |     404 MB
jouni@PackardBell:~$ vnstat -m

 eth0  /  monthly

   month         rx      |      tx      |   total
-------------------------+--------------+--------------------------------------
  Sep '10     149.66 MB  |   634.05 MB  |   783.72 MB   %%%%::::::::::::::::::
-------------------------+--------------+--------------------------------------
 estimated       620 MB  |     2.58 GB  |     3.18 GB
jouni@PackardBell:~$ vnstat -hm
Unknown arg "-hm". Use --help for help.
jouni@PackardBell:~$ vnstat -h
 eth0                                                                     05:20
  ^                           t                                                 
  |                           t                                           r     
  |      t  t  t  t  t  t  t  t                                           r     
  |      t  t  t  t  t  t  t  t                                           r     
  |      t  t  t  t  t  t  t  t                                           r     
  |      t  t  t  t  t  t  t  t                                           r     
  |      t  t  t  t  t  t  t  t                                           r     
  |   t  t  t  t  t  t  t  t  t                                           r     
  |   t  t  t  t  t  t  t  t  t                                           r     
  |   t  t  t  t  t  t  t  t  t  t                                        rt   
 -+--------------------------------------------------------------------------->
  |  06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 00 01 02 03 04 05   
                                                                               
 h   rx (kB)    tx (kB)      h   rx (kB)    tx (kB)      h   rx (kB)    tx (kB)
06       1069      30737    14       2743      86875    22        123        100
07       2441      71241    15        341       9724    23        128        105
08       2408      72466    16         97         76    00        125        104
09       2385      71321    17        125        102    01        143         81
10       2478      75131    18        135        102    02        211          5
11       2343      69513    19        128        102    03        206          4
12       2420      72989    20        159        101    04        162          6
13       2382      71600    21        175         99    05      82630      10817
jouni@PackardBell:~$ execi 300 vnstat
execi: command not found
jouni@PackardBell:~$ ^C
jouni@PackardBell:~$

Tuoexeci 300 vnstat-rivi ei ilmeisesti ole tarkoitus toimiakaan noin...Miksi se on sellisena tuolla koodissa?????
Ei ymmärrä ei..

myllyjo
Packard Bell Imax iMini NVIDIA ION=> Ubuntu 10.10/W8 (Elokuvakats. 46") 2 X 1T Iomega + 1 X 2T Elements
Packard Bell Imax iMini NVIDIA ION=> Ubuntu 12.10/W8
Dell C840 => Ubuntu 10.10/Win2000
Pöytä=> Ubuntu 10.10/WIN2000

tomikiv

  • Käyttäjä
  • Viestejä: 238
    • Profiili
Vs: Conky
« Vastaus #173 : 14.11.10 - klo:17.01 »
Mitäköhän varten kellon ja verkonkäytön välissä on noin iso väli, ideoita? Kuva ja koodia alla.

Koodia: [Valitse]
use_xft yes
xftfont verdana:size=8
alignment top_right
xftalpha 0.8
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 10
border_margin 1
border_width 1
default_shade_color black
default_outline_color black
default_color black
use_spacer none
no_buffers yes
uppercase no
color1 black

TEXT
${font Radio Space:size=14}${time %A %d %m %Y}
${font Radio Space:size=90}${time %H:%M}
${font PizzaDude Bullets:size=16}v${font}Up:${upspeed eth0}/s
${font PizzaDude Bullets:size=16}r${font}Down:${downspeed eth0}/s

${font PizzaDude Bullets:size=16}M${font}Upload:${totalup eth0}
${font PizzaDude Bullets:size=16}S${font}Download:${totaldown eth0}

${color black}${font StyleBats:size=16}A${font}  CPU0:${cpu cpu0}%${cpubar cpu0}

${color black}HOME:
${fs_bar /home}$color
$color$alignr${fs_used /home}/${fs_size /home}

[ylläpito on poistanut liitteen]
« Viimeksi muokattu: 14.11.10 - klo:17.04 kirjoittanut tomikiv »
Desktop: Phenom 955, 8gb, HD4250, 64gb SSD, Ubuntu 14.04
Htpc: E6600, 4gb, HD4300, 50gb SSD, Ubuntu 14.04
Server: Athlon x2 255, 8gb, 32gb SSD, 8tb, Ubuntu Server 14.04

Taro Turtiainen

  • Käyttäjä
  • Viestejä: 579
    • Profiili
    • Taro Turtiainen
Vs: Conky
« Vastaus #174 : 15.11.10 - klo:13.45 »
Johtuu varmaankin fontin koosta. Eli fontin koko pitäisi muuttaa pienemmäksi ennen rivinvaihtoa.
VASEMMISTOLIITTO - RIKKAUTTA JOLLA ON ARVOA

”Ei ole olemassa todellista vapautta ilman toisinajattelun vapautta.” Rosa Luxemburg 1918

tomikiv

  • Käyttäjä
  • Viestejä: 238
    • Profiili
Vs: Conky
« Vastaus #175 : 15.11.10 - klo:18.27 »
kiiokset, ei noi yksinkertanen asia tullut edes mieleen.  :)
Desktop: Phenom 955, 8gb, HD4250, 64gb SSD, Ubuntu 14.04
Htpc: E6600, 4gb, HD4300, 50gb SSD, Ubuntu 14.04
Server: Athlon x2 255, 8gb, 32gb SSD, 8tb, Ubuntu Server 14.04

Hajakenttä

  • Käyttäjä / moderaattori
  • Viestejä: 1547
    • Profiili
Vs: Conky
« Vastaus #176 : 18.11.10 - klo:18.33 »
Tällainen Conky on tullut värkätyksi. Alkujuuri oli vanha Tha-Foxin julkaisema. Siitä poistelin kaiken, jota en ymmärtänyt ja lisäilin jotain ja muutin jotain. Lainailin palikoita vähän kaikilta täältä.

Koodia: [Valitse]
sh -c "sleep 12 && exec conky"
Tuommosen käynnistyskomennon laitoin aloitusohjelmien asetteluun, koska muuten Conky käynnistyi aina taustakuvan alle. Override komento piti myös laittaa kun muuten Conky livahti heti koskettaessa taustakuvan alle.

Edit: Piti vielä lisätä, että kuten kuvastakin kohtalotoverit näkevät, kyseessä on eee 901 pikkukone.

Lainaus
# set to yes if you want Conky to be forked in the background
background yes

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=8

own_window_transparent no
#own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8

on_bottom yes

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 3
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar
own_window_type override

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 260 5
maximum_width 260

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders no

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 15
gap_y 70
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer no

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# none, xmms, bmp, audacious, infopipe (default is none)
xmms_player bmp

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
#      Variable         Arguments                  Description                
#  acpiacadapter                     ACPI ac adapter state.                  
#  acpifan                           ACPI fan state                          
#  acpitemp                          ACPI temperature.                        
#  adt746xcpu                        CPU temperature from therm_adt746x      
#  adt746xfan                        Fan speed from therm_adt746x            
#  battery           (num)           Remaining capasity in ACPI or APM        
#                                    battery. ACPI battery number can be      
#                                    given as argument (default is BAT0).    
#  buffers                           Amount of memory buffered                
#  cached                            Amount of memory cached                  
#  color             (color)         Change drawing color to color            
#  cpu                               CPU usage in percents                    
#  cpubar            (height)        Bar that shows CPU usage, height is      
#                                    bar's height in pixels                  
#  downspeed         net             Download speed in kilobytes              
#  downspeedf        net             Download speed in kilobytes with one    
#                                    decimal                                  
#  exec              shell command   Executes a shell command and displays    
#                                    the output in torsmo. warning: this      
#                                    takes a lot more resources than other    
#                                    variables. I'd recommend coding wanted  
#                                    behaviour in C and posting a patch :-).  
#  execi             interval, shell Same as exec but with specific interval.
#                    command         Interval can't be less than              
#                                    update_interval in configuration.        
#  fs_bar            (height), (fs)  Bar that shows how much space is used on
#                                    a file system. height is the height in  
#                                    pixels. fs is any file on that file      
#                                    system.                                  
#  fs_free           (fs)            Free space on a file system available    
#                                    for users.                              
#  fs_free_perc      (fs)            Free percentage of space on a file      
#                                    system available for users.              
#  fs_size           (fs)            File system size                        
#  fs_used           (fs)            File system used space                  
#  hr                (height)        Horizontal line, height is the height in
#                                    pixels                                  
#  i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev  
#                                    may be omitted if you have only one I2C  
#                                    device. type is either in (or vol)      
#                                    meaning voltage, fan meaning fan or temp
#                                    meaning temperature. n is number of the  
#                                    sensor. See /sys/bus/i2c/devices/ on    
#                                    your local computer.                    
#  kernel                            Kernel version                          
#  loadavg           (1), (2), (3)   System load average, 1 is for past 1    
#                                    minute, 2 for past 5 minutes and 3 for  
#                                    past 15 minutes.                        
#  machine                           Machine, i686 for example                
#  mails                             Mail count in mail spool. You can use    
#                                    program like fetchmail to get mails from
#                                    some server using your favourite        
#                                    protocol. See also new_mails.            
#  mem                               Amount of memory in use                  
#  membar            (height)        Bar that shows amount of memory in use  
#  memmax                            Total amount of memory                  
#  memperc                           Percentage of memory in use              
#  new_mails                         Unread mail count in mail spool.        
#  nodename                          Hostname                                
#  outlinecolor      (color)         Change outline color                    
#  pre_exec          shell command   Executes a shell command one time before
#                                    torsmo displays anything and puts output
#                                    as text.                                
#  processes                         Total processes (sleeping and running)  
#  running_processes                 Running processes (not sleeping),        
#                                    requires Linux 2.6                      
#  shadecolor        (color)         Change shading color                    
#  stippled_hr       (space),        Stippled (dashed) horizontal line        
#                    (height)        
#  swapbar           (height)        Bar that shows amount of swap in use    
#  swap                              Amount of swap in use                    
#  swapmax                           Total amount of swap                    
#  swapperc                          Percentage of swap in use                
#  sysname                           System name, Linux for example          
#  time              (format)        Local time, see man strftime to get more
#                                    information about format                
#  totaldown         net             Total download, overflows at 4 GB on    
#                                    Linux with 32-bit arch and there doesn't
#                                    seem to be a way to know how many times  
#                                    it has already done that before torsmo  
#                                    has started.                            
#  totalup           net             Total upload, this one too, may overflow
#  updates                           Number of updates (for debugging)        
#  upspeed           net             Upload speed in kilobytes                
#  upspeedf          net             Upload speed in kilobytes with one      
#                                    decimal                                  
#  uptime                            Uptime                                  
#  uptime_short                      Uptime in a shorter format              
#
#  seti_prog                         Seti@home current progress
#  seti_progbar      (height)        Seti@home current progress bar
#  seti_credit                       Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a  %b  %d}${alignr -25}${time %k:%M}

TEXT
${color blue}NYT ON: ${color lightgrey}${font size=15}${voffset -5}${time %A}${font} ${alignr 1150}${time %d/%m/%y}

${color lightgrey}$sysname $kernel $machine - $nodename

${color blue}INTEL ATOM ${color lightgrey}${freq_g cpu1} Ghz   ${font size=15}${voffset -4}${acpitemp}${font} °C
${color red}${cpugraph 000000 0077ff}
${color blue}CPU:${color lightgrey}${cpu} % ${color red}${cpubar}
${color blue}max käyttäjät      PID     CPU %   MEM %
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}

${color blue}RAM:${color lightgrey} $mem/$memmax $memperc % ${alignr}${color red}${membar 5,110}
${color blue}nax käyttäjät      PID     CPU %   MEM %
${color lightgrey} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}

${color blue}SSD:
${color blue}/root ${color lightgrey}${fs_used /} + ${fs_free /}${alignr}${color red}${fs_bar 5,120 /}
${color blue}/home ${color lightgrey}${fs_used /home} + ${fs_free /home}${alignr}${color red}${fs_bar 5,120 /home}

${color blue}AKKU:${color lightgrey} ${battery} ${color red}${battery_bar BAT0}

${color blue}WLAN OSOITE: ${color lightgrey}${addr wlan0}

${color blue}SISÄÄN:${color lightgrey} ${downspeed wlan0} /s $alignr${color blue} ULOS:${color lightgrey} ${upspeed wlan0} /s
${color red}${downspeedgraph wlan0 27,120 000000 0077ff 180} $alignr${color red}${upspeedgraph wlan0 27,120 000000 0077ff 25}
${color lightgrey}${totaldown wlan0}       $alignr${color lightgrey}${totalup wlan0}




[ylläpito on poistanut liitteen]
« Viimeksi muokattu: 18.11.10 - klo:18.37 kirjoittanut Hajakenttä »
DELL Latitude E6220 Xubuntu 20.04, DELL Latitude 5480 Xubuntu 22.04.
– Memento Vivere – Terv: Timo

Tha-Fox

  • Käyttäjä
  • Viestejä: 3315
  • Arch Linux && CentOS
    • Profiili
    • http://kettu.dy.fi
Vs: Conky
« Vastaus #177 : 19.11.10 - klo:11.53 »
Pitääkin tuosta värkätä taas oma versio. Olinkin hävittäny sen vanhan pohjan, joten kiitos Hajakenttä tästä!

Hajakenttä

  • Käyttäjä / moderaattori
  • Viestejä: 1547
    • Profiili
Vs: Conky
« Vastaus #178 : 19.11.10 - klo:12.51 »
Pitääkin tuosta värkätä taas oma versio. Olinkin hävittäny sen vanhan pohjan, joten kiitos Hajakenttä tästä!

Conky on seikkailu.  ;D
DELL Latitude E6220 Xubuntu 20.04, DELL Latitude 5480 Xubuntu 22.04.
– Memento Vivere – Terv: Timo

tobotti

  • Käyttäjä
  • Viestejä: 136
    • Profiili
Vs: Conky
« Vastaus #179 : 20.11.10 - klo:04.38 »
Conky on seikkailu.  ;D
tuo on kyllä tosi

oma acer aspire one:
One man alone can be pretty dumb sometimes, but for real bona fide stupidity, there ain't nothin' that can beat teamwork.