Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Strony: 1
Mam pewien problem, otóż conky nie wyświetla wszystkich elementów zawartych w .conkyrc. Chodzi o sekcję która znajduje się na samym dole "Sieć".
Tutaj moja konfiguracja:
###################### # - Conky settings - # ###################### update_interval 1 total_run_times 0 net_avg_samples 1 cpu_avg_samples 1 imlib_cache_size 0 double_buffer yes no_buffers yes ##################### # - Text settings - # ##################### use_xft yes xftfont droid sans:size=9 override_utf8_locale yes text_buffer_size 2048 ############################# # - Window specifications - # ############################# #own_window_class Conky own_window yes #own_window_type own_window_transparent yes own_window_argb_visual yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager alignment top_right gap_x 10 gap_y 20 minimum_size 182 15 maximum_width 182 0 #default_bar_size 60 8 ######################### # - Graphics settings - # ######################### draw_shades no default_color white color0 white color1 E07A1F color2 white TEXT ${font droid sans:size=9 style:bold}System ${hr 2} ${goto 6}${voffset 6}${font conkycolorslogos:size=32}d${font}${goto 55}${voffset -25}Debian 8.1 Jessie $machine ${goto 55}Kernel: ${kernel} ${font droid sans:size=9 style:bold}Procesor - Wykorzystanie ${hr 2} ${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}CPU1: ${cpu cpu1}%${alignr}CPU2: ${cpu cpu2}% ${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}CPU3: ${cpu cpu3}%${alignr}CPU4: ${cpu cpu4}% ${font droid sans:size=9 style:bold}Procesor - Taktowanie ${hr 2} ${goto 6}${voffset 4}${font conkycolors:size=16}E${font}${voffset -4}${goto 32}Taktowanie: ${alignr}${freq_g (1)} GHz ${font droid sans:size=9 style:bold}Procesor - Temperatura ${hr 2} ${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}Core0:${alignr}${execi 30 sensors | grep 'Core 0' | awk '{print $3}' | sed 's/+//' | sed 's/\.0//g'} $color ${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}Core1:${alignr}${execi 30 sensors | grep 'Core 1' | awk '{print $3}' | sed 's/+//' | sed 's/\.0//g'} $color ${font droid sans:size=9 style:bold}Dysk twardy ${hr 2} ${font conkycolors:size=16}i${font} ${voffset -5}File System ${voffset 4}${fs_free /}/${fs_size /} ${alignr}${fs_bar 8,60 /} ${font conkycolors:size=16}i${font} ${voffset -5}Home ${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home} ${font droid sans:size=9 style:bold}Informacje systemowe ${hr 2} ${goto 6}${voffset 4}${font conkycolors:size=16}o${font}${voffset -4}${goto 32}Czas działania: ${alignr}${uptime} ${goto 6}${voffset 4}${font conkycolors:size=16}i${font}${voffset -4}${goto 32}Dysk: ${diskio}${alignr}${diskiograph 8,60} ${goto 6}${voffset 4}${font conkycolors:size=16}g${font}${voffset -4}${goto 32}Pamięć: ${mem} ${alignr}${membar 8,60} ${goto 7.5}${voffset 4}${font Poky:size=15}a${font}${goto 32}${voffset -10}Procesy: ${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} ${font droid sans:size=9 style:bold}Sieć ${hr 2} ${voffset 4}${font conkycolors:size=14}s ${font}${goto 32}${voffset -6}Wysyłanie: ${upspeed wlan0}${font} ${alignr}${upspeedgraph wlan0 8,60} ${goto 32}Łącznie: ${totalup wlan0} ${voffset 4}${font conkycolors:size=14}t ${font}${goto 32}${voffset -6}Pobieranie: ${downspeed wlan0}${font} ${alignr}${downspeedgraph wlan0 8,60} ${goto 32}Łącznie: ${totaldown wlan0} ${voffset 4}${font conkycolors:size=13}A${font}${goto 32}${voffset -8}Publiczne IP: ${color}${alignr}${execi 3600 wget -q -O - http://icanhazip.com} ${voffset 4}${font conkycolors:size=13}A${font}${goto 32}${voffset -8}Lokalne IP: ${alignr}${addr wlan0}#${font conkycolors:size=14}k${font}${goto 32}${voffset -8}Sieć Wi-Fi: ${wireless_essid wlan0} ${hr 2}
A tutaj zrzut pulpitu jak to wygląda:
[url=http://naforum.zapodaj.net/d89a50b3f4ba.png.html][img]http://naforum.zapodaj.net/thumbs/d89a50b3f4ba.png[/img][/url]
System: Debian Jessie 8.1 64-bit
KDE SC 4.14.2
Ostatnio edytowany przez shevchenko1987 (2015-07-25 12:20:29)
Offline
Odpal z terminala z sprawdź błędy:
conky: Syntax error (conky:2: unexpected symbol near '#') while reading config file. conky: Assuming it's in old syntax and attempting conversion. conky: [string "..."]:150: [string "converted config"]:34: '}' expected (to close '{' at line 1) near '0'
Takie są u mnie. I tak poza tym dopisz sobie na końcu pliku:
${voffset 200}
Powinno rozwiązać problem:
http://i.imgur.com/jlw6MLV.png
Offline
shevchenko1987@sonyvaio:~$ conky Conky: desktop window (1e00132) is subwindow of root window (a0) Conky: window type - normal Conky: drawing to created window (0x2e00002) Conky: drawing to double buffer
Dopisałem sobie wedle twoich zaleceń
${voffset 200}
na końcu pliku. Jest prawie dobrze. Nie wyświetla się tylko oddzielacz.
${hr 2}
Offline
Strony: 1
Time (s) | Query |
---|---|
0.00010 | SET CHARSET latin2 |
0.00003 | SET NAMES latin2 |
0.00134 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.145.110.99' WHERE u.id=1 |
0.00090 | UPDATE punbb_online SET logged=1732475892 WHERE ident='3.145.110.99' |
0.00055 | SELECT * FROM punbb_online WHERE logged<1732475592 |
0.00070 | DELETE FROM punbb_online WHERE ident='66.249.70.161' |
0.00054 | SELECT topic_id FROM punbb_posts WHERE id=289179 |
0.00060 | SELECT id FROM punbb_posts WHERE topic_id=27592 ORDER BY posted |
0.00075 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=27592 AND t.moved_to IS NULL |
0.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00103 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=27592 ORDER BY p.id LIMIT 0,25 |
0.00068 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=27592 |
Total query time: 0.00727 s |