Kirjoittaja Aihe: Conky  (Luettu 93138 kertaa)

J_Eee

  • Vieras
Vs: Conky
« Vastaus #180 : 09.01.11 - klo:09.55 »
Mitenkäs saisin Conkyn näyttämään mitä Spotifyssä soi?
Aiemmin tuo oli winen kautta asennettuna jolloin löysin sopivat loitsut googlella mutta
nyt kun asensin tuon natiivin Linux -Spotifyn niin loppui jo googletustaidotkin :)

J_Eee

  • Vieras
Vs: Conky
« Vastaus #181 : 12.01.11 - klo:08.53 »

myllyjo

  • Käyttäjä
  • Viestejä: 144
    • Profiili
Vs: Conky
« Vastaus #182 : 12.01.11 - klo:14.21 »
Tällainen tällä hetkellä

myllyjo

[ylläpito on poistanut liitteen]
« Viimeksi muokattu: 12.01.11 - klo:14.25 kirjoittanut 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

uhappo

  • Käyttäjä
  • Viestejä: 1029
  • Sissos
    • Profiili
    • Urkin sivut
Vs: Conky
« Vastaus #183 : 12.01.11 - klo:19.10 »
Tossa mun conky


Ollu jo varmaan pari vuotta sama
HP i7-pohjainen desktop ja itsekasattu i7-pohjainen desktop, uusin ubuntu 64bit
Ubuntu since 2008 Feb

myllyjo

  • Käyttäjä
  • Viestejä: 144
    • Profiili
Vs: Conky
« Vastaus #184 : 12.01.11 - klo:22.05 »
Tossa mun conky


Ollu jo varmaan pari vuotta sama

Hieno on ja myllyssäkin piisaa tehojakin "rossuista" päätellen

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

uhappo

  • Käyttäjä
  • Viestejä: 1029
  • Sissos
    • Profiili
    • Urkin sivut
Vs: Conky
« Vastaus #185 : 13.01.11 - klo:01.32 »
Tossa mun conky


Ollu jo varmaan pari vuotta sama

Hieno on ja myllyssäkin piisaa tehojakin "rossuista" päätellen

myllyjo

Heh, no tuossa on kusetusta sen verran että i7-prossu on ja kyllähän se HT tekee conkyssä vähän niitä "extroja"... Mut tykänny oon koneesta, HP:n valmis paketti niin kaikki on vaan niin smooth. Paitsi TV-kortti ei toimi, se on niin OEM-speciaali ettei siihen oo kukaan tehny ajureita. Adios!
HP i7-pohjainen desktop ja itsekasattu i7-pohjainen desktop, uusin ubuntu 64bit
Ubuntu since 2008 Feb

samihs72

  • Käyttäjä
  • Viestejä: 841
    • Profiili
Vs: Conky
« Vastaus #186 : 14.01.11 - klo:21.57 »
Moi! Mulla käynnistyy conky hienosti järjestelmän käynnistyksen yhteydessä mutta jos avaan esimerkiksi selaimen, niin joskus selaimen sulkemisen jälkeen menee välillä tosi pitkään ennenkuin conky palaa työpöydälle. Se kyllä tulee takaisin mutta kestää turhan kauan. Saako conkyn "hitsattua" jotenkin työpöytään kiinni, ettei se katoa välillä  ??? Tässä mun .conkyrc -tiedosto

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 no

# 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
own_window_hints below

# Xft font when Xft is enabled
xftfont Sans:style=Bold:size=10

# Text alpha when using Xft
xftalpha 1

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

# 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_hints undecorated,below,skip_taskbar
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 280 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 5

# border width
border_width 10

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

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

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

#   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
${color white}           ${time %k:%M %a %b %d}
${color white}$stippled_hr
${color white}$nodename - $sysname $kernel on $machine
${color white}CPU:${color white} ${freq} ${color white}mhz / Lämpötila:${color white}$acpitemp ${color white}C
${color white}CPU0 ${cpu cpu0}% ${cpubar cpu0}
${color white}CPU1 ${cpu cpu1}% ${cpubar cpu1}
${color white}Disk I/O:${color white} ${diskio}    ${color white}Uptime:${color white} $uptime

