Kirjoittaja Aihe: Conky  (Luettu 99210 kertaa)

sami.tormanen

  • Käyttäjä
  • Viestejä: 42
    • Profiili
Vs: Conky
« Vastaus #100 : 30.11.09 - klo:15.18 »
Yleisön pyynnöstä laitampa conky fileeni näkösälle. Tuo säähommeli on toteutettu tällä: http://ubuntuforums.org/showthread.php?t=869328
Tuskimpa toimii tuomoisenaan kellään, joten säätämistä varmasti riittää. Jospa tuosta olisi jotain hyötyä kuitenkin.. ;)

Koodia: [Valitse]
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
double_buffer yes
alignment bottom_right
background no
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
use_xft yes
#xftfont DejaVu Sans Mono:size=10
xftfont URW Gothic L:size=9
gap_x 15
gap_y 60
minimum_size 250 5
#minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
own_window_type desktop
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
own_window_transparent yes
text_buffer_size 1024

TEXT
$alignc$sysname $kernel on $machine 
$hr
$alignc${color grey}PROSESSOR
${color grey}CPU1 $color ${freq_g cpu1}Ghz $alignr${cpu cpu1}%
${color grey}CPU2 $color ${freq_g cpu2}Ghz $alignr${cpu cpu2}%
#${color grey}GF8200 GPU CLOCK $color $alignr${execpi 60 nvidia-settings -t -q=GPUCurrentClockFreqs | cut -c1-3}Mhz
#${color grey}GF8200 MEM CLOCK $color $alignr${execpi 60 nvidia-settings -t -q=GPUCurrentClockFreqs | cut -c5-7}Mhz
$hr
$alignc${color grey}VOLTAGES
${color grey}Vcore $color ${alignr}${execi 5 sensors | grep 'Vcore Voltage' | cut -c17-24}
${color grey}+3.3 $color ${alignr}${execi 5 sensors | grep '+3.3 Voltage' | cut -c17-24}
${color grey}+5 $color ${alignr}${execi 5 sensors | grep '+5 Voltage' | cut -c17-24}
${color grey}+12 $color ${alignr}${execi 5 sensors | grep '+12 Voltage' | cut -c17-24}
$hr
$alignc${color grey}MEMORY
${color grey}RAM $color $alignr$memperc%
${color grey}SWAP $color $alignr$swapperc%
$hr
$alignc${color grey}FAN SPEEDS
${color grey}CPU FAN $color ${alignr}${execi 3 sensors | grep 'CPU FAN Speed' | cut -c17-26}
$hr
$alignc${color grey}TEMPERATURES
${color grey}CPU TEMP $color ${alignr}${execi 5 sensors | grep 'CPU Temperature' | cut -c21-22}°C
${color grey}MB TEMP $color ${alignr}${execi 20 sensors | grep 'MB Temperature' | cut -c21-22}°C
${color grey}GPU TEMP $color ${alignr}${execi 10 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C
${color grey}HDD TEMP $color ${alignr}${execi 120 nc localhost 7634 | cut -c27-28 ;}°C
$hr
${color grey}UPDATES AVAILABLE  $color ${alignr 8}${execpi 60 aptitude search "~U" | wc -l | tail | xargs}
$hr
$alignc${color grey}FILE SYSTEMS
${color grey} / $alignr$color${fs_used_perc /}%
${color grey} sda6 $alignr$color${fs_used_perc /media/sda6}%
${color grey} sda7 $alignr$color${fs_used_perc /media/sda7}%
$hr
$alignc${color grey}NETWORK
down:$color ${downspeed eth0}/s ${color grey} $alignr up $color ${upspeed eth0}/s
$hr
$alignc${color grey}PINGS
TeleWell.gateway$alignr${color}${texeci 5 sh -c "ping -c1 xxx.xxx.x.xxx | grep time= | cut -c53-" }
${color grey}sonera DNS server$alignr${color}${texeci 5 sh -c "ping -c1 xxx.xx.xxx.xx | grep time= | cut -c54-" }
${color grey}www.google.fi$alignr${color}${texeci 5 sh -c "ping -c1 www.google.fi | grep time= | cut -c76-" }
$hr
$alignc${color grey}WEATHER

${color grey}Temperature: $color${alignc}${execi 300 conkyForecast --location=FIXX0013 --datatype=HT}
${font}${color grey}Wind: $color${alignc}${execi 300 conkyForecast --location=FIXX0013  --datatype=WD --startday=0} / ${execi 300 conkyForecast --location=FIXX0013 --datatype=WS --startday=0}
${color grey}Humidity: $color${alignc}${execi 300 conkyForecast --location=FIXX0013  --datatype=HM --startday=0} ${goto 200}${voffset -24}${font ConkyWeather:size=28}${execpi 300 conkyForecast --location=FIXX0013 --datatype=WF}${font}
${color grey}Raining Possibility: $color${alignc}${execi 300 conkyForecast --location=FIXX0013  --datatype=PC --startday=0}

#${voffset 0}${font URW Gothic L:size=8}${alignc 34}${execpi 300 conkyForecast --location=FIXX0013 --datatype=DW --startday=1 --shortweekday} ${alignc 1}${execpi 300 conkyForecast --location=FIXX0013 --datatype=DW --startday=2 --shortweekday} ${alignc -36}${execpi 300 conkyForecast --location=FIXX0013 --datatype=DW --startday=3 --shortweekday} ${alignc -68}${execpi 300 conkyForecast --location=FIXX0013 --datatype=DW --startday=4 --shortweekday}
$color${voffset -1}${alignc 69}${font ConkyWeather:size=28}${execpi 300 conkyForecast --location=FIXX0013 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
$color${voffset 0}${font URW Gothic L:size=8}${alignc 8}${execpi 300 conkyForecast --location=FIXX0013 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 300 conkyForecast --location=FIXX0013 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -18}${execpi 300 conkyForecast --location=FIXX0013 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 300 conkyForecast --location=FIXX0013 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -45}${execpi 300 conkyForecast --location=FIXX0013 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 300 conkyForecast --location=FIXX0013 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 35}${execpi 300 conkyForecast --location=FIXX0013 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 300 conkyForecast --location=FIXX0013 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}

myllyjo

  • Käyttäjä
  • Viestejä: 144
    • Profiili
Vs: Conky
« Vastaus #101 : 06.12.09 - klo:13.31 »
Osaako kukaan kertoa, miksi conky "katoaa" työpöydältä ja ei tule takaisin kuin sammuttamalla ja uudelleen käynnistyksellä.
Se pysyy näkyvissä vaihtelevan ajan,,,miten milloinkin. Ei mitään selkeää mistä voisi päätellä häviämistä.

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 #102 : 06.12.09 - klo:13.50 »
Osaako kukaan kertoa, miksi conky "katoaa" työpöydältä ja ei tule takaisin kuin sammuttamalla ja uudelleen käynnistyksellä.

Ethän sammuta koko konetta vaan vain tapat conkyn prosessin?

Tuon katoamisen aiheuttaa varmaan Compiz. Conky jää työpöydän taustakuvan taakse piiloon. Auttaisiko .conkyrc:ssä
Koodia: [Valitse]
own_window_type overrideolettaen, että sinulla on siellä ennestään
Koodia: [Valitse]
own_window_type desktop

myllyjo

  • Käyttäjä
  • Viestejä: 144
    • Profiili
Vs: Conky
« Vastaus #103 : 07.12.09 - klo:06.06 »
Osaako kukaan kertoa, miksi conky "katoaa" työpöydältä ja ei tule takaisin kuin sammuttamalla ja uudelleen käynnistyksellä.

Ethän sammuta koko konetta vaan vain tapat conkyn prosessin?

Tuon katoamisen aiheuttaa varmaan Compiz. Conky jää työpöydän taustakuvan taakse piiloon. Auttaisiko .conkyrc:ssä
Koodia: [Valitse]
own_window_type overrideolettaen, että sinulla on siellä ennestään
Koodia: [Valitse]
own_window_type desktop

Joo, todellakin, en ajaa systeemiä alas vaan lopetan conky-prosessin.

Allaolevat rivit löytyy:
own_window yes
own_window_transparent yes
#own_window_type override
own_window_type desktop
#own_window_type normal #use this if you want a nice shadow to appear around conky

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 #104 : 07.12.09 - klo:08.35 »
Kokeilepa, mitä tapahtuu, jos kommentoit desktopin ja otat käyttöön overriden:
Koodia: [Valitse]
own_window_type override
#own_window_type desktop
Kolmas vaihtoehto on
Koodia: [Valitse]
own_window_type normal

vesurimies

  • Käyttäjä
  • Viestejä: 120
    • Profiili
Vs: Conky
« Vastaus #105 : 17.12.09 - klo:15.12 »
Nyt liimauduin tähän conkyn maailmaan ja kivaahan tämä on, etenkin kun laittaa mitään mistään tietämättään toisten jo valmiiksi tehtyjä asetuksia .conkyrc tiedostoon...

Mutta kysymystä:

Miten tuo conky jäi päälle kun suljin terminaalin, avasin .conkyrc tiedoston, copypastasin uuden koodin sinne ja tallensin? Ei muuttunut mikään, eli vanha asetus pätee edelleen...?

Kuinka siis toimia, että conkyn saa päälle ja pois, sekä kuinka saada se "boottaamaan" uusien asetusten kanssa?
---Hän joka ei tiedä mitään ja tietää ettei tiedä mitään, tietää enemmän kuin se, joka ei tiedä mitään eikä tiedä ettei tiedä mitään---

tommis

  • Käyttäjä
  • Viestejä: 418
    • Profiili
Vs: Conky
« Vastaus #106 : 17.12.09 - klo:15.49 »
Nyt liimauduin tähän conkyn maailmaan ja kivaahan tämä on, etenkin kun laittaa mitään mistään tietämättään toisten jo valmiiksi tehtyjä asetuksia .conkyrc tiedostoon...

Mutta kysymystä:

Miten tuo conky jäi päälle kun suljin terminaalin, avasin .conkyrc tiedoston, copypastasin uuden koodin sinne ja tallensin? Ei muuttunut mikään, eli vanha asetus pätee edelleen...?

Kuinka siis toimia, että conkyn saa päälle ja pois, sekä kuinka saada se "boottaamaan" uusien asetusten kanssa?

Koodia: [Valitse]
killall conkyTappaa conkyn.
Koodia: [Valitse]
conkyavaa conkyn.  ;D

Minna S

  • Käyttäjä
  • Viestejä: 1053
    • Profiili
Vs: Conky
« Vastaus #107 : 26.12.09 - klo:20.01 »
Laitetaanpas pitkästä aikaa conkyn kuva


Linux user # 406601

Immo

  • Käyttäjä
  • Viestejä: 776
  • Ammuin sheriffin.
    • Profiili
Vs: Conky
« Vastaus #108 : 26.12.09 - klo:20.15 »
Lainaus
Laitetaanpas pitkästä aikaa conkyn kuva

Hiano conky.
Hiano työpöytä.
 ;D
"there's two types of people. Those who are very good. And those who are dead. I'm very good"

Minna S

  • Käyttäjä
  • Viestejä: 1053
    • Profiili
Vs: Conky
« Vastaus #109 : 26.12.09 - klo:21.04 »
Kiitos. Nyt vasta huomasin, että tuo kalenterin alimmainen rivi ei ole kohdallaan. Mitenhän sen saisi omalle paikalleen?

Koodia: [Valitse]
# set to yes if you want Conky to be forked in the background
background no

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 1
# 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 black
default_shade_color black
default_outline_color black

# 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
${alignc} FEDORA 12
${color black}$sysname $kernel $machine - $nodename

${color black}Uptime:${color grey78} $uptime ${color black} Load:${color grey78} $loadavg

${color black}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} ${color grey78}${freq_dyn}Mhz
${color black}Usage:${color black} ${color grey78}${cpu}%

${alignc}${color red}${cpugauge 25 50}
#${color black}${cpugraph 000000 0077ff}
${color black}Proces:${color grey78} $processes  ${color black}Run:${color grey78} $running_processes ${color black}CPU:${color grey78} ${i2c temp 2}C${color grey78} ${color black}MB:${color grey78} ${i2c temp 1}C

${color black}RAM:${color grey78} $mem/$memmax - $memperc% ${alignr}${color black}${membar 5,110}
${color black}SWP:${color grey78} $swap/$swapmax - $swapperc% ${alignr}${color black}${swapbar 5,110}


${color black}${diskiograph 000000 0077ff}

${color black}Hard Disks:
${color black} Root ${color grey78}${fs_used /}/${fs_size /}${alignr}${color black}${fs_bar 5,120 /}
${color black} Home ${color grey78}${fs_used /home}/${fs_size /home}${alignr}${color black}${fs_bar 5,120 /home}

${color black}CPU Usage         PID     CPU%   MEM%
${color grey78} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color black} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color black} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color black}Mem Usage
${color grey78} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color black} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color black} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

