Conky conky: Syntax error

Zagadnienia dotyczące menadżerów okien, środowisk graficznych - X, KDE, GNOME, Fluxbox, XFCE., Compiz itp.
Awatar użytkownika
solaris7
Beginner
Posty: 138
Rejestracja: 07 września 2017, 12:08

Conky conky: Syntax error

Post autor: solaris7 »

Debian_9 stretch
Zainstalowałem conky wrzuciłem mój konfig .conkyrc i dam w terminalu conky jako zwykły user jest to:

Kod: Zaznacz cały

conky: Syntax error (/home/alkion/.conkyrc:1: '=' expected near 'no') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:139: attempt to index local 'settings' (a nil value)
O co chodzi z tą starą składnią czytam i czytam coś w konfingu mam zmienić.

Kod: Zaznacz cały

background no
use_xft yes
xftfont Zekton:size=9
xftalpha 0.5
update_interval 1.0
total_run_times 0
double_buffer yes
no_buffers no
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
minimum_size 500 5
maximum_width 250
default_color white
#alignment top_right
gap_x 990
gap_y 5
uppercase no
override_utf8_locale yes

TEXT

${color white}System $hr

${color white}Debian GNU/Linux 9 (stretch)
${color white}$sysname ${color white}$kernel (${color white}$machine)
${color white}Process $processes ${color white}w trakcie: $running_processes
${color white}Time work $uptime

${color white}Temperature $hr

${color white}CPU $alignr ${hwmon temp 1}°C ${hwmon temp 2}°C
${color white}HDD $alignr ${execi 60 ~/.scripts/hddtemp}°C
${color white}NVidia GeForce 7600 GS $alignr ${execi 60 ~/conky/nv_temp}°C

${color white}Processor $hr

${color white}Intel i3
${color white}CPU ${cpu cpu}% ${cpubar cpu}
$stippled_hr
${color white}CPU $alignr ${color white}CPU%
${color white}${top name 1} $alignr ${top cpu 1}
${color white}${top name 2} $alignr ${top cpu 2}
${color white}${top name 3} $alignr ${top cpu 3}

${color white}Memory $hr

${color white}RAM DDR3 4GB
${color white}RAM ${memperc}% ${membar}
$stippled_hr
${color white}RAM $alignr ${color white}RAM%
${color white}${top_mem name 1} $alignr ${top_mem mem 1}
${color white}${top_mem name 2} $alignr ${top_mem mem 2}
${color white}${top_mem name 3} $alignr ${top_mem mem 3}

${color white}Partitions $hr

${color white}system ${fs_used /}/${fs_size /} $alignr ${fs_used_perc /}%
${color white}${fs_bar /}
${color white}swap ${swap}/${swapmax} $alignr ${swapperc}%
${color white}${swapbar}
${color white}home ${fs_used /home}/${fs_size /home} $alignr ${fs_used_perc /home}%
${color white}${fs_bar /home}

${color white}Network $hr

${color white}eth1_ ${color white}${addr eth1}
${color white}dowland_ ${downspeedf eth1} KB/s $alignr ${totaldown eth1}
${color white}sending_ ${upspeedf eth1} KB/s $alignr ${totalup eth1}

${color white}wlan0_ ${color white}${addr wlan0}
${color white}dowland_ ${downspeedf wlan0} KB/s $alignr ${totaldown wlan0}
${color white}sending_ ${upspeedf wlan0} KB/s $alignr ${totalup wlan0}

${color white}Network and Ports $hr

DL: ${downspeedf wlan1} kB/s - total: ${totaldown wlan1}
UP: ${upspeedf wlan1} kB/s - total: ${totalup wlan1}

Inbound Connection ${tcp_portmon 1 32767 count}
Outbound Connection ${tcp_portmon 32768 61000 count}

${color}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} 
${tcp_portmon 32768 61000 rip 4} ${alignr} ${tcp_portmon 32768 61000 rservice 5} 
${tcp_portmon 32768 61000 rip 4} ${alignr} ${tcp_portmon 32768 61000 rservice 6} 
${tcp_portmon 32768 61000 rip 4} ${alignr} ${tcp_portmon 32768 61000 rservice 7} 
${tcp_portmon 32768 61000 rip 4} ${alignr} ${tcp_portmon 32768 61000 rservice 8}
Awatar użytkownika
dedito
Moderator
Posty: 3512
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Conky conky: Syntax error

Post autor: dedito »

Od Conky 1.10 zmieniła się składnia: https://github.com/brndnmtthws/conky/wi ... n-Settings
Stara konfiguracja jest konwertowana przez conky.
Jeśli działa prawidłowo na starej składni to nie musisz przepisywać na nową.
Awatar użytkownika
solaris7
Beginner
Posty: 138
Rejestracja: 07 września 2017, 12:08

Re: Conky conky: Syntax error

Post autor: solaris7 »

oki poczytam bardziej, mam debianowe zaległości nie używałem Debiana ze dwa lata, konsola mi z deka zardzewiała :) :)
yarq
Posty: 11
Rejestracja: 05 kwietnia 2007, 15:59
Lokalizacja: ~/home/

Re: Conky conky: Syntax error

Post autor: yarq »

conky jest jeszcze wspierane?
Awatar użytkownika
dedito
Moderator
Posty: 3512
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Conky conky: Syntax error

Post autor: dedito »

W jakim sensie?
ODPOWIEDZ