${color white}RAM käyttö:${color white} $mem of $memmax ${color white}- ${color white}$memperc%
${color white}Swap käyttö:${color white} $swap of $swapmax ${color white}- ${color white}$swapperc%

Käytetty levytila:
Home:
${fs_used /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
Root:
${fs_used /root}/${fs_size /root} ${alignr}${fs_bar 8,60 /root}

#${color white}Root: : ${color white}${fs_used /} of ${fs_size /}
#${color white}Home: ${color white}${fs_used /home} of ${fs_size /home}

${color white} Nimi       $alignr   PID     CPU%   MEM%
${color white} ${top name 1}$alignr  ${top pid 1} ${top cpu 1} ${top mem 1}
${color white} ${top name 2}$alignr  ${top pid 2} ${top cpu 2} ${top mem 2}
${color white} ${top name 3}$alignr  ${top pid 3} ${top cpu 3} ${top mem 3}
${color white} ${top name 4}$alignr  ${top pid 4} ${top cpu 4} ${top mem 4}
${color white} ${top name 5}$alignr  ${top pid 5} ${top cpu 5} ${top mem 5}

${color white}IN:${downspeed wlan0} k/s ${color white}${downspeedgraph wlan0 20,125 ff0000 0000ff}
${color white}OUT:${upspeed wlan0} k/s ${color white}${upspeedgraph wlan0 20,125 0000ff ff0000}
${color white}Yhteydet: ${tcp_portmon 1 65535 count}
${color white}Netstat
${color white}${execi 2 netstat -e -p -t | grep ESTABLISHED | cut -c45-68,80-86,102-140}
Desktop:HP Pavilion h8-1111sc Core i5-2320/8 GB/1.5 TB/GeForce GT 530 2 GB/Windows 10 64-bit,  Ubuntu 22.04 Jammy Jellyfish
RPi 4B Nextcloudpi

samihs72

  • Käyttäjä
  • Viestejä: 841
    • Profiili
Vs: Conky
« Vastaus #187 : 16.01.11 - klo:09.10 »
Moi! Ongelmani on juuri tällainen, kuten täällä

Mitenköhän tuon Conkyn saisi pysymään desktopissa selaimen sulkemisen tai työpöytä-nappulan painamisen jälkeenkin? Pysyykö Conky muilla työpöydällä kaikissa tilanteissa?
Desktop:HP Pavilion h8-1111sc Core i5-2320/8 GB/1.5 TB/GeForce GT 530 2 GB/Windows 10 64-bit,  Ubuntu 22.04 Jammy Jellyfish
RPi 4B Nextcloudpi

Hajakenttä

  • Käyttäjä / moderaattori
  • Viestejä: 1547
    • Profiili
Vs: Conky
« Vastaus #188 : 17.01.11 - klo:15.38 »
Moi! Ongelmani on juuri tällainen, kuten täällä

Mitenköhän tuon Conkyn saisi pysymään desktopissa selaimen sulkemisen tai työpöytä-nappulan painamisen jälkeenkin? Pysyykö Conky muilla työpöydällä kaikissa tilanteissa?

Varmista ensin, että conky käynnistyy työpöydän päälle, eikä alle. Se tehdään käynnistettävien ohjelmien asetukseen: >järjestelmä >asetukset >käynnistettävät ohjelmat >lisää.... syötä lootaan "conky" ja vaikka "systeemin monitori" ja komennoksi sen lootaan:
Koodia: [Valitse]
sh -c "sleep 12 && exec conky"Siinä tuo 12 on sekuntimäärä, jota voit tarvittaessa muuttaa. Minulla sen on oltava noin pitkä viive, jotta viestiyhteydet omassa wlan verkossa ehtivät valmistua ennen conkyn päällelaittoa kun siihen noudetaan mm. tieto ip-osoitteesta.

Toinen asia pitää kokeilla:
Etsi .conkyrc tiedostosta kohta:

Lainaus
own_window_type override
#own_window_type desktop
#own_window_type normal

Jos niitä kaikkia ei ole niin kirjoita ne sinne. Sitten laitat kommenttimerkin # kahteen niistä, mutta yhteen et laita, ja talletat tiedoston. Jos ei toimi koitat toista jne... Siis override, tai desktop, tai normal. Jollain noista pitäisi pelata. Minulla toimii tuolla overridella, siitä siis kommentti pois ja muihin kommentti. Muilla on toiminut toisinkin. En tiedä mikä sen määrää, ehkä joku näytönohjaimen juttu?

Onnea harrastukseen! ;D

EDIT: Korjasin syntaxia.
« Viimeksi muokattu: 17.01.11 - klo:15.52 kirjoittanut Hajakenttä »
DELL Latitude E6220 Xubuntu 20.04, DELL Latitude 5480 Xubuntu 22.04.
– Memento Vivere – Terv: Timo

samihs72

  • Käyttäjä
  • Viestejä: 841
    • Profiili
Vs: Conky
« Vastaus #189 : 20.01.11 - klo:20.26 »
Koodia: [Valitse]
sh -c "sleep 12 && exec conky"Siinä tuo 12 on sekuntimäärä, jota voit tarvittaessa muuttaa. Minulla sen on oltava noin pitkä viive, jotta viestiyhteydet omassa wlan verkossa ehtivät valmistua ennen conkyn päällelaittoa kun siihen noudetaan mm. tieto ip-osoitteesta.
Tämä auttoi, nyt toimii! Kiitos!  :)
Desktop:HP Pavilion h8-1111sc Core i5-2320/8 GB/1.5 TB/GeForce GT 530 2 GB/Windows 10 64-bit,  Ubuntu 22.04 Jammy Jellyfish
RPi 4B Nextcloudpi