${color black}Network: ${color grey78}${addr eth0}

${color black}Down:${color grey78} ${downspeed eth0} k/s $alignr${color black} Up:${color grey78} ${upspeed eth0} k/s
${color black}${downspeedgraph eth0 27,120 000000 0077ff 180} $alignr${color black}${upspeedgraph eth0 27,120 000000 0077ff 25}
${color grey78}${totaldown eth0}           $alignr${color grey78}${totalup eth0}

${color black}${alignc}${font Monospace:size=7}${time %A}:${alignr 1150}${time %d/%m/%y}
${alignc}${font Monospace:size=13}${time %H:%M}
${font Monospace:size=4}${voffset -4}------------------------------------------------------------------------------------
${alignc}${font Monospace:size=8}${execi 5000 cal}
${alignc}${font Monospace:size=4}${voffset -18}-----------------------------------------------------------------------------------

Linux user # 406601

aksy

  • Käyttäjä
  • Viestejä: 2
    • Profiili
Vs: Conky
« Vastaus #110 : 26.12.09 - klo:21.17 »
Kuten pyydetty  ;)

Koodia: [Valitse]
# Conky sample configuration
#
# the list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.

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

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-
# Use Xft?
use_xft yes

# Set conky on the bottom of all other applications
on_bottom yes

