ďťż
 
 
   Conky, dlaczego otwiera się w nowym oknie?
 
 

Tematy

 
    
 

 

 

 

Conky, dlaczego otwiera się w nowym oknie?





szkodnikPL - 18-05-2010 20:07
Witam.

Jestem już na GNOME i nie powiem, fajne środowisko. Mam mały problem z conky, gdy przy zmiennej background yes albo: background  no i przy: own_window yes lub: own_window no to i tak conky otwiera się w nowym oknie.

Znalazłem różne konfigi i przy każdym jest tak jak napisałem, mimo, że na zrzutach ekranu wygląda to inaczej.

Oto mój konfig

http://wklej.org/id/336227/

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

double_buffer yes

use_spacer yes
use_xft no

update_interval 1.0

draw_shades no
draw_outline yes
draw_borders no
font arial
uppercase no

default_color 0094f0
own_window_colour 0094f0
own_window_transparent yes

#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

maximum_width 250
gap_x 10
gap_y 50

TEXT
${color}
TIME ${hr 2}
${color 8080FF}LOCAL: ${alignr}${time}${color}
UTC:  ${alignr}${utime}

SYSTEM ${hr 2}
$nodename $sysname $kernel on $machine

CPU ${hr 2}
Load: $cpu%  Freq: ${freq_dyn}MHz  Temp: ${exec sensors | grep Core0 | cut -c 14-18} C
${cpubar 10}
${cpugraph 50,250 000000 0000ff}
${voffset -50} 75%
 50%
 25%
${voffset -55}
    ${color 000080}${hr 1}
    ${hr 1}
    ${hr 1}${color}

NAME            PID          CPU    MEM
${color 8080FF}${top name 1} ${top pid 1}      ${top cpu 1} ${top mem 1}${color}
${top name 2} ${top pid 2}      ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3}      ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4}      ${top cpu 4} ${top mem 4}

MEMORY / HDD ${hr 2}
RAM:    $memperc% ${membar 10}
SWAP:  $swapperc% ${swapbar 10}

ROOT:  ${fs_used /}/ ${fs_size /} ${fs_bar 10 /}
HOME:  ${fs_used /home}/ ${fs_size /home} ${fs_bar 10 /home}
BACKUP: ${fs_used /backup}/ ${fs_size /backup} ${fs_bar 10 /backup}

HDD Read: ${diskio_read}  HDD Write: ${diskio_write}
${diskiograph_read 50,120 000000 00ff00}${alignr}${diskiograph_write 50,120 000000 ff0000}
${alignc}>>> HDD Temp: ${exec nc localhost 7634 | cut -d'|' -f4} C <<<

NETWORK (${addr eth0}) ${hr 2}
Download: ${downspeed eth0} kB/s  Upload: ${upspeed eth0}  kB/s
${downspeedgraph eth0 50,120 000000 00ff00}${alignr}${upspeedgraph eth0
50,120 000000 ff0000}
Total: ${totaldown eth0}      Total: ${totalup eth0}



DaVidoSS - 18-05-2010 23:39
Oto mój konfig, może coś pomoże .
U mnie Conky jest przeźroczysty..

#prawy dolny rog
gap_x 1460
gap_y 50
maximum_width 200

# If own_window_transparent is set to no, you can set the background colour here
own_window_colour black
own_window yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent true
background no

# X font when Xft is disabled, you can pick one with program xfontsel
#font -*-*-*-r-normal--14-*-*-*-c-*-iso8859-2
font -xos4-terminus-*-r-normal-*-12-100-*-*-c-*-iso10646-1
# Use Xft?
use_xft yes
#xftfont Bitstream Vera Sans Mono:size=8
xftfont Terminus:encoding=utf-8:size=9
xftalpha 0.9

update_interval 2.5
total_run_times 0

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer true
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 8
#border_margin 4
border_width 1

default_color white
default_shade_color black
default_outline_color black

#alignment top_left
no_buffers no
uppercase no

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

use_spacer right