timbba

  • Käyttäjä
  • Viestejä: 1413
    • Profiili
Vs: Conky
« Vastaus #190 : 21.01.11 - klo:09.01 »
Haa, löytyipä ohje.



Tuolta -> http://getsatisfaction.com/spotify/topics/dbus_interface_for_playback_would_rock



Et malttaisi jakaa tuota sun conky setuppia? Ei jaksaisi itse alkaa puukottaa samantyylistä, kun tuossa olisi melko paljon sellaista mitä itsekin haluaisin siihen..  :)

tobotti

  • Käyttäjä
  • Viestejä: 136
    • Profiili
Vs: Conky
« Vastaus #191 : 21.01.11 - klo:10.47 »
Haa, löytyipä ohje.



Tuolta -> http://getsatisfaction.com/spotify/topics/dbus_interface_for_playback_would_rock



Et malttaisi jakaa tuota sun conky setuppia? Ei jaksaisi itse alkaa puukottaa samantyylistä, kun tuossa olisi melko paljon sellaista mitä itsekin haluaisin siihen..  :)

..ja linkki taustakuvaan myös, kiitos... :D
One man alone can be pretty dumb sometimes, but for real bona fide stupidity, there ain't nothin' that can beat teamwork.

J_Eee

  • Vieras
Vs: Conky
« Vastaus #192 : 21.01.11 - klo:19.58 »
Voisin laittaa juu, vika vaan siinä että työpöytä, conky ja koko distro vaihtunut edellisestä. Ei voi muistaa enää noin kauas tarkasti.  :D

Taustakuva -> http://wallbase.net/wallpaper/799493

Säätiedotus on screenlet -> http://gnome-look.org/content/show.php/Wide+weather?content=77168

Kellon fontti on Wargames -> sudo apt-get install ttf-dustin

Loput on pöllitty tästä ketjusta viisaammilta, ja lisätty joku googlella löydetty spotify -logo.

Hajakenttä

  • Käyttäjä / moderaattori
  • Viestejä: 1547
    • Profiili
Vs: Conky
« Vastaus #193 : 31.01.11 - klo:19.30 »
Conky aiheuttaa pätkimistä.

Huomasin eräällä, jo vähän vanhanaikaisella koneella: Asus A6R, Celeron, 2Gt ram, ATI radeon 200M, Ubuntu 10.04, Firefox, että varsinkin videota katsoessa ihan tiedostostakin, tai dvd-levyltä, eikä verkon yli, tapahtuu pahoja katkoksia. Tavallisessa nettiselauksessakin tapahtuu hassuja hiiren hetkellisiä jäätymisiä.

Häikkää rajatessa viimein huomasin syylliseksi Conkyn. Se on kohtuullisen paljon elementtejä sisältävä, mutta aivan samanlainen toisessa koneessa (Atom, 1Gt ram,) ei tee mitään haittaa.