# Xft font when Xft is enabled
xftfont Luxi Sans:size=9

# Text alpha when using Xft
xftalpha 0.5

# Print everything to stdout?
# out_to_console no

# MPD host/port
# mpd_host localhost
# mpd_port 6600
# mpd_password tinker_bell

# Print everything to console?
# out_to_console no

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 2.0

# 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_type override
# Use pseudo transparency with own_window?
own_window_transparent yes

# If own_window_transparent is set to no, you can set the background colour here
own_window_colour hotpink

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

# Minimum size of text area
minimum_size 350 5

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
#stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

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

# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
alignment top_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 12
gap_y 130

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

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

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no


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

#   mldonkey_hostname     Hostname for mldonkey stuff, defaults to localhost
#   mldonkey_port         Mldonkey port, 4001 default
#   mldonkey_login        Mldonkey login, default none
#   mldonkey_password     Mldonkey password, default none

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

# Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16)
#min_port_monitors 16

# Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)
#min_port_monitor_connections 256

# 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

# stuff after 'TEXT' will be formatted on screen

TEXT
${offset 100}Sony Vaio $nodename - $sysname $kernel ${alignr}


System
${offset 100}$color CPU Usage:$color $cpu% ${cpubar}
${offset 100}$color RAM Usage:$color $mem/$memmax - $memperc% ${membar}
${offset 100}${alignr}$color Cached:$color $cached - $color Buffers:$color $color$buffers
${offset 100}$color Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar}