TEXT
${color #ddaa00}${font Terminus:encoding=iso8859-2:size=15}${time %A}${color}
${font :encoding=iso8859-2:size=9}$alignc${color #ddaa00}${time %e %B %G %k:%M}

${color slate grey}Kernel:
$alignc${color }$kernel
${color slate grey}UpTime:
$alignc${color }$uptime

${color }${color slate grey}CPU:  $color%${color #ddaa00}${cpu cpu0}$alignr$color$running_processes/ $processes
${color slate grey}${cpugraph 20,200 000000 ffffff}
${color slate grey}CPU freq    :  ${color white}${freq} ${color #ddaa00}Mhz
${color slate grey}Vcore        :  ${color white}${execi 1 /home/davidoss/scripts/cpu_vcore} ${color #ddaa00} Volt
${color slate grey}CPU temp  :  ${color white}${execi 1 /home/davidoss/scripts/cpu_temp} ${color #ddaa00}°C
${color slate grey}FAN speed  :  ${color white}${execi 1 /home/davidoss/scripts/cpu_fan} ${color #ddaa00}RPM
${color slate grey}MB temp    :  ${color white}${execi 1 /home/davidoss/scripts/mb_temp} ${color #ddaa00}°C

${color slate grey}Procesy:                              CPU
${font :size=8}${color #ddaa00}${top name 1}$alignr${top cpu 1}
${color lightgrey}${top name 2}$alignr${top cpu 2}
${color lightgrey}${top name 3}$alignr${top cpu 3}
${color lightgrey}${top name 4}$alignr${top cpu 4}
${color lightgrey}${top name 5}$alignr${top cpu 5}
${color lightgrey}${top name 6}$alignr${top cpu 6}
${font :size=9}
${color slate grey}RAM:  $color%$memperc ${alignr}$memmax
${membar 5,200}
${color slate grey}SWAP: $color%$swapperc ${alignr}$swapmax
${swapbar 5,200}

${color slate grey}Pakiety do aktualizacji:
${color}${execi 20 cat /var/log/upgrades.log}
${color slate grey}Rzeczy w śmietniku:
${color}${exec /home/davidoss/scripts/trash_monitor}${execi 20 cat /home/davidoss/scripts/trash.log}
${font :size=9}
${color slate grey}sda-temp: $color${execi 1 /home/davidoss/scripts/conky_script_hddtemp} ${color #ddaa00}°C$alignr$color$alignr${diskio sda}/s
${color slate grey}sdb-temp: $color${execi 1 /home/davidoss/scripts/conky_script_hddtemp2} ${color #ddaa00}°C$alignr$color$alignr${diskio sdb}/s
${color slate grey}${diskiograph 20,200 000000 ff0000}
${color slate grey} /boot:${alignr}${color }${fs_free /boot}
${fs_bar 7,200 /boot}
${color slate grey}/${alignr}${color }${fs_free /}
${fs_bar 7,200 /}
${color slate grey} /home:${alignr}${color }${fs_free /home}
${fs_bar 7,200 /home}
${color slate grey}/media/win_D:${alignr}${color }${fs_free /media/win_D}
${fs_bar 7,200 /media/win_D}
${color slate grey}/media/DISK_USB:${alignr}${color }${fs_free /media/DISK_USB}
${fs_bar 7,200 /media/DISK_USB}
${color slate grey}INTERNET:
${color slate grey}Ethernet 0:
${color}DL:${color #ddaa00}${downspeed eth0}${offset 1}${color}/s${alignr}${color}Total: ${color white}${totaldown eth0}
${color slate grey}${downspeedgraph eth0 20,200 000000 00ff00}
${color}UP:${color #ddaa00}${upspeed eth0}${offset 1}${color}/s${alignr}${color}Total: ${color white}${totalup eth0}
${color slate grey}${upspeedgraph eth0 20,200 000000 0000ff}
${color slate grey}Local Loopback:
${color}DL:${color #ddaa00}${downspeed lo}${offset 1}${color}/s${alignr}${color}Total: ${color white}${totaldown lo}
${color slate grey}${downspeedgraph lo 10,200 000000 00ff00}
${color}UP:${color #ddaa00}${upspeed lo}${offset 1}${color}/s${alignr}${color}Total: ${color white}${totalup lo}
${color slate grey}${upspeedgraph lo 10,200 000000 0000ff}
${color #0077ff}@Connections@
$color Outbound: ${tcp_portmon 32768 61000 count}
$color Inbound: ${tcp_portmon 1 32767 count} 
${color #0077ff}Outbound Connection ${alignr} Port$color
 ${tcp_portmon 32768 61000 rip 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
 ${tcp_portmon 32768 61000 rip 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
 ${tcp_portmon 32768 61000 rip 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
 ${tcp_portmon 32768 61000 rip 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
 ${tcp_portmon 32768 61000 rip 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}



fnmirk - 19-05-2010 00:01
Tak zmieniony Twój konfig ruszył u mnie.
xftalpha 0.8
total_run_time 0
own_window_type normal
minimum_size 580 5
draw_shades yes
draw_outline no
draw_graph_borders yes

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

double_buffer yes

use_spacer yes
#use_xft no

update_interval 1.0

#draw_shades no
#draw_outline yes
draw_borders no
font arial
uppercase no

default_color 0094f0
own_window_colour 0094f0
#own_window_transparent yes

#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

maximum_width 250
gap_x 10
gap_y 50

TEXT
${color}
TIME ${hr 2}
${color 8080FF}LOCAL: ${alignr}${time}${color}
UTC:  ${alignr}${utime}

SYSTEM ${hr 2}
$nodename $sysname $kernel on $machine

CPU ${hr 2}
Load: $cpu%  Freq: ${freq_dyn}MHz  Temp: ${exec sensors | grep Core0 | cut -c 14-18} C
${cpubar 10}
${cpugraph 50,250 000000 0000ff}
${voffset -50} 75%
 50%
 25%
${voffset -55}
    ${color 000080}${hr 1}
    ${hr 1}
    ${hr 1}${color}

NAME            PID          CPU    MEM
${color 8080FF}${top name 1} ${top pid 1}      ${top cpu 1} ${top mem 1}${color}
${top name 2} ${top pid 2}      ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3}      ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4}      ${top cpu 4} ${top mem 4}

MEMORY / HDD ${hr 2}
RAM:    $memperc% ${membar 10}
SWAP:  $swapperc% ${swapbar 10}

ROOT:  ${fs_used /}/ ${fs_size /} ${fs_bar 10 /}
HOME:  ${fs_used /home}/ ${fs_size /home} ${fs_bar 10 /home}
BACKUP: ${fs_used /backup}/ ${fs_size /backup} ${fs_bar 10 /backup}

HDD Read: ${diskio_read}  HDD Write: ${diskio_write}
${diskiograph_read 50,120 000000 00ff00}${alignr}${diskiograph_write 50,120 000000 ff0000}
${alignc}>>> HDD Temp: ${exec nc localhost 7634 | cut -d'|' -f4} C <<<

NETWORK (${addr eth0}) ${hr 2}
Download: ${downspeed eth0} kB/s  Upload: ${upspeed eth0}  kB/s
${downspeedgraph eth0 50,120 000000 00ff00}${alignr}${upspeedgraph eth0
50,120 000000 ff0000}
Total: ${totaldown eth0}      Total: ${totalup eth0}



szkodnikPL - 19-05-2010 07:28
U mnie to nie działa, wygląda tak jak niżej.

http://i48.tinypic.com/vcv1as.png

Dodałem jako link, gdyż obrazek rozjeżdżał forum.



kodzik - 19-05-2010 09:37
A daj: own_window_type desktop miast own_window_type override



fnmirk - 19-05-2010 10:27
A w jakim katalogu umieściłeś plik .conkyrc Przedstaw ścieżkę dostępu do pliku. Program uruchamiasz jako użytkownik a plik konfiguracyjny umieszczasz w katalogu domowym: /home/nazwa_użytkownika/.conkyrc



szkodnikPL - 19-05-2010 10:41
Juz wiem w czym problem w poradniku bylo, zeby zapisywac w ~root. Jak przyjde do domu to sprawdze.
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • minister.pev.pl

  •  

     


     

     
    Copyright 2003. MĂłj serwis