Kirjoittaja Aihe: conky ongelma. (Ratkaistu)  (Luettu 2001 kertaa)

lassematias

  • Vieras
conky ongelma. (Ratkaistu)
« : 29.01.11 - klo:23.09 »
moi. (taas...)



mulla on vasemmalla puolella conky kuten kuvassa näkyy.
haluaisin sen oikealle puolelle. .conkyrc on:
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 override
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

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

# Minimum size of text area
minimum_size 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 25
gap_y 40

# -- Lua Load -- #
# lua_load ~/.draw_bg.lua
# lua_draw_hook_pre draw_bg

TEXT
SYSTEM ${hr 2}
${goto 6}${voffset 6}${font OpenLogos:size=22}u${font}${goto 36}${voffset -18}${pre_exec cat /etc/issue.net} $machine
${goto 36}Kernel: ${kernel}  
${hr 2}

${goto 6}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU1: ${cpu cpu0}% ${alignr}${cpubar cpu0 8,60}
${goto 6}${voffset 4}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU2: ${cpu cpu1}% ${alignr}${cpubar cpu1 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 -c19-20}°C / ${color #FCAF3E}${exec sensors | grep 'CPU Temperature' | cut -c37-38}°C$color
${goto 5}${voffset 4}${font Devil inside:size=16}x${font}${voffset -4}${goto 32}Mother Temp: ${alignr}${exec sensors | grep 'MB Temperature' | cut -c19-20}°C / ${color #FCAF3E}${exec sensors | grep 'MB Temperature' | cut -c37-38}°C$color
${goto 4.5}${voffset 2}${font Poky:size=15}y${font}${voffset -6}${goto 32}HD Temp:${alignr}${exec hddtemp /dev/sda -n --unit=C}°C / ${color #FCAF3E}${exec sensors | grep 'CPU Temperature' | cut -c54-55}°C$color
${goto 6}${font Martin Vogel's Symbols:size=16}j${font}${voffset -4}${goto 32}Fan Speed: ${alignr}${exec sensors | grep 'RPM'| cut -c16-25}
${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}${goto 32}${top name 4} ${goto 124}${top cpu 4}${alignr }${top mem 4}

${voffset -1}Aika ${hr 2}
${alignc 35}${font Arial Black:size=26}${time %H:%M}${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}VERKKO ${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}
${voffset 4}${font Poky:size=13}w${font}${goto 32}${voffset -8}Local IP: ${alignr}${addr wlan0}
${goto 32}Public IP: ${alignr}${execi 3600 wget -O - http://whatismyip.org/ | tail}
# |--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}
${voffset -2}${font Poky:size=13}w${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr eth0}
${goto 32}Public IP: ${alignr}${execi 3600 wget -O - http://whatismyip.org/ | tail}
# |--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}
${voffset -2}${font Poky:size=13}w${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr ppp0}
${endif}${else}${voffset 4}${font PizzaDude Bullets:size=12}4${font}${goto 32}Network Unavailable${endif}${endif}


ja scripti joka piirtää taustan conkylle:

Koodia: [Valitse]
--[[
Background by londonali1010 (2009)

This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.

To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
    lua_load ~/.scripts/draw_bg.lua
    lua_draw_hook_pre draw_bg

Changelog:
+ v1.0 -- Original release (07.10.2009)
]]

-- Change these settings to affect your background.
-- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.

corner_r=20

-- Set the colour and transparency (alpha) of your background.

bg_colour=0x4D4D4D
bg_alpha=0.40

require 'cairo'
function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function conky_draw_bg()
    if conky_window==nil then return end
    local w=conky_window.width
    local h=conky_window.height
    local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
    cr=cairo_create(cs)
    
    cairo_move_to(cr,corner_r,0)
    cairo_line_to(cr,w-corner_r,0)
    cairo_curve_to(cr,w,0,w,0,w,corner_r)
    cairo_line_to(cr,w,h-corner_r)
    cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
    cairo_line_to(cr,corner_r,h)
    cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
    cairo_line_to(cr,0,corner_r)
    cairo_curve_to(cr,0,0,0,0,corner_r,0)
    cairo_close_path(cr)
    
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
    cairo_fill(cr)


mitä tulis tehä?

[ylläpito on poistanut liitteen]
« Viimeksi muokattu: 30.01.11 - klo:12.00 kirjoittanut lassematias »

tobotti

  • Käyttäjä
  • Viestejä: 136
    • Profiili
Vs: conky ongelma
« Vastaus #1 : 29.01.11 - klo:23.22 »
Koodia: [Valitse]
# Text alignment, other possible values are commented
alignment top_left
#alignment top_right

vaihto :
Koodia: [Valitse]
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
One man alone can be pretty dumb sometimes, but for real bona fide stupidity, there ain't nothin' that can beat teamwork.

lassematias

  • Vieras
Vs: conky ongelma
« Vastaus #2 : 30.01.11 - klo:11.51 »
vielä yksi ongelma :( se menee kaikkien ohjelmien päälle kuten kuvassa näkyy
mitäs tehä?


edit. sain ite korjattua :) ei tarvi auttaa



[ylläpito on poistanut liitteen]
« Viimeksi muokattu: 30.01.11 - klo:11.59 kirjoittanut lassematias »

samsunix

  • Käyttäjä
  • Viestejä: 203
    • Profiili
    • samuliweb
Vs: conky ongelma
« Vastaus #3 : 31.01.11 - klo:20.16 »
vielä yksi ongelma :( se menee kaikkien ohjelmien päälle kuten kuvassa näkyy
mitäs tehä?


edit. sain ite korjattua :) ei tarvi auttaa



Kuinka korjasit? Itellä sama ongelma ku päivitän 10.04 -> 10.10

Lisäksi katos tää: http://forum.ubuntu-fi.org/index.php?topic=37610.0

Jos haluat taustan, säätiedot, lämpöanturit yms toimintaan sille sun conkylles.

lassematias

  • Vieras
Vs: conky ongelma
« Vastaus #4 : 01.02.11 - klo:08.05 »
vielä yksi ongelma :( se menee kaikkien ohjelmien päälle kuten kuvassa näkyy
mitäs tehä?


edit. sain ite korjattua :) ei tarvi auttaa



Kuinka korjasit? Itellä sama ongelma ku päivitän 10.04 -> 10.10

Lisäksi katos tää: http://forum.ubuntu-fi.org/index.php?topic=37610.0

Jos haluat taustan, säätiedot, lämpöanturit yms toimintaan sille sun conkylles.

laitoin uuestaan tuon .conkyrc ja sen mikä piirtää conkyn taustalle.
ookko testannu piirtää conkya taustalle?

samsunix

  • Käyttäjä
  • Viestejä: 203
    • Profiili
    • samuliweb
Vs: conky ongelma
« Vastaus #5 : 01.02.11 - klo:14.37 »
vielä yksi ongelma :( se menee kaikkien ohjelmien päälle kuten kuvassa näkyy
mitäs tehä?


edit. sain ite korjattua :) ei tarvi auttaa



Kuinka korjasit? Itellä sama ongelma ku päivitän 10.04 -> 10.10

Lisäksi katos tää: http://forum.ubuntu-fi.org/index.php?topic=37610.0

Jos haluat taustan, säätiedot, lämpöanturit yms toimintaan sille sun conkylles.

laitoin uuestaan tuon .conkyrc ja sen mikä piirtää conkyn taustalle.
ookko testannu piirtää conkya taustalle?

Onpas outo juttu. No mulla se piirti ittensä alunperin wallpaperille, mutta kun päivitän niin se haluaa piirtää ittensä kaiken päälle. Ja tismalleen samat conffit kuin aikaisemmin. nämä siis

lassematias

  • Vieras
Vs: conky ongelma
« Vastaus #6 : 01.02.11 - klo:19.52 »
vielä yksi ongelma :( se menee kaikkien ohjelmien päälle kuten kuvassa näkyy
mitäs tehä?


edit. sain ite korjattua :) ei tarvi auttaa



Kuinka korjasit? Itellä sama ongelma ku päivitän 10.04 -> 10.10

Lisäksi katos tää: http://forum.ubuntu-fi.org/index.php?topic=37610.0

Jos haluat taustan, säätiedot, lämpöanturit yms toimintaan sille sun conkylles.

laitoin uuestaan tuon .conkyrc ja sen mikä piirtää conkyn taustalle.
ookko testannu piirtää conkya taustalle?

Onpas outo juttu. No mulla se piirti ittensä alunperin wallpaperille, mutta kun päivitän niin se haluaa piirtää ittensä kaiken päälle. Ja tismalleen samat conffit kuin aikaisemmin. nämä siis


outoa. testaa kaikki setapit uuestaan ja sano mitä näyttää.
mullaki alkaa conky näyttää puuta heinää. oli conky aivan mustana mutta testailen huomenna ja sanon jos saan toimii ite :)