$color Networking
${offset 100}$color Down: $color ${downspeed wlan0} k/s   $color Up: $color    ${upspeed wlan0} k/s
${offset 100}$color Total: $color ${totaldown wlan0}   $color Total: $color ${totalup wlan0}



Power and Temp
${offset 100}Fanspeed:$color $sony_fanspeed
${offset 100}$color${exec acpi -t}
${offset 100}$color${exec acpi -b}
${offset 100}Uptime: $uptime

Ja kuva: http://koti.mbnet.fi/akson/tyopoyta.png
Huom! Conkyn tausta on siis tehty taustakuvaan.

Taro Turtiainen

  • Käyttäjä
  • Viestejä: 579
    • Profiili
    • Taro Turtiainen
Vs: Conky
« Vastaus #111 : 26.12.09 - klo:21.21 »
Kiitos. Nyt vasta huomasin, että tuo kalenterin alimmainen rivi ei ole kohdallaan. Mitenhän sen saisi omalle paikalleen?

Koodia: [Valitse]
# set to yes if you want Conky to be forked in the background
background no

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 1
# 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 black
default_shade_color black
default_outline_color black

# 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
${alignc} FEDORA 12
${color black}$sysname $kernel $machine - $nodename

${color black}Uptime:${color grey78} $uptime ${color black} Load:${color grey78} $loadavg

${color black}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} ${color grey78}${freq_dyn}Mhz
${color black}Usage:${color black} ${color grey78}${cpu}%

${alignc}${color red}${cpugauge 25 50}
#${color black}${cpugraph 000000 0077ff}
${color black}Proces:${color grey78} $processes  ${color black}Run:${color grey78} $running_processes ${color black}CPU:${color grey78} ${i2c temp 2}C${color grey78} ${color black}MB:${color grey78} ${i2c temp 1}C

${color black}RAM:${color grey78} $mem/$memmax - $memperc% ${alignr}${color black}${membar 5,110}
${color black}SWP:${color grey78} $swap/$swapmax - $swapperc% ${alignr}${color black}${swapbar 5,110}


${color black}${diskiograph 000000 0077ff}

${color black}Hard Disks:
${color black} Root ${color grey78}${fs_used /}/${fs_size /}${alignr}${color black}${fs_bar 5,120 /}
${color black} Home ${color grey78}${fs_used /home}/${fs_size /home}${alignr}${color black}${fs_bar 5,120 /home}

${color black}CPU Usage         PID     CPU%   MEM%
${color grey78} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color black} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color black} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color black}Mem Usage
${color grey78} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color black} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color black} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

${color black}Network: ${color grey78}${addr eth0}

${color black}Down:${color grey78} ${downspeed eth0} k/s $alignr${color black} Up:${color grey78} ${upspeed eth0} k/s
${color black}${downspeedgraph eth0 27,120 000000 0077ff 180} $alignr${color black}${upspeedgraph eth0 27,120 000000 0077ff 25}
${color grey78}${totaldown eth0}           $alignr${color grey78}${totalup eth0}

${color black}${alignc}${font Monospace:size=7}${time %A}:${alignr 1150}${time %d/%m/%y}
${alignc}${font Monospace:size=13}${time %H:%M}
${font Monospace:size=4}${voffset -4}------------------------------------------------------------------------------------
${alignc}${font Monospace:size=8}${execi 5000 cal}
${alignc}${font Monospace:size=4}${voffset -18}-----------------------------------------------------------------------------------


Tuossa näyttää olevan tasaus keskelle.
VASEMMISTOLIITTO - RIKKAUTTA JOLLA ON ARVOA

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

Minna S

  • Käyttäjä
  • Viestejä: 1053
    • Profiili
Vs: Conky
« Vastaus #112 : 26.12.09 - klo:21.43 »
Mutta jos otan tuosta tuon tasauksen pois, niin koko kalenterin paikka siirtyy. Saako sen koko kalenterin jotenkin keskelle niin, että kaikki rivit on ohdallaan?

Linux user # 406601

nore

  • Käyttäjä
  • Viestejä: 302
    • Profiili
Vs: Conky
« Vastaus #113 : 28.12.09 - klo:08.58 »
Mutta jos otan tuosta tuon tasauksen pois, niin koko kalenterin paikka siirtyy. Saako sen koko kalenterin jotenkin keskelle niin, että kaikki rivit on kohdallaan?
Eipä oikein muuten kuin niin, että teet skriptin, joka tulostaa kalenterin rivi kerrallaan halutulla tavalla tasattuna. Kun cal-komento tulostaa kalenterin, se tekee tasaukset ja tekstin kohdistukset välilyönneillä. Siksi kalenteri pitää tulostaa tasavälisellä fontilla, kuten olet tehnytkin. Huomaathan, että teksti joulukuu 2009 on myös poskellaan? Rivin alussa on calin tekemiä välilyöntejä ja alignc tasaa koko rivin väleineen kaikkineen.

Yksinkertaisin ratkaisu olisi tehdä kalenterille oma conky-tiedosto. Paikka voisi olla tässä asettelussa näytön oikea alareuna. Kun teet kalenterin conky-ikkunasta kapeamman kuin pääikkunasta, saat kalenterin kohdistettua haluttuun kohtaan.

Olen muovaillut kahden kuukauden (kuluva ja seuraava) kalenterille tämmöisen skriptin (cal2.sh):
Koodia: [Valitse]
PVMR=`date +%_d`
cal | sed '/./!d' | sed 's/^/ /' | sed 's/$/ /' | sed /" $PVMR "/s/" $PVMR "/" "'${color #996600}'"$PVMR"'${color #000000}'" "/ | sed -e 's/^ //g'
cal -3 | fold -w 22 | sed -n '3~3p'

Tätä kutsutaan conkysta (.conky_calendar):
Koodia: [Valitse]
${execp sh ~/cal2.sh}
« Viimeksi muokattu: 28.12.09 - klo:09.00 kirjoittanut nore »

Minna S

  • Käyttäjä
  • Viestejä: 1053
    • Profiili
Vs: Conky
« Vastaus #114 : 29.12.09 - klo:16.40 »
Eli miten tuo käytännössä tapahttuu, en osaa laittaa näkyviin kahta conkya, vaikka se tuossa onkin neuvottu :D mutta en vain tajua :D Nuo 2 tiedostoa sain tehtyä mutta en saa kalenteria käynnistymään.
Hyvältä systeemiltä vaikuttaa.

Linux user # 406601

nore

  • Käyttäjä
  • Viestejä: 302
    • Profiili
Vs: Conky
« Vastaus #115 : 29.12.09 - klo:21.30 »
Eli miten tuo käytännössä tapahttuu

Toisen conkyn voi avata näin:
Koodia: [Valitse]
conky -c tiedostonimi
Tässä ketjussa on esitelty useita monen conkyn virityksiä, katso mallia vaikkapa Piraijan skriptistä, jossa avataan kolme conky-ikkunaa.

Koska sinua kiinnostaa conkyn tarkka asettelu, suosittelen lukemaan conkyn wikin lisäksi Conky Hardcore-sivustoa. Tutki, miten käytetään komentoja goto, offset ja voffset sekä lista conkyn muuttujista.
« Viimeksi muokattu: 29.12.09 - klo:21.32 kirjoittanut nore »

Daih

  • Käyttäjä
  • Viestejä: 14
    • Profiili
Vs: Conky
« Vastaus #116 : 01.01.10 - klo:04.23 »
Tässäpä minun vielä kehityksessä oleva conky. (vasen puoli uupuu aika pahasti)

Koodia: [Valitse]
# Conky pohjimmaiseksi
on_bottom yes

# Käytetään doublebufferia
double_buffer yes
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar
own_window_type override

minimum_size 300
maxium_size 300

# Fontti
use_xft yes
xftfont DejaVu Sans:size=9
 
# Päivitysnopeus
update_interval 1.0

# Perusväri tekstille
default_color purple
 
# Sijainti näytöllä
alignment top_right

gap_y 0
gap_x 5

# Näytölle tuleva osa
TEXT
$color

${color maroon}JÄRJESTELMÄ ${hr 2}$color
Kernel: $kernel $machine
Päälläoloaika: $uptime
 