Kun Conky kytketään pois (killall conky) häiriö häviää. Vaikka paljonkin raskaita ohjelmia laitetaan samalla neljään työtilaan, ei samaa pätkimistä tule.

Pätkiminen ei ole missään synkassa Conkyn päivitysnopeuteen.

Kun taas Conky laitetaan pelamaan, mutta kommentoidaan (#) kaikki elementit, ja sitten yksitellen niitä kommentteja poistetaan, saa laittaa minkä tahansa elementin, kunhan niitä ei laita liikaa. Puolen kymmentä voi olla, vaikkapa kernelin nimi, käyttäjän nimi, kellotaajuus ja prosessorin lämpötila. Jos vielä jotain lisää niin sitten lisääntyy pätkiminenkin sitä enemmän mitä enemmän kirjoitusta Conkyyn lisää.

Laitoin lopulta conkyn aivan suunniteluulla tavallansa täydessä mitassaan, mutta poistin sen käynnistyvien ohjelmien listasta ja laitan tarvitessa päätteellä päälle ja pois.

Ei taida olla sen koneen vehkeitä tuo Conky.
DELL Latitude E6220 Xubuntu 20.04, DELL Latitude 5480 Xubuntu 22.04.
– Memento Vivere – Terv: Timo

Dost

  • Käyttäjä
  • Viestejä: 725
    • Profiili
Vs: Conky
« Vastaus #194 : 18.02.11 - klo:05.27 »
Ongelma on että koko rivi tekee pientä liikettä (<--->) kun esimerkiksi ethernet up/down, tai CPU luvut muuttuvat. Miten saisi varattua tilaa muuttuville luvuille, jotta rivi pysyisi leveydessä aina samana?

Koodia: [Valitse]
alignment tr
background yes
update_interval 0.5
double_buffer yes
override_utf8_locale yes

use_xft yes
xftfont :size=8
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 #ffa800
default_outline_color #ffa800
default_shade_color #ffa800
# font 6x10
gap_x 3
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
${alignr}${color #ffa800}System name: ${color white}$nodename ${color dim grey}| ${color #ffa800}Kernel: ${color white}$sysname $kernel ${color dim grey}| ${color #ffa800}Uptime: ${color white}$uptime_short ${color dim grey}|${color #ffa800}CPU: ${color white}$cpu%  ${color dim grey}| ${color #ffa800}RAM: ${color white}$memperc% ${color dim grey}| ${color #ffa800}Up:${color white}${upspeed eth0}${color dim grey}- ${color #ffa800}Down:${color white}${downspeed eth0} ${color dim grey}${color dim grey}| ${color white}${time %A %d.%m.%Y   %H:%M}

J_Eee

  • Vieras
Vs: Conky
« Vastaus #195 : 18.02.11 - klo:06.03 »
Ei mitään uutta eikä ihmeellistä mutta tuo kello on kiva.




Koodia: [Valitse]
#  Settings

background yes
use_xft yes
xftfont sans:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 300
maximum_width 540
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color black
default_shade_color 000000
default_outline_color d9d7d6
alignment top_right
gap_x 48
gap_y 68
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

#  Output

TEXT
${font Lohit Tamil:size=96}${time %H}${voffset -46}${font Lohit Tamil:bold:size=38}${time :%M}${voffset -18}${font Lohit Tamil:bold:size=18}${time %S} 




${voffset -16}${alignr}${font sans:size=22}${time %A} ${font}

     
${voffset -8}${alignr}${time %d %B %Y}  ${font}
     


$alignc S Y S T E M    I N F O
${color Tan1}${stippled_hr}  ${color}
Distro:${alignr}${pre_exec cat /etc/issue.net}
Kernel:${alignr}$kernel
Uptime:$alignr$uptime
RAM:$alignr$mem/$memmax
Disk usage:$alignr${fs_used /}/${fs_size /}
CPU usage:$alignr${cpu cpu0}%


$alignc H I G H E S T   C P U
${color Tan1}${stippled_hr} ${color}
${top name 1}${alignr}${top cpu 1} %
${top name 2}${alignr}${top cpu 2} %
${top name 3}${alignr}${top cpu 3} %
${top name 4}${alignr}${top cpu 4} %
${top name 5}${alignr}${top cpu 5} %


$alignc H I G H E S T   M E M
${color Tan1}${stippled_hr} ${color}
${top_mem name 1}${alignr}${top mem 1} %
${top_mem name 2}${alignr}${top mem 2} %
${top_mem name 3}${alignr}${top mem 3} %
${top_mem name 4}${alignr}${top mem 4} %
${top_mem name 5}${alignr}${top mem 5} %


$alignc I N T E R N E T
${color Tan1}${stippled_hr} ${color}
$nodename:$alignr ${addr eth0}

Up: ${upspeed eth0} /s ${alignr}${upspeedgraph eth0 8,60 F57900 FCAF3E}
Down: ${downspeed eth0} /s ${alignr}${downspeedgraph eth0 8,60 F57900


Hajakenttä

  • Käyttäjä / moderaattori
  • Viestejä: 1547
    • Profiili
Vs: Conky
« Vastaus #196 : 18.02.11 - klo:18.17 »
Ongelma on että koko rivi tekee pientä liikettä (<--->) kun esimerkiksi ethernet up/down, tai CPU luvut muuttuvat. Miten saisi varattua tilaa muuttuville luvuille, jotta rivi pysyisi leveydessä aina samana?

Koodia: [Valitse]
alignment tr
background yes
update_interval 0.5
double_buffer yes
override_utf8_locale yes

use_xft yes
xftfont :size=8
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 #ffa800
default_outline_color #ffa800
default_shade_color #ffa800
# font 6x10
gap_x 3
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
${alignr}${color #ffa800}System name: ${color white}$nodename ${color dim grey}| ${color #ffa800}Kernel: ${color white}$sysname $kernel ${color dim grey}| ${color #ffa800}Uptime: ${color white}$uptime_short ${color dim grey}|${color #ffa800}CPU: ${color white}$cpu%  ${color dim grey}| ${color #ffa800}RAM: ${color white}$memperc% ${color dim grey}| ${color #ffa800}Up:${color white}${upspeed eth0}${color dim grey}- ${color #ffa800}Down:${color white}${downspeed eth0} ${color dim grey}${color dim grey}| ${color white}${time %A %d.%m.%Y   %H:%M}

Ainakin tuo päivitysväli (update_interval 0.5) on aika lyhyt 0,5 sek, minulla on 10 sek, hitaampi voisi rauhoittaa. Kun koko conky on yhdellä pitkällä rivillä se rivin pituus elää. Alussa on ${alignr} joten se keskittyy oikealle ja oikeassa päässä on eniten pituutta muuttavia elementtejä. Kävisikö ${alignc}, jolloin se teksti keskittyy ja pituuden muutos rivin molemmissa päissä on vähäisempi. Tai sen ${alignr} komennon laittaminen vasta ensimmäisen ${color #ffa800}Up:${color white}${upspeed eth0}elementin eteen, jolloin se pituuden vaihtelu tulee siihen kohtaan, tai jättäminen kokonaan pois, jolloin pituus vaihtelee oikeassa päässä, joka on luonnollisemman näköistä ja vähäisempääkin, koska ne muuttuvat elementiit on siellä oikealla. En ole itse oppinut mitään sarkaimia tai sisennyksiä käyttämään, ehkä joku osaa senkin.

EDIT:
Haa... taisinpa keksiä: Noita elementtien paikkoja voi määrätä ${goto 200} komennolla vaikka jokaisen erikseen. 200 on tuossa vain esimerkkinä. Se määrää montako pikseliä mennään lähtöpisteestä oikealle sitä elementtiä sijoittamaan. Kokeilemalla löytyy oikeat paikat aika helposti, tai laskemalla, jos vaikka kirjaimen leveys on 5 pikseliä tjsp.
« Viimeksi muokattu: 18.02.11 - klo:19.41 kirjoittanut Hajakenttä »
DELL Latitude E6220 Xubuntu 20.04, DELL Latitude 5480 Xubuntu 22.04.
– Memento Vivere – Terv: Timo

Hajakenttä

  • Käyttäjä / moderaattori
  • Viestejä: 1547
    • Profiili
Vs: Conky
« Vastaus #197 : 18.02.11 - klo:20.18 »
Laitanpa taas viimeisen työpöytäkuvan ja .conkyrc listauksen. Tuossa on uutta opettelu ${goto nnn} komennon käytöstä, sekä ${image} komennon käytöstä taustakuvan liittämiseksi. Kuvan saatte sitten laittaa oman makunne mukaan, tällä konseptilla se kuva on sijoitettava kotihakemiston juureen .conkykuva.png nimisenä. Kuvan muoto saa mielellään olla valmiiksi rajattu suunnilleen halutun conkyn näkymän muotoiseksi, että ei kovasti venyttele muotopuoleksi.

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 10
# 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
#own_window_type desktop
#own_window_type normal

# 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}UTC ${color light grey}${utime}
${color lightgrey}$sysname $kernel $machine - $user_names

${color blue}intel Atom:   clk: ${color lightgrey}${freq_g cpu1} Ghz ${color blue}lämpö: ${color yellow}${font size=15}${voffset -4}${acpitemp}${font} °C
${color red}${cpugraph 000000 0077ff}
${color blue}CPU:${alignr}${color lightgrey}${cpu} % ${color red}${cpubar 5,110}
${color blue}max käyttäjät ${goto 115}PID ${goto 160}CPU % ${goto 205}MEM %
${color lightgrey}${top name 1}${goto 110}${top pid 1}${goto 150}${top cpu 1}${goto 200}${top mem 1}
${color lightgrey}${top name 2}${goto 110}${top pid 2}${goto 150}${top cpu 2}${goto 200}${top mem 2}

${color blue}RAM:${color lightgrey} $mem/$memmax ${alignr}$memperc % ${color red}${membar 5,110}
${color blue}Swap ${color lightgrey}$swap/$swapmax${alignr}$swapperc% ${color red}${swapbar 5,110}
${color blue}max käyttäjät ${goto 115}PID ${goto 160}CPU % ${goto 205}MEM %
${color lightgrey}${top_mem name 1}${goto 110}${top_mem pid 1}${goto 150}${top_mem cpu 1}${goto 200}${top_mem mem 1}
${color lightgrey}${top_mem name 2}${goto 110}${top_mem pid 2}${goto 150}${top_mem cpu 2}${goto 200}${top_mem mem 2}

${color blue}SSD: ${alignr}form: ${color lightgrey}${fs_type}
${color blue}/root ${color lightgrey}${fs_used /} + ${fs_free /}${alignr}${color red}${fs_bar 5,110 /}
${color blue}/home ${color lightgrey}${fs_used /home} + ${fs_free /home}${alignr}${color red}${fs_bar 5,110 /home}
#{color blue}/sdc ${color lightgrey}${fs_used /dev/sdc} + ${fs_free /dev/sdc}${alignr}${color red}${fs_bar 5,110 /dev/sdc}

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

${color blue}VIESTILIIKNNE:
${color blue}LAN osoite: $alignr${color lightgrey} ${addr eth0}
${color blue}WLAN osoite:$alignr${color lightgrey} ${addr wlan0}
${color blue}ssid: ${color lightgrey}$alignr${wireless_essid wlan0}
${color blue}internet ip:${color lightgrey}$alignr ${pre_exec wget -O - http://ip.tupeux.com | tail}
${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 blue}yhteensä: ${color lightgrey}${totaldown wlan0}       $alignr${color blue}yhteensä: ${color lightgrey}${totalup wlan0}
${color blue}conky versio: ${color lightgrey}${conky_version}
${image /home/timpat/.conkykuva.png -p -10,0 -s 360x460}

Siinä näkyy yksi kommentoitu turhakin rivi kun yritin saada aikaiseksi palkkia USB eli /dev/sdc tikkua varten. Hassu ajatus, että tikun koko ja palkki ilmaantuisi siihen kun sen tyrkkää reikäänsä. Menestys oli huono, mutta jos joku keksii konstin, niin antaa palaa!

[ylläpito on poistanut liitteen]
DELL Latitude E6220 Xubuntu 20.04, DELL Latitude 5480 Xubuntu 22.04.
– Memento Vivere – Terv: Timo

Dost

  • Käyttäjä
  • Viestejä: 725
    • Profiili
Vs: Conky
« Vastaus #198 : 18.02.11 - klo:20.42 »
Kiitos Hajakenttä! "goto" on sopiva taikasana! Kesti hetken tajuta mihin suuntaan pikselimäärää muutetaan. Mitä pienempi numero sitä vasemmalla teksti on ja ${alignr} ei näköän vaikuta sillä rivillä enää.

1920 pixelin leveälle näytölle "TEXT" osuus käy näin:
Koodia: [Valitse]
TEXT
${color #ffa800}System name: ${color white}$nodename ${color dim grey}| ${color #ffa800}${goto 1180}Kernel: ${color white}$sysname $kernel ${color dim grey}| ${color #ffa800}Uptime: ${color white}$uptime_short ${color dim grey}${color #ffa800}${goto 1550}CPU: ${color white}$cpu%  ${color dim grey}| ${color #ffa800}RAM: ${color white}$memperc% ${color dim grey} ${color #ffa800}${goto 1720}Up:${color white}${upspeed eth0}${color dim grey}- ${color #ffa800}Down:${color white}${downspeed eth0} ${color dim grey}${color dim grey} ${color white}${goto 1920}${time %A %d.%m.%Y   %H:%M}

kapu

  • Käyttäjä
  • Viestejä: 2
    • Profiili
Vs: Conky
« Vastaus #199 : 19.02.11 - klo:01.54 »
Työpöytä

Tässä eka oma config conkylle. OUT Temp on ulkolämpötila jota Arduino mittaa ds18b20 anturilta ja lähettää ethernettiin. Tarkoituksena olisi vielä lisätä anturi mittaamaan huoneiston sisäilman lämpötilaa. Kyllä tässä conkyssä riittää vielä viilattavaa.

T: Linux/Ubuntu aloittelija

Koodia: [Valitse]
# Use Xft?
use_xft yes
xftfont Droid Sans:size=8
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 desktop
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 182 0
maximum_width 182

# Draw shades?
draw_shades no
# default_color D6D6D6 #4D4D4D
# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
#border_margin 5

# border width
border_width 1

# 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 5
gap_y 32

# -- Lua Load -- #
# lua_load /home/kapu/.draw_bg.lua
# lua_draw_hook_pre draw_bg

TEXT
SYSTEM ${hr 2}
${goto 6}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU: ${cpu cpu0}% ${alignr}${cpubar cpu0 8,60}
${goto 6}${voffset 4}${font StyleBats:size=16}g${font}${voffset -4}${goto 32}RAM: ${mem} ${alignr}${membar 8,60}
${goto 6}${voffset 4}${font StyleBats:size=16}x${font}${voffset -4}${goto 32}DISK: ${diskio}${alignr}${diskiograph 8,60 F57900 FCAF3E}
${goto 6}${voffset 4}${font StyleBats:size=16}j${font}${voffset -4}${goto 32}SWAP: $swapperc% ${alignr}${swapbar 8,60}
${goto 6}${voffset 4}${font Devil inside:size=16}1${font}${voffset -4}${goto 32}CPU Temp: ${alignr}${exec sensors | grep 'CPU Temperature' | cut -c26-27}°C / ${color #FCAF3E}${exec sensors | grep 'CPU Temperature' | cut -c44-45}°C$color
${goto 5}${voffset 4}${font Devil inside:size=16}x${font}${voffset -4}${goto 32}Sys Temp: ${alignr}${exec sensors | grep 'SYS Temperature' | cut -c26-27}°C / ${color #FCAF3E}${exec sensors | grep 'SYS Temperature' | cut -c44-45}°C$color
${goto 4.5}${voffset 2}${font Poky:size=15}y${font}${voffset -6}${goto 32}HD1 Temp:${alignr}${exec hddtemp /dev/sda1 -n --unit=C}°C
${goto 4.5}${voffset 2}${font Poky:size=15}y${font}${voffset -6}${goto 32}HD2 Temp:${alignr}${exec hddtemp /dev/sdb1 -n --unit=C}°C
${goto 6}${voffset 4}${font Weather:size=16}b${font}${voffset -4}${goto 32}OUT Temp: ${alignr}${exec python3 own_temp.py | grep 'TEMPOUT' | cut -c9-12}°C
${goto 6}${font Martin Vogel's Symbols:size=16}j${font}${voffset -4}${goto 32}Fan Speed: ${alignr}${exec sensors | grep 'CPU FAN Speed'| cut -c24-27} RPM
${goto 6}${voffset 4}${font StyleBats:size=16}q${font}${voffset -4}${goto 32}Uptime: ${alignr}${uptime}
${goto 6}${voffset 4}${font StyleBats:size=16}k${font}${voffset -4}${goto 32}Processes: ${alignr}$processes ($running_processes running)
${goto 7.5}${voffset 4}${font Poky:size=15}a${font}${goto 32}${voffset -10}Highest: ${alignr 13}CPU${alignr}RAM
${goto 32}${voffset -5.5}${hr 1}
${voffset -1}${goto 32}${top name 1} ${goto 124}${top cpu 1}${alignr }${top mem 1}
${voffset -1}${goto 32}${top name 2} ${goto 124}${top cpu 2}${alignr }${top mem 2}
${voffset -1}${goto 32}${top name 3} ${goto 124}${top cpu 3}${alignr }${top mem 3}

${voffset -1}TIME ${hr 2}
${alignc 35}${font Arial Black:size=19}${time %H:%M:%S}${font}
${alignc}${time %A %d %B}
${voffset -1}HD ${hr 2}
${goto 3}${voffset 4}${font Poky:size=16}H${font}${goto 29}${voffset -11} Root: ${fs_used_perc /}%${alignr}${fs_size /}
${goto 29} Free: ${fs_free /}${alignr}${fs_bar 8,60 /}
${goto 3}${voffset 8}${font Poky:size=16}H${font}${goto 29}${voffset -11} Home: ${fs_used_perc /home}%${alignr}${fs_size /home}
${goto 29} Free: ${fs_free /home}${alignr}${fs_bar 8,60 /home}

${voffset -1}NETWORK ${hr 2}
${if_up wlan0}
${font Poky:size=14}Y${font}${goto 32}${voffset -8}SSID: ${wireless_essid wlan0}
${goto 32}Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
${voffset 4}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${upspeed wlan0}${font} ${alignr}${upspeedgraph wlan0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totalup wlan0}
${voffset 4}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${downspeed wlan0}${font} ${alignr}${downspeedgraph wlan0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totaldown wlan0}
# |--ETH0
${else}${if_up eth0}
${voffset -13}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${upspeed eth0}${font} ${alignr}${upspeedgraph eth0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totalup eth0}
${voffset -2}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${downspeed eth0}${font} ${alignr}${downspeedgraph eth0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totaldown eth0}
# |--PPP0
${endif}${else}${if_up ppp0}
${voffset -13}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${upspeed ppp0}${font} ${alignr}${upspeedgraph ppp0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totalup ppp0}
${voffset -2}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${downspeed ppp0}${font} ${alignr}${downspeedgraph ppp0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totaldown ppp0}
${endif}${else}${voffset 4}${font PizzaDude Bullets:size=12}4${font}${goto 32}Network Unavailable${endif}${endif}
${voffset -1}MUSIC ${hr 2}
${if_running rhythmbox}
  Track:$alignr${exec rhythmbox-client --print-playing-format %tt --no-start}
  Artist:$alignr${exec rhythmbox-client --print-playing-format %ta --no-start}
  Album:$alignr${exec rhythmbox-client --print-playing-format %at --no-start}
  Time:$alignr${exec rhythmbox-client --print-playing-format "%te / %td" -- no-start}
$endif
${voffset -1}WEATHER ${hr 2}

${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=FIXX0031 --datatype=WF}${font}
${voffset -50}${font Weather:size=40}y${font}  ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=FIXX0031 --datatype=HT}${font}

${alignc 43}${execpi 600 conkyForecast --location=FIXX0031 --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=FIXX0031 --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=FIXX0031 --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=FIXX0031 --datatype=DW --startday=4 --shortweekday}
${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=FIXX0031 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${font DejaVu Sans:size=7}${alignc 48}${execpi 600 conkyForecast --location=FIXX0031 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=FIXX0031 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=FIXX0031 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=FIXX0031 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=FIXX0031 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=FIXX0031 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=FIXX0031 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=FIXX0031 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
Feels Like:${alignr}${execi 600 conkyForecast --location=FIXX0031 --datatype=LT}
Current Condition:${alignr}${execi 600 conkyForecast --location=FIXX0031 --datatype=CC}
Humidity: ${alignr}${execi 600 conkyForecast --location=FIXX0031 --datatype=HM}