${color maroon}PROSESSORI ${hr 2}$color
Kellotaajuus: ${freq}MHz
Käyttö:          ${cpu cpu0}%  ${color maroon}${cpubar 9 cpu0}$color
${color maroon}${cpugraph cpu0 000000 ffffff}$color
Ydin:             Käyttö%
Ydin 1:          ${cpu cpu1}%  ${color maroon}${cpubar 9 cpu1}$color
Ydin 2:          ${cpu cpu2}%  ${color maroon}${cpubar 9 cpu2}$color
Ydin 3:          ${cpu cpu3}%  ${color maroon}${cpubar 9 cpu3}$color
Ydin 4:          ${cpu cpu4}%  ${color maroon}${cpubar 9 cpu4}$color
Ydin 5:          ${cpu cpu5}%  ${color maroon}${cpubar 9 cpu5}$color
Ydin 6:          ${cpu cpu6}%  ${color maroon}${cpubar 9 cpu6}$color
Ydin 7:          ${cpu cpu7}%  ${color maroon}${cpubar 9 cpu7}$color
Ydin 8:          ${cpu cpu7}%  ${color maroon}${cpubar 9 cpu8}$color

${color maroon}MUISTI ${hr 2}$color
Tyyppi:          Vapaana%:
RAM:              $memperc% ${color maroon}${membar 6}$color
Swap:            $swapperc% ${color maroon}${swapbar 6}$color

${color maroon}KIINTOLEVYT ${hr 2}$color
Osio:              Vapaana%:
/                     ${fs_free_perc /}% ${color maroon}${fs_bar 6 /}$color
/Home            ${fs_free_perc /home}% ${color maroon}${fs_bar 6 /home}$color

${color maroon}VERKKO ETH0 (${addr eth0}) ${hr 2}$color
Lataa: $color${downspeed eth0} ${alignr}Lähettää: ${upspeed eth0}
${color maroon}${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph eth0
25,140 000000 00ff00}$color
Yhteensä: ${totaldown eth0} ${alignr}Yhteensä: ${totalup eth0}
 
${color maroon}VERKKO ETH1 (${addr eth1}) ${hr 2}$color
Lataa: $color${downspeed eth1} ${alignr}Lähettää: ${upspeed eth1}
${color maroon}${downspeedgraph eth1 25,140 000000 ff0000} ${alignr}${upspeedgraph eth1
25,140 000000 00ff00}$color
Yhteensä: ${totaldown eth1} ${alignr}Yhteensä: ${totalup eth1}

http://img13.imageshack.us/img13/5154/typyt.th.png

Sitten vielä, miten voi luoda yksinkertaisesti kansion sisällön listauksen Conkyyn?

Eetu_

  • Käyttäjä
  • Viestejä: 261
    • Profiili
Vs: Conky
« Vastaus #117 : 01.01.10 - klo:14.53 »
Miten Conkyn saisi hakemaan skriptin tulosteen viiden sekunnin välein ja tulostamaan työpöydälle? Eli siis se suorittaisi /home/eetu/Spotify-np/spotify_playing.sh ja tulostaisi sen työpöydälle.

nore

  • Käyttäjä
  • Viestejä: 302
    • Profiili
Vs: Conky
« Vastaus #118 : 01.01.10 - klo:19.40 »
Sitten vielä, miten voi luoda yksinkertaisesti kansion sisällön listauksen Conkyyn?
Kansiosta tiedosto / rivi:
Koodia: [Valitse]
${exec ls /home/minä/jokuhakemisto | sed -n p}

nore

  • Käyttäjä
  • Viestejä: 302
    • Profiili
Vs: Conky
« Vastaus #119 : 01.01.10 - klo:19.52 »
Miten Conkyn saisi hakemaan skriptin tulosteen viiden sekunnin välein ja tulostamaan työpöydälle? Eli siis se suorittaisi /home/eetu/Spotify-np/spotify_playing.sh ja tulostaisi sen työpöydälle.

Koodia: [Valitse]
${execi 5  /home/eetu/Spotify-np/spotify_playing.sh}
$exec suorittaa komennon aina, kun conky päivittyy, $execi annetun aikavälin jälkeen. $texeciä käytetään hitaille komennoille; päivitysvälin pitäisi olla pitempi kuin komennon suorittamiseen tarvittava aika. Katso
http://conky.sourceforge.net/variables.html

MUOKS: Päivittyyhän conky tiuhempaan kuin viiden sekunnin välein? $execin aikaväli ei voi olla lyhyempi kuin update_interval.
« Viimeksi muokattu: 01.01.10 - klo:19.57 kirjoittanut